C# 클래스 Bloom.Book.BookStarter

Creates the files for a new blank book from a template book
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
OnNextRunSimulateFailureMakingBook bool

공개 메소드들

메소드 설명
BookStarter ( IChangeableFileLocator fileLocator, BookStorage bookStorageFactory, CollectionSettings collectionSettings ) : System
CreateBookOnDiskFromTemplate ( string sourceBookFolder, string parentCollectionPath ) : string

Given a template, make a new book

SetLanguageForElementsWithMetaLanguage ( XmlNode elementOrDom, CollectionSettings settings ) : void

In xmatter, text fields are normally labeled with a "meta" language code, like "N1" for first national language. This method detects those and then looks them up, returning the actual language code in use at the moment.

This is a little uncomfortable in this class, as this feature is not currently used in any bloom-translationGroup elements.

SetupIdAndLineage ( XmlElement parentPageDiv, XmlElement childPageDiv ) : void
SetupPage ( XmlElement pageDiv, CollectionSettings collectionSettings, string contentLanguageIso1, string contentLanguageIso2 ) : void

비공개 메소드들

메소드 설명
ClearAwayDraftText ( XmlNode element ) : void

When building on templates, we usually want to have some sample text, but don't let them bleed through to what the user sees

CopyFolder ( string sourcePath, string destinationPath ) : void
GetInitialName ( string sourcePath, string parentCollectionPath ) : string
GetMetaValue ( XmlDocument Dom, string name, string defaultValue ) : string
GetPathToHtmlFile ( string folder ) : string
InjectXMatter ( string initialPath, BookStorage storage, Layout sizeAndOrientation ) : void
RemoveDataDivElement ( XmlNode dom, string key ) : void
SetBookTitle ( BookStorage storage, BookData bookData, bool usingTemplate ) : void
SetLineageAndId ( BookStorage storage, string sourceFolderPath ) : void
SetupNewDocumentContents ( string sourceFolderPath, string initialPath ) : string
UpdateEditabilityMetadata ( BookStorage storage ) : void

메소드 상세

BookStarter() 공개 메소드

public BookStarter ( IChangeableFileLocator fileLocator, BookStorage bookStorageFactory, CollectionSettings collectionSettings ) : System
fileLocator IChangeableFileLocator
bookStorageFactory BookStorage
collectionSettings Bloom.Collection.CollectionSettings
리턴 System

CreateBookOnDiskFromTemplate() 공개 메소드

Given a template, make a new book
public CreateBookOnDiskFromTemplate ( string sourceBookFolder, string parentCollectionPath ) : string
sourceBookFolder string
parentCollectionPath string
리턴 string

SetLanguageForElementsWithMetaLanguage() 공개 정적인 메소드

In xmatter, text fields are normally labeled with a "meta" language code, like "N1" for first national language. This method detects those and then looks them up, returning the actual language code in use at the moment.
This is a little uncomfortable in this class, as this feature is not currently used in any bloom-translationGroup elements.
public static SetLanguageForElementsWithMetaLanguage ( XmlNode elementOrDom, CollectionSettings settings ) : void
elementOrDom System.Xml.XmlNode
settings Bloom.Collection.CollectionSettings
리턴 void

SetupIdAndLineage() 공개 정적인 메소드

public static SetupIdAndLineage ( XmlElement parentPageDiv, XmlElement childPageDiv ) : void
parentPageDiv System.Xml.XmlElement
childPageDiv System.Xml.XmlElement
리턴 void

SetupPage() 공개 정적인 메소드

public static SetupPage ( XmlElement pageDiv, CollectionSettings collectionSettings, string contentLanguageIso1, string contentLanguageIso2 ) : void
pageDiv System.Xml.XmlElement
collectionSettings Bloom.Collection.CollectionSettings
contentLanguageIso1 string
contentLanguageIso2 string
리턴 void

프로퍼티 상세

OnNextRunSimulateFailureMakingBook 공개적으로 프로퍼티

Used in unit testing
public bool OnNextRunSimulateFailureMakingBook
리턴 bool