C# 클래스 Bloom.Collection.CollectionSettings

A library corresponds to a single folder (with subfolders) on the disk. In that folder is a file which persists the properties of this class, then a folder for each book
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
PageNumberStyleKeys string[]

Private Properties

프로퍼티 타입 설명
AddFontCssRule void
AddNumberingStyleCssRule void
DoOneTimeCheck void
GetBoolValue bool
GetDecimalValue decimal
GetDefaultFontName string
GetIntegerValue int
GetLanguage1Name_NoCache string
GetLanguageNameInUILangIfPossible string
GetValue string
MakeLanguageUploadData Bloom.Book.LanguageDescriptor[]
MigrateSettingsToAndikaNewBasicFont bool
SaveSettingsCollectionStylesCss void

공개 메소드들

메소드 설명
CollectionSettings ( ) : System

for moq in unit tests only

CollectionSettings ( NewCollectionSettings collectionInfo ) : System
CollectionSettings ( string desiredOrExistingSettingsFilePath ) : System

can be used whether the library exists already, or not

CreateNewCollection ( NewCollectionSettings collectionInfo ) : void
FindSettingsFileInFolder ( string folderPath ) : string
GetLanguage1Name ( string inLanguage ) : string
GetLanguage2Name ( string inLanguage ) : string
GetLanguage3Name ( string inLanguage ) : string
GetLanguageLineHeight ( int langNum ) : decimal
GetLanguageName ( string code, string inLanguage ) : string

Get the name of the language whose code is the first argument, if possible in the language specified by the second. If the language code is unknown, return it unchanged.

GetLanguageRtl ( int langNum ) : bool
GetPathForNewSettings ( string parentFolderPath, string newCollectionName ) : string
Load ( ) : void
RenameCollection ( string fromDirectory, string toDirectory ) : string
Save ( ) : void
SetLanguageLineHeight ( int langNum, decimal lineHeight ) : void
SetLanguageRtl ( int langNum, bool isRtl ) : void

비공개 메소드들

메소드 설명
AddFontCssRule ( StringBuilder sb, string selector, string fontName, decimal lineHeight ) : void
AddNumberingStyleCssRule ( StringBuilder sb, string styleNameKey ) : void
DoOneTimeCheck ( ) : void
GetBoolValue ( System.Xml.Linq.XElement library, string id, bool defaultValue ) : bool
GetDecimalValue ( System.Xml.Linq.XElement library, string id, decimal defaultValue ) : decimal
GetDefaultFontName ( ) : string
GetIntegerValue ( System.Xml.Linq.XElement library, string id, int defaultValue ) : int
GetLanguage1Name_NoCache ( string inLanguage ) : string
GetLanguageNameInUILangIfPossible ( string name, string codeOfDesiredLanguage ) : string
GetValue ( System.Xml.Linq.XElement document, string id, string defaultValue ) : string
MakeLanguageUploadData ( string isoCodes ) : Bloom.Book.LanguageDescriptor[]
MigrateSettingsToAndikaNewBasicFont ( ) : bool
SaveSettingsCollectionStylesCss ( ) : void

메소드 상세

CollectionSettings() 공개 메소드

for moq in unit tests only
public CollectionSettings ( ) : System
리턴 System

CollectionSettings() 공개 메소드

public CollectionSettings ( NewCollectionSettings collectionInfo ) : System
collectionInfo NewCollectionSettings
리턴 System

CollectionSettings() 공개 메소드

can be used whether the library exists already, or not
public CollectionSettings ( string desiredOrExistingSettingsFilePath ) : System
desiredOrExistingSettingsFilePath string
리턴 System

CreateNewCollection() 공개 정적인 메소드

public static CreateNewCollection ( NewCollectionSettings collectionInfo ) : void
collectionInfo NewCollectionSettings
리턴 void

FindSettingsFileInFolder() 공개 정적인 메소드

public static FindSettingsFileInFolder ( string folderPath ) : string
folderPath string
리턴 string

GetLanguage1Name() 공개 메소드

public GetLanguage1Name ( string inLanguage ) : string
inLanguage string
리턴 string

GetLanguage2Name() 공개 메소드

public GetLanguage2Name ( string inLanguage ) : string
inLanguage string
리턴 string

GetLanguage3Name() 공개 메소드

public GetLanguage3Name ( string inLanguage ) : string
inLanguage string
리턴 string

GetLanguageLineHeight() 공개 메소드

public GetLanguageLineHeight ( int langNum ) : decimal
langNum int
리턴 decimal

GetLanguageName() 공개 메소드

Get the name of the language whose code is the first argument, if possible in the language specified by the second. If the language code is unknown, return it unchanged.
public GetLanguageName ( string code, string inLanguage ) : string
code string
inLanguage string
리턴 string

GetLanguageRtl() 공개 메소드

public GetLanguageRtl ( int langNum ) : bool
langNum int
리턴 bool

GetPathForNewSettings() 공개 정적인 메소드

public static GetPathForNewSettings ( string parentFolderPath, string newCollectionName ) : string
parentFolderPath string
newCollectionName string
리턴 string

Load() 공개 메소드

public Load ( ) : void
리턴 void

RenameCollection() 공개 정적인 메소드

public static RenameCollection ( string fromDirectory, string toDirectory ) : string
fromDirectory string
toDirectory string
리턴 string

Save() 공개 메소드

public Save ( ) : void
리턴 void

SetLanguageLineHeight() 공개 메소드

public SetLanguageLineHeight ( int langNum, decimal lineHeight ) : void
langNum int
lineHeight decimal
리턴 void

SetLanguageRtl() 공개 메소드

public SetLanguageRtl ( int langNum, bool isRtl ) : void
langNum int
isRtl bool
리턴 void

프로퍼티 상세

PageNumberStyleKeys 공개적으로 정적으로 프로퍼티

public static string[] PageNumberStyleKeys
리턴 string[]