C# 클래스 Bloom.CollectionTab.LibraryModel

파일 보기 프로젝트 열기: BloomBooks/BloomDesktop 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CreateFromSourceBook void
GetBookCollectionsOnce IEnumerable
GetBookReplacedWithTemplate string
GetMetaJsonModfiedForTemplate string

공개 메소드들

메소드 설명
AttemptMissingImageReplacements ( string pathToFolderOfReplacementImages = null ) : void
BringBookUpToDate ( ) : void
DeleteBook ( Book book ) : bool
DoChecksOfAllBooks ( ) : void
DoChecksOfAllBooksBackgroundWork ( ProgressDialogBackground dialog, string pathToFolderOfReplacementImages ) : void
DoUpdatesOfAllBooks ( ) : void
DoUpdatesOfAllBooks ( IProgress progress ) : void
DoubleClickedBook ( ) : void
ExportDocFormat ( string path ) : void

All we do at this point is make a file with a ".doc" extension and open it.

The .doc extension allows the operating system to recognize which program should open the file, and the program (whether Microsoft Word or LibreOffice or OpenOffice) seems to handle HTML content just fine.

ExportInDesignXml ( string path ) : void
GetBookCollections ( ) : List
GetBookFromBookInfo ( BookInfo bookInfo ) : Book.Book
GetSuggestedBloomPackPath ( ) : string
LibraryModel ( string pathToLibrary, CollectionSettings collectionSettings, BookSelection bookSelection, SourceCollectionsList sourceCollectionsList, BookCollection bookCollectionFactory, EditBookCommand editBookCommand, CreateFromSourceBookCommand createFromSourceBookCommand, BookServer bookServer, CurrentEditableCollectionSelection currentEditableCollectionSelection, BookThumbNailer thumbNailer ) : System
MakeBloomPack ( string path, bool forReaderTools = false ) : void
OpenFolderOnDisk ( ) : void
ReloadCollections ( ) : void
SelectBook ( Book book ) : void
UpdateThumbnailAsync ( Book book, HtmlThumbNailer thumbnailOptions, Image>.Action callback, Exception>.Action errorCallback ) : void

보호된 메소드들

메소드 설명
CompressDirectory ( string directoryPath, ZipOutputStream zipStream, int dirNameOffest, bool forReaderTools ) : void

Adds a directory, along with all files and subdirectories, to the ZipStream.

Protected for testing purposes

비공개 메소드들

메소드 설명
CreateFromSourceBook ( Book sourceBook ) : void
GetBookCollectionsOnce ( ) : IEnumerable
GetBookReplacedWithTemplate ( string bookPath ) : string

Does some pre-processing on reader files

GetMetaJsonModfiedForTemplate ( string path ) : string

메소드 상세

AttemptMissingImageReplacements() 공개 메소드

public AttemptMissingImageReplacements ( string pathToFolderOfReplacementImages = null ) : void
pathToFolderOfReplacementImages string
리턴 void

BringBookUpToDate() 공개 메소드

public BringBookUpToDate ( ) : void
리턴 void

CompressDirectory() 보호된 정적인 메소드

Adds a directory, along with all files and subdirectories, to the ZipStream.
Protected for testing purposes
protected static CompressDirectory ( string directoryPath, ZipOutputStream zipStream, int dirNameOffest, bool forReaderTools ) : void
directoryPath string The directory to add recursively
zipStream ICSharpCode.SharpZipLib.Zip.ZipOutputStream The ZipStream to which the files and directories will be added
dirNameOffest int This number of characters will be removed from the full directory or file name /// before creating the zip entry name
forReaderTools bool If True, then some pre-processing will be done to the contents of decodable /// and leveled readers before they are added to the ZipStream
리턴 void

DeleteBook() 공개 메소드

public DeleteBook ( Book book ) : bool
book Bloom.Book.Book
리턴 bool

DoChecksOfAllBooks() 공개 메소드

public DoChecksOfAllBooks ( ) : void
리턴 void

DoChecksOfAllBooksBackgroundWork() 공개 메소드

public DoChecksOfAllBooksBackgroundWork ( ProgressDialogBackground dialog, string pathToFolderOfReplacementImages ) : void
dialog Bloom.ToPalaso.ProgressDialogBackground
pathToFolderOfReplacementImages string
리턴 void

DoUpdatesOfAllBooks() 공개 메소드

public DoUpdatesOfAllBooks ( ) : void
리턴 void

DoUpdatesOfAllBooks() 공개 메소드

public DoUpdatesOfAllBooks ( IProgress progress ) : void
progress IProgress
리턴 void

DoubleClickedBook() 공개 메소드

public DoubleClickedBook ( ) : void
리턴 void

ExportDocFormat() 공개 메소드

All we do at this point is make a file with a ".doc" extension and open it.
The .doc extension allows the operating system to recognize which program should open the file, and the program (whether Microsoft Word or LibreOffice or OpenOffice) seems to handle HTML content just fine.
public ExportDocFormat ( string path ) : void
path string
리턴 void

ExportInDesignXml() 공개 메소드

public ExportInDesignXml ( string path ) : void
path string
리턴 void

GetBookCollections() 공개 메소드

public GetBookCollections ( ) : List
리턴 List

GetBookFromBookInfo() 공개 메소드

public GetBookFromBookInfo ( BookInfo bookInfo ) : Book.Book
bookInfo Bloom.Book.BookInfo
리턴 Book.Book

GetSuggestedBloomPackPath() 공개 메소드

public GetSuggestedBloomPackPath ( ) : string
리턴 string

LibraryModel() 공개 메소드

public LibraryModel ( string pathToLibrary, CollectionSettings collectionSettings, BookSelection bookSelection, SourceCollectionsList sourceCollectionsList, BookCollection bookCollectionFactory, EditBookCommand editBookCommand, CreateFromSourceBookCommand createFromSourceBookCommand, BookServer bookServer, CurrentEditableCollectionSelection currentEditableCollectionSelection, BookThumbNailer thumbNailer ) : System
pathToLibrary string
collectionSettings Bloom.Collection.CollectionSettings
bookSelection Bloom.Book.BookSelection
sourceCollectionsList SourceCollectionsList
bookCollectionFactory Bloom.Collection.BookCollection
editBookCommand EditBookCommand
createFromSourceBookCommand CreateFromSourceBookCommand
bookServer Bloom.Book.BookServer
currentEditableCollectionSelection Bloom.Book.CurrentEditableCollectionSelection
thumbNailer BookThumbNailer
리턴 System

MakeBloomPack() 공개 메소드

public MakeBloomPack ( string path, bool forReaderTools = false ) : void
path string
forReaderTools bool
리턴 void

OpenFolderOnDisk() 공개 메소드

public OpenFolderOnDisk ( ) : void
리턴 void

ReloadCollections() 공개 메소드

public ReloadCollections ( ) : void
리턴 void

SelectBook() 공개 메소드

public SelectBook ( Book book ) : void
book Bloom.Book.Book
리턴 void

UpdateThumbnailAsync() 공개 메소드

public UpdateThumbnailAsync ( Book book, HtmlThumbNailer thumbnailOptions, Image>.Action callback, Exception>.Action errorCallback ) : void
book Bloom.Book.Book
thumbnailOptions HtmlThumbNailer
callback Image>.Action
errorCallback Exception>.Action
리턴 void