C# 클래스 Bloom.Book.XMatterHelper

Handles chores related to Front and Back Matter packs. These allow users to have a set which fits there country/organizational situation, and have it applied to all books they create, whether original or from shells created in other country/organization contexts.
파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

공개 메소드들

메소드 설명
GetStyleSheetFileName ( ) : string
InjectXMatter ( string>.Dictionary writingSystemCodes, Layout layout ) : void
IsBackMatterPage ( XmlElement pageDiv ) : bool
IsFrontMatterPage ( XmlElement pageDiv ) : bool
RemoveExistingXMatter ( HtmlDom dom ) : void

remove any x-matter in the book

XMatterHelper ( HtmlDom bookDom, string nameOfXMatterPack, IFileLocator fileLocator ) : System

Constructs by finding the file and folder of the xmatter pack, given the its key name e.g. "Factory", "SILIndonesia". The name of the file should be (key)-XMatter.htm. The name and the location of the folder is not our problem... we leave it to the supplied fileLocator to find it.

비공개 메소드들

메소드 설명
InjectFlyleafIfNeeded ( Layout layout ) : void

Some book layouts rely on the first page facing the second page. A Wall Calendar is one example. Here we check if the first content page has this requirement and, if so, we insert a blank "flyleaf" page.

메소드 상세

GetStyleSheetFileName() 공개 메소드

public GetStyleSheetFileName ( ) : string
리턴 string

InjectXMatter() 공개 메소드

public InjectXMatter ( string>.Dictionary writingSystemCodes, Layout layout ) : void
writingSystemCodes string>.Dictionary
layout Layout
리턴 void

IsBackMatterPage() 공개 정적인 메소드

public static IsBackMatterPage ( XmlElement pageDiv ) : bool
pageDiv System.Xml.XmlElement
리턴 bool

IsFrontMatterPage() 공개 정적인 메소드

public static IsFrontMatterPage ( XmlElement pageDiv ) : bool
pageDiv System.Xml.XmlElement
리턴 bool

RemoveExistingXMatter() 공개 정적인 메소드

remove any x-matter in the book
public static RemoveExistingXMatter ( HtmlDom dom ) : void
dom HtmlDom
리턴 void

XMatterHelper() 공개 메소드

Constructs by finding the file and folder of the xmatter pack, given the its key name e.g. "Factory", "SILIndonesia". The name of the file should be (key)-XMatter.htm. The name and the location of the folder is not our problem... we leave it to the supplied fileLocator to find it.
public XMatterHelper ( HtmlDom bookDom, string nameOfXMatterPack, IFileLocator fileLocator ) : System
bookDom HtmlDom
nameOfXMatterPack string e.g. "Factory", "SILIndonesia"
fileLocator IFileLocator The locator needs to be able tell us the path to an xmater html file, given its name
리턴 System