Class TCustomPrintHandler

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TCustomPrintHandler = class(TCefPrintHandlerOwn)

Description

This item has no description.

Hierarchy

Overview

Fields

Protected FEvents: Pointer;

Methods

Protected procedure OnPrintStart(const browser: ICefBrowser); override;
Protected procedure OnPrintSettings(const browser: ICefBrowser; const settings: ICefPrintSettings; getDefaults: boolean); override;
Protected procedure OnPrintDialog(const browser: ICefBrowser; hasSelection: boolean; const callback: ICefPrintDialogCallback; var aResult: boolean); override;
Protected procedure OnPrintJob(const browser: ICefBrowser; const documentName, PDFFilePath: ustring; const callback: ICefPrintJobCallback; var aResult: boolean); override;
Protected procedure OnPrintReset(const browser: ICefBrowser); override;
Protected procedure GetPDFPaperSize(const browser: ICefBrowser; deviceUnitsPerInch: Integer; var aResult: TCefSize); override;
Protected procedure RemoveReferences; override;
Public constructor Create(const events : IChromiumEvents); reintroduce; virtual;
Public destructor Destroy; override;

Description

Fields

Protected FEvents: Pointer;

This item has no description.

Methods

Protected 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).

Protected 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.

Protected 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.

Protected 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.

Protected procedure OnPrintReset(const browser: ICefBrowser); override;

This item has no description. Showing description inherited from ICefPrintHandler.OnPrintReset.

Reset client state related to printing.

Protected 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().

Protected procedure RemoveReferences; override;

This item has no description. Showing description inherited from ICefPrintHandler.RemoveReferences.

Custom procedure to clear all references.

Public constructor Create(const events : IChromiumEvents); reintroduce; virtual;

This item has no description.

Public destructor Destroy; override;

This item has no description.


Generated by PasDoc 0.16.0-snapshot.