[Overview][Types][Classes][Variables][Index] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
TPrinter - class defining printer to be used in Lazarus applications
Source position: printers.pas line 130
type TPrinter = class(TObject) |
||
protected |
||
procedure SelectCurrentPrinterOrDefault; |
|
|
function GetCanvasRef; virtual; |
|
|
procedure DoBeginDoc; virtual; |
|
|
procedure DoNewPage; virtual; |
|
|
procedure DoEndDoc(); virtual; |
|
|
procedure DoAbort; virtual; |
|
|
procedure DoResetPrintersList; virtual; |
|
|
procedure DoResetFontsList; virtual; |
|
|
procedure DoEnumPrinters(); virtual; |
|
|
procedure DoEnumFonts(); virtual; |
|
|
procedure DoEnumPapers(); virtual; |
|
|
procedure DoInitialization; virtual; |
||
function DoSetPrinter(); virtual; |
|
|
function DoGetCopies; virtual; |
|
|
procedure DoSetCopies(); virtual; |
|
|
function DoGetOrientation; virtual; |
|
|
procedure DoSetOrientation(); virtual; |
|
|
function DoGetDefaultPaperName; virtual; |
|
|
function DoGetPaperName; virtual; |
|
|
procedure DoSetPaperName(); virtual; |
|
|
function DoGetPaperRect(); virtual; |
|
|
function DoGetPrinterState; virtual; |
|
|
function GetPrinterType; virtual; |
|
|
function GetCanPrint; virtual; |
|
|
function GetCanRenderCopies; virtual; |
||
function GetXDPI; virtual; |
||
function GetYDPI; virtual; |
||
procedure CheckRawMode(); |
||
procedure RawModeChanging; virtual; |
||
procedure PrinterSelected; virtual; |
||
public |
||
constructor Create; virtual; |
|
|
destructor Destroy; override; |
|
|
procedure Abort; |
|
Abort - terminate the current printing event (even if it hasn't finished) |
procedure BeginDoc; |
|
BeginDoc - start printing the currently selected document |
procedure EndDoc; |
|
EndDoc - finish printing the current document |
procedure NewPage; |
|
NewPage - start printing on a new page |
procedure Refresh; |
|
|
procedure SetPrinter(); |
|
|
function Write(); virtual; |
||
property PrinterIndex: Integer; [rw] |
|
|
property PaperSize: TPaperSize; [r] |
|
PaperSize - the size of paper to be used for the current document |
property Orientation: TPrinterOrientation; [rw] |
|
The Orientation - for printing the current document (landscape or portrait, normal or reversed) |
property PrinterState: TPrinterState; [r] |
|
PrinterState - ready, printing, stopped or undefined |
property Copies: Integer; [rw] |
|
Number of Copies of the current document |
|
Printers - the list of available printers for printing the current document |
|
|
the list of available Fonts for the current printer |
|
|
The Canvas to be used for laying out the current document ready for printing |
|
property PageHeight: Integer; [r] |
|
PageHeight - for printing the current document with the defined PaperSize |
property PageWidth: Integer; [r] |
|
The PageWidth for the current document with the defined PaperSize |
property PageNumber: Integer; [r] |
|
PageNumber - the number of the current page being printed |
property Aborted: Boolean; [r] |
|
Aborted - True if printing of the document has been prematurely terminated by operator command |
property Printing: Boolean; [r] |
|
Printing - True if document is in process of being printed |
property Title: String; [rw] |
|
Title - name for this printer |
property PrinterType: TPrinterType; [r] |
|
PrinterType - whether a local or network printer |
property CanPrint: Boolean; [r] |
|
CanPrint - True if printing is enabled or not disabled |
property CanRenderCopies: Boolean; [r] |
|
CanRenderCopies - True if the printer device can render copies |
property XDPI: Integer; [r] |
|
XDPI - number of dots per inch in X-direction |
property YDPI: Integer; [r] |
|
YDPI - number of dots per inch in Y direction |
property RawMode: Boolean; [rw] |
|
RawMode - true if printer operates in Raw Mode (as opposed to PostScript or some other page description language) |
end; |
|
TPrinter - class defining printer to be used in Lazarus applications |
|
| | ||
TObject |
lazarus-ccr.sourceforge.net |