Méthode | Description | |
---|---|---|
addResource ( |
||
addSection ( |
Adds the resource to the table of contents of the book as a child section of the given parentSection
|
|
addSection ( string title, |
Adds a resource to the book's set of resources, table of contents and if there is no resource with the id in the spine also adds it to the spine.
|
|
generateSpineFromTableOfContents ( ) : void | ||
getContents ( ) : List |
All Resources of the Book that can be reached via the Spine, the TableOfContents or the Guide. Consists of a list of "reachable" resources:
|
|
getCoverImage ( ) : |
The book's cover image.
|
|
getCoverPage ( ) : |
The book's cover page. An XHTML document containing a link to the cover image.
|
|
getGuide ( ) : |
The guide; contains references to special sections of the book like colophon, glossary, etc.
|
|
getMetadata ( ) : |
The Book's metadata (titles, authors, etc)
|
|
getNcxResource ( ) : |
||
getOpfResource ( ) : |
||
getResources ( ) : |
The collection of all images, chapters, sections, xhtml files, stylesheets, etc that make up the book.
|
|
getSpine ( ) : |
The sections of the book that should be shown if a user reads the book from start to finish.
|
|
getTableOfContents ( ) : |
The Table of Contents of the book.
|
|
getTitle ( ) : string |
Gets the first non-blank title from the book's metadata.
|
|
setCoverImage ( |
||
setCoverPage ( |
||
setMetadata ( |
||
setNcxResource ( |
||
setOpfResource ( |
||
setResources ( |
||
setSpine ( |
||
setTableOfContents ( |
Méthode | Description | |
---|---|---|
addToContentsResult ( |
public addResource ( |
||
resource | ||
Résultat |
public addSection ( |
||
parentSection | ||
sectionTitle | string | |
resource | ||
Résultat |
public addSection ( string title, |
||
title | string | |
resource | ||
Résultat |
public generateSpineFromTableOfContents ( ) : void | ||
Résultat | void |
public getTableOfContents ( ) : |
||
Résultat |
public setCoverImage ( |
||
coverImage | ||
Résultat | void |
public setCoverPage ( |
||
coverPage | ||
Résultat | void |
public setMetadata ( |
||
metadata | ||
Résultat | void |
public setNcxResource ( |
||
ncxResource | ||
Résultat | void |
public setOpfResource ( |
||
opfResource | ||
Résultat | void |
public setResources ( |
||
resources | ||
Résultat | void |
public setTableOfContents ( |
||
tableOfContents | ||
Résultat | void |