C# Class Bloom.Book.Layout

A Layout is size and orientation, plus options. Currently, there is only one set of options allowed, named "styles"
ファイルを表示 Open project: BloomBooks/BloomDesktop Class Usage Examples

Public Properties

Property Type Description
SizeAndOrientation SizeAndOrientation

Public Methods

Method Description
FromDom ( HtmlDom dom, Layout defaultIfMissing ) : Layout
FromDomAndChoices ( HtmlDom dom, Layout defaultIfMissing, IFileLocator fileLocator ) : Layout
GetConfigurationsFromConfigurationOptionsString ( string contents ) : List

At runtime, this string comes out of a dummy css 'content' line. For unit tests, it just comes from the test.

ToString ( ) : string
UpdatePageSplitMode ( XmlNode node ) : void

Private Methods

Method Description
EnsureLayoutIsAmongValidChoices ( HtmlDom dom, Layout layout, IFileLocator fileLocator ) : Layout

Method Details

FromDom() public static method

public static FromDom ( HtmlDom dom, Layout defaultIfMissing ) : Layout
dom HtmlDom
defaultIfMissing Layout
return Layout

FromDomAndChoices() public static method

public static FromDomAndChoices ( HtmlDom dom, Layout defaultIfMissing, IFileLocator fileLocator ) : Layout
dom HtmlDom
defaultIfMissing Layout
fileLocator IFileLocator
return Layout

GetConfigurationsFromConfigurationOptionsString() public static method

At runtime, this string comes out of a dummy css 'content' line. For unit tests, it just comes from the test.
public static GetConfigurationsFromConfigurationOptionsString ( string contents ) : List
contents string
return List

ToString() public method

public ToString ( ) : string
return string

UpdatePageSplitMode() public method

public UpdatePageSplitMode ( XmlNode node ) : void
node System.Xml.XmlNode
return void

Property Details

SizeAndOrientation public_oe property

E.g. A4 Landscape
public SizeAndOrientation,Bloom.Book SizeAndOrientation
return SizeAndOrientation