type TCustomPrintHandler = class(TCefPrintHandlerOwn)
This item has no description.
FEvents: Pointer; |
procedure OnPrintStart(const browser: ICefBrowser); override; |
|
procedure OnPrintSettings(const browser: ICefBrowser; const settings: ICefPrintSettings; getDefaults: boolean); override; |
|
procedure OnPrintDialog(const browser: ICefBrowser; hasSelection: boolean; const callback: ICefPrintDialogCallback; var aResult: boolean); override; |
|
procedure OnPrintJob(const browser: ICefBrowser; const documentName, PDFFilePath: ustring; const callback: ICefPrintJobCallback; var aResult: boolean); override; |
|
procedure OnPrintReset(const browser: ICefBrowser); override; |
|
procedure GetPDFPaperSize(const browser: ICefBrowser; deviceUnitsPerInch: Integer; var aResult: TCefSize); override; |
|
procedure RemoveReferences; override; |
|
constructor Create(const events : IChromiumEvents); reintroduce; virtual; |
|
destructor Destroy; override; |
FEvents: Pointer; |
|
This item has no description. |
procedure OnPrintStart(const browser: ICefBrowser); override; |
|
This item has no description. Showing description inherited from ICefPrintHandler.OnPrintStart. Called when printing has started for the specified |browser|. This function will be called before the other OnPrint*() functions and irrespective of how printing was initiated (e.g. ICefBrowserHost.print(), JavaScript window.print() or PDF extension print button). |
procedure OnPrintSettings(const browser: ICefBrowser; const settings: ICefPrintSettings; getDefaults: boolean); override; |
|
This item has no description. Showing description inherited from ICefPrintHandler.OnPrintSettings. Synchronize |settings| with client state. If |get_defaults| is true (1) then populate |settings| with the default print settings. Do not keep a reference to |settings| outside of this callback. |
procedure OnPrintDialog(const browser: ICefBrowser; hasSelection: boolean; const callback: ICefPrintDialogCallback; var aResult: boolean); override; |
|
This item has no description. Showing description inherited from ICefPrintHandler.OnPrintDialog. Show the print dialog. Execute |callback| once the dialog is dismissed. Return true (1) if the dialog will be displayed or false (0) to cancel the printing immediately. |
procedure OnPrintJob(const browser: ICefBrowser; const documentName, PDFFilePath: ustring; const callback: ICefPrintJobCallback; var aResult: boolean); override; |
|
This item has no description. Showing description inherited from ICefPrintHandler.OnPrintJob. Send the print job to the printer. Execute |callback| once the job is completed. Return true (1) if the job will proceed or false (0) to cancel the job immediately. |
procedure OnPrintReset(const browser: ICefBrowser); override; |
|
This item has no description. Showing description inherited from ICefPrintHandler.OnPrintReset. Reset client state related to printing. |
procedure GetPDFPaperSize(const browser: ICefBrowser; deviceUnitsPerInch: Integer; var aResult: TCefSize); override; |
|
This item has no description. Showing description inherited from ICefPrintHandler.GetPDFPaperSize. Return the PDF paper size in device units. Used in combination with ICefBrowserHost.PrintToPdf(). |
procedure RemoveReferences; override; |
|
This item has no description. Showing description inherited from ICefPrintHandler.RemoveReferences. Custom procedure to clear all references. |
constructor Create(const events : IChromiumEvents); reintroduce; virtual; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |