C# Class GeckofxHtmlToPdf.GeckofxHtmlToPdfComponent

Inheritance: System.ComponentModel.Component, nsIWebProgressListener
ファイルを表示 Open project: hatton/geckofxHtmlToPdf

Public Methods

Method Description
GeckofxHtmlToPdfComponent ( ) : System
GeckofxHtmlToPdfComponent ( IContainer container ) : System
OnLocationChange ( nsIWebProgress aWebProgress, nsIRequest aRequest, nsIURI aLocation, uint aFlags ) : void
OnProgressChange ( nsIWebProgress webProgress, nsIRequest request, int currentSelfProgress, int maxSelfProgress, int currentTotalProgress, int maxTotalProgress ) : void
OnSecurityChange ( nsIWebProgress aWebProgress, nsIRequest aRequest, uint aState ) : void
OnStateChange ( nsIWebProgress aWebProgress, nsIRequest aRequest, uint aStateFlags, int aStatus ) : void
OnStatusChange ( nsIWebProgress aWebProgress, nsIRequest aRequest, int aStatus, string aMessage ) : void
Start ( ConversionOrder conversionOrder ) : void

On the application event thread, work on creating the pdf. Will raise the StatusChanged and Finished events

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

RaiseFinished ( ) : void
RaiseStatusChanged ( PdfMakingStatus e ) : void

Private Methods

Method Description
FinishMakingPdf ( ) : void
GetPaperSize ( string name ) : PaperSize
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnBrowserConsoleMessage ( object sender, Gecko.ConsoleMessageEventArgs e ) : void
OnCheckForBrowserNavigatedTimerTick ( object sender, EventArgs e ) : void
OnCheckForPdfFinishedTimer_Tick ( object sender, EventArgs e ) : void
StartMakingPdf ( ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GeckofxHtmlToPdfComponent() public method

public GeckofxHtmlToPdfComponent ( ) : System
return System

GeckofxHtmlToPdfComponent() public method

public GeckofxHtmlToPdfComponent ( IContainer container ) : System
container IContainer
return System

OnLocationChange() public method

public OnLocationChange ( nsIWebProgress aWebProgress, nsIRequest aRequest, nsIURI aLocation, uint aFlags ) : void
aWebProgress nsIWebProgress
aRequest nsIRequest
aLocation nsIURI
aFlags uint
return void

OnProgressChange() public method

public OnProgressChange ( nsIWebProgress webProgress, nsIRequest request, int currentSelfProgress, int maxSelfProgress, int currentTotalProgress, int maxTotalProgress ) : void
webProgress nsIWebProgress
request nsIRequest
currentSelfProgress int
maxSelfProgress int
currentTotalProgress int
maxTotalProgress int
return void

OnSecurityChange() public method

public OnSecurityChange ( nsIWebProgress aWebProgress, nsIRequest aRequest, uint aState ) : void
aWebProgress nsIWebProgress
aRequest nsIRequest
aState uint
return void

OnStateChange() public method

public OnStateChange ( nsIWebProgress aWebProgress, nsIRequest aRequest, uint aStateFlags, int aStatus ) : void
aWebProgress nsIWebProgress
aRequest nsIRequest
aStateFlags uint
aStatus int
return void

OnStatusChange() public method

public OnStatusChange ( nsIWebProgress aWebProgress, nsIRequest aRequest, int aStatus, string aMessage ) : void
aWebProgress nsIWebProgress
aRequest nsIRequest
aStatus int
aMessage string
return void

RaiseFinished() protected method

protected RaiseFinished ( ) : void
return void

RaiseStatusChanged() protected method

protected RaiseStatusChanged ( PdfMakingStatus e ) : void
e PdfMakingStatus
return void

Start() public method

On the application event thread, work on creating the pdf. Will raise the StatusChanged and Finished events
public Start ( ConversionOrder conversionOrder ) : void
conversionOrder ConversionOrder
return void