C# Class Bloom.Publish.PublishModel

Contains the logic behind the PublishView control, which involves creating a pdf from the html book and letting you print it.
Inheritance: IDisposable
Afficher le fichier Open project: BloomBooks/BloomDesktop Class Usage Examples

Private Properties

Свойство Type Description
AddStylesheetClasses void
GetPdfPath string
MakeFinalHtmlForPdfMaker Bloom.Api.SimulatedPageFile
OnBookSelectionChanged void
PrepareToStageEpub void
SanitizeFileName string
SaveAsEpub void
StageEpub void

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

DebugCurrentPDFLayout() public méthode

public DebugCurrentPDFLayout ( ) : void
Résultat void

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetExtensionMenuItems() public méthode

public GetExtensionMenuItems ( ) : IEnumerable
Résultat IEnumerable

GetPageDoms() public méthode

public GetPageDoms ( ) : IEnumerable
Résultat IEnumerable

GetThumbnailAsync() public méthode

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
Résultat void

LoadBook() public méthode

public LoadBook ( BackgroundWorker worker, DoWorkEventArgs doWorkEventArgs ) : void
worker System.ComponentModel.BackgroundWorker
doWorkEventArgs System.ComponentModel.DoWorkEventArgs
Résultat void

PublishModel() public méthode

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
Résultat System

RefreshValuesUponActivation() public méthode

public RefreshValuesUponActivation ( ) : void
Résultat void

ReportAnalytics() public méthode

public ReportAnalytics ( string eventName ) : void
eventName string
Résultat void

Save() public méthode

public Save ( ) : void
Résultat void