src/BloomExe/Spreadsheet/SpreadsheetImporter.cs
/// <summary>
/// If current page does not have one of the elements we need, return the guid of a page from Basic Book
/// that does. If current page is fine, just return null.
/// </summary>
If current page does not have one of the elements we need, return the guid of a page from Basic Book
that does. If current page is fine, just return null.
If current page does not have one of the elements we need return the guid of a page from Basic Book that does . If current page is fine just return null .
private string GuidOfPageToCopyIfNeeded(bool needImageContainer, bool needTextGroup, bool haveImageContainer, bool haveTextGroup)
		{
			string guid = null;
			if (needImageContainer && !haveImageContainer)
			{
				guid = needTextGroup
					? basicTextAndImageGuid
					: "adcd48df-e9ab-4a07-afd4-6a24d0398385"; 
			}
			else if (needTextGroup && !haveTextGroup)
			{
				guid = needImageContainer
					? basicTextAndImageGuid
					: "a31c38d8-c1cb-4eb9-951b-d2840f6a8bdb"; 
			}
			if (_bookIsLandscape && guid == basicTextAndImageGuid)
				guid = "7b192144-527c-417c-a2cb-1fb5e78bf38a"; 
			return guid;
		}
private string GuidOfPageToCopyIfNeeded ( bool needImageContainer , bool needTextGroup , bool haveImageContainer , bool haveTextGroup ) { string guid = null ; if ( needImageContainer && ! haveImageContainer ) { guid = needTextGroup ? basicTextAndImageGuid : " " ; } else if ( needTextGroup && ! haveTextGroup ) { guid = needImageContainer ? basicTextAndImageGuid : " " ; } if ( _bookIsLandscape && guid == basicTextAndImageGuid ) guid = " " ; return guid ; }
If current page does not have one of the elements we need, return the guid of a page from Basic Book
that does.
If current page does not have one of the elements we need return the guid of a page from Basic Book that does .
// just an image // just text // Picture on left
needImageContainer
bool
needTextGroup
bool
haveImageContainer
bool
haveTextGroup
bool