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
Show file Open project: BloomBooks/BloomDesktop Class Usage Examples

Private Properties

Property Type Description
AddStylesheetClasses void
GetPdfPath string
MakeFinalHtmlForPdfMaker Bloom.Api.SimulatedPageFile
OnBookSelectionChanged void
PrepareToStageEpub void
SanitizeFileName string
SaveAsEpub void
StageEpub void

Public Methods

Method 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

Method 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 method

public DebugCurrentPDFLayout ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

GetExtensionMenuItems() public method

public GetExtensionMenuItems ( ) : IEnumerable
return IEnumerable

GetPageDoms() public method

public GetPageDoms ( ) : IEnumerable
return IEnumerable

GetThumbnailAsync() public method

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
return void

LoadBook() public method

public LoadBook ( BackgroundWorker worker, DoWorkEventArgs doWorkEventArgs ) : void
worker System.ComponentModel.BackgroundWorker
doWorkEventArgs System.ComponentModel.DoWorkEventArgs
return void

PublishModel() public method

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
return System

RefreshValuesUponActivation() public method

public RefreshValuesUponActivation ( ) : void
return void

ReportAnalytics() public method

public ReportAnalytics ( string eventName ) : void
eventName string
return void

Save() public method

public Save ( ) : void
return void