C# 클래스 nl.siegmann.epublib.domain.Book

파일 보기 프로젝트 열기: lanfengqi/EpubLib-Sharp 1 사용 예제들

공개 메소드들

메소드 설명
addResource ( Resource resource ) : Resource
addSection ( TOCReference parentSection, string sectionTitle, Resource resource ) : TOCReference

Adds the resource to the table of contents of the book as a child section of the given parentSection

addSection ( string title, Resource resource ) : TOCReference

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:

  • The coverpage
  • The resources of the Spine that are not already in the result
  • The resources of the Table of Contents that are not already in the result
  • The resources of the Guide that are not already in the result
To get all html files that make up the epub file use

getCoverImage ( ) : Resource

The book's cover image.

getCoverPage ( ) : Resource

The book's cover page. An XHTML document containing a link to the cover image.

getGuide ( ) : Guide

The guide; contains references to special sections of the book like colophon, glossary, etc.

getMetadata ( ) : Metadata

The Book's metadata (titles, authors, etc)

getNcxResource ( ) : Resource
getOpfResource ( ) : Resource
getResources ( ) : Resources

The collection of all images, chapters, sections, xhtml files, stylesheets, etc that make up the book.

getSpine ( ) : Spine

The sections of the book that should be shown if a user reads the book from start to finish.

getTableOfContents ( ) : TableOfContents

The Table of Contents of the book.

getTitle ( ) : string

Gets the first non-blank title from the book's metadata.

setCoverImage ( Resource coverImage ) : void
setCoverPage ( Resource coverPage ) : void
setMetadata ( Metadata metadata ) : void
setNcxResource ( Resource ncxResource ) : void
setOpfResource ( Resource opfResource ) : void
setResources ( Resources resources ) : void
setSpine ( Spine spine ) : void
setTableOfContents ( TableOfContents tableOfContents ) : void

비공개 메소드들

메소드 설명
addToContentsResult ( Resource resource, Resource>.Dictionary allReachableResources ) : void

메소드 상세

addResource() 공개 메소드

public addResource ( Resource resource ) : Resource
resource Resource
리턴 Resource

addSection() 공개 메소드

Adds the resource to the table of contents of the book as a child section of the given parentSection
public addSection ( TOCReference parentSection, string sectionTitle, Resource resource ) : TOCReference
parentSection TOCReference
sectionTitle string
resource Resource
리턴 TOCReference

addSection() 공개 메소드

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.
public addSection ( string title, Resource resource ) : TOCReference
title string
resource Resource
리턴 TOCReference

generateSpineFromTableOfContents() 공개 메소드

public generateSpineFromTableOfContents ( ) : void
리턴 void

getContents() 공개 메소드

All Resources of the Book that can be reached via the Spine, the TableOfContents or the Guide.

Consists of a list of "reachable" resources:

  • The coverpage
  • The resources of the Spine that are not already in the result
  • The resources of the Table of Contents that are not already in the result
  • The resources of the Guide that are not already in the result
To get all html files that make up the epub file use
public getContents ( ) : List
리턴 List

getCoverImage() 공개 메소드

The book's cover image.
public getCoverImage ( ) : Resource
리턴 Resource

getCoverPage() 공개 메소드

The book's cover page. An XHTML document containing a link to the cover image.
public getCoverPage ( ) : Resource
리턴 Resource

getGuide() 공개 메소드

The guide; contains references to special sections of the book like colophon, glossary, etc.
public getGuide ( ) : Guide
리턴 Guide

getMetadata() 공개 메소드

The Book's metadata (titles, authors, etc)
public getMetadata ( ) : Metadata
리턴 Metadata

getNcxResource() 공개 메소드

public getNcxResource ( ) : Resource
리턴 Resource

getOpfResource() 공개 메소드

public getOpfResource ( ) : Resource
리턴 Resource

getResources() 공개 메소드

The collection of all images, chapters, sections, xhtml files, stylesheets, etc that make up the book.
public getResources ( ) : Resources
리턴 Resources

getSpine() 공개 메소드

The sections of the book that should be shown if a user reads the book from start to finish.
public getSpine ( ) : Spine
리턴 Spine

getTableOfContents() 공개 메소드

The Table of Contents of the book.
public getTableOfContents ( ) : TableOfContents
리턴 TableOfContents

getTitle() 공개 메소드

Gets the first non-blank title from the book's metadata.
public getTitle ( ) : string
리턴 string

setCoverImage() 공개 메소드

public setCoverImage ( Resource coverImage ) : void
coverImage Resource
리턴 void

setCoverPage() 공개 메소드

public setCoverPage ( Resource coverPage ) : void
coverPage Resource
리턴 void

setMetadata() 공개 메소드

public setMetadata ( Metadata metadata ) : void
metadata Metadata
리턴 void

setNcxResource() 공개 메소드

public setNcxResource ( Resource ncxResource ) : void
ncxResource Resource
리턴 void

setOpfResource() 공개 메소드

public setOpfResource ( Resource opfResource ) : void
opfResource Resource
리턴 void

setResources() 공개 메소드

public setResources ( Resources resources ) : void
resources Resources
리턴 void

setSpine() 공개 메소드

public setSpine ( Spine spine ) : void
spine Spine
리턴 void

setTableOfContents() 공개 메소드

public setTableOfContents ( TableOfContents tableOfContents ) : void
tableOfContents TableOfContents
리턴 void