C# Class Bloom.Book.Layout

A Layout is size and orientation, plus options. Currently, there is only one set of options allowed, named "styles"
Afficher le fichier Open project: BloomBooks/BloomDesktop Class Usage Examples

Méthodes publiques

Свойство Type Description
SizeAndOrientation SizeAndOrientation

Méthodes publiques

Méthode 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

Méthode Description
EnsureLayoutIsAmongValidChoices ( HtmlDom dom, Layout layout, IFileLocator fileLocator ) : Layout

Method Details

FromDom() public static méthode

public static FromDom ( HtmlDom dom, Layout defaultIfMissing ) : Layout
dom HtmlDom
defaultIfMissing Layout
Résultat Layout

FromDomAndChoices() public static méthode

public static FromDomAndChoices ( HtmlDom dom, Layout defaultIfMissing, IFileLocator fileLocator ) : Layout
dom HtmlDom
defaultIfMissing Layout
fileLocator IFileLocator
Résultat Layout

GetConfigurationsFromConfigurationOptionsString() public static méthode

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
Résultat List

ToString() public méthode

public ToString ( ) : string
Résultat string

UpdatePageSplitMode() public méthode

public UpdatePageSplitMode ( XmlNode node ) : void
node System.Xml.XmlNode
Résultat void

Property Details

SizeAndOrientation public_oe property

E.g. A4 Landscape
public SizeAndOrientation,Bloom.Book SizeAndOrientation
Résultat SizeAndOrientation