C# Класс Bloom.Publish.PublishModel

Contains the logic behind the PublishView control, which involves creating a pdf from the html book and letting you print it.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
AddStylesheetClasses void
GetPdfPath string
MakeFinalHtmlForPdfMaker Bloom.Api.SimulatedPageFile
OnBookSelectionChanged void
PrepareToStageEpub void
SanitizeFileName string
SaveAsEpub void
StageEpub void

Открытые методы

Метод Описание
DebugCurrentPDFLayout ( ) : void
Dispose ( ) : void
GetExtensionMenuItems ( ) : IEnumerable
GetPageDoms ( ) : IEnumerable
GetThumbnailAsync ( int width, int height, HtmlDom dom, Action onReady, Action onError ) : void
LoadBook ( BackgroundWorker worker, DoWorkEventArgs doWorkEventArgs ) : void
PublishModel ( BookSelection bookSelection, PdfMaker pdfMaker, CurrentEditableCollectionSelection currentBookCollectionSelection, CollectionSettings collectionSettings, BookServer bookServer, BookThumbNailer thumbNailer, NavigationIsolator isolator ) : System
RefreshValuesUponActivation ( ) : void
ReportAnalytics ( string eventName ) : void
Save ( ) : void

Приватные методы

Метод Описание
AddStylesheetClasses ( XmlDocument dom ) : void
GetPdfPath ( string fname ) : string
MakeFinalHtmlForPdfMaker ( ) : SimulatedPageFile
OnBookSelectionChanged ( object sender, EventArgs e ) : void
PrepareToStageEpub ( ) : void
SanitizeFileName ( string fileName ) : string

Ampersand in book title was causing Publish problems

SaveAsEpub ( ) : void
StageEpub ( bool publishWithoutAudio ) : void

Описание методов

DebugCurrentPDFLayout() публичный Метод

public DebugCurrentPDFLayout ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetExtensionMenuItems() публичный Метод

public GetExtensionMenuItems ( ) : IEnumerable
Результат IEnumerable

GetPageDoms() публичный Метод

public GetPageDoms ( ) : IEnumerable
Результат IEnumerable

GetThumbnailAsync() публичный Метод

public GetThumbnailAsync ( int width, int height, HtmlDom dom, Action onReady, Action onError ) : void
width int
height int
dom Bloom.Book.HtmlDom
onReady Action
onError Action
Результат void

LoadBook() публичный Метод

public LoadBook ( BackgroundWorker worker, DoWorkEventArgs doWorkEventArgs ) : void
worker System.ComponentModel.BackgroundWorker
doWorkEventArgs System.ComponentModel.DoWorkEventArgs
Результат void

PublishModel() публичный Метод

public PublishModel ( BookSelection bookSelection, PdfMaker pdfMaker, CurrentEditableCollectionSelection currentBookCollectionSelection, CollectionSettings collectionSettings, BookServer bookServer, BookThumbNailer thumbNailer, NavigationIsolator isolator ) : System
bookSelection Bloom.Book.BookSelection
pdfMaker PdfMaker
currentBookCollectionSelection Bloom.Book.CurrentEditableCollectionSelection
collectionSettings Bloom.Collection.CollectionSettings
bookServer Bloom.Book.BookServer
thumbNailer BookThumbNailer
isolator NavigationIsolator
Результат System

RefreshValuesUponActivation() публичный Метод

public RefreshValuesUponActivation ( ) : void
Результат void

ReportAnalytics() публичный Метод

public ReportAnalytics ( string eventName ) : void
eventName string
Результат void

Save() публичный Метод

public Save ( ) : void
Результат void