C# Класс Bloom.CollectionTab.LibraryModel

Показать файл Открыть проект Примеры использования класса

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