Class tcustomprintercanvas

Unit

Declaration

type tcustomprintercanvas = class(tcanvas)

Description

No description available, ancestor tcanvas description follows

Hierarchy

Overview

Fields

Protected fpstate: printercanvasstatesty;
Protected fgcoffsetx: real;
Protected fgcoffsety: real;
Protected fgcscale: real;
Protected foriginx: real;
Protected foriginy: real;
Protected fscale: real;
Protected foffset: pointty;
Protected fclientrect: rectty;
Protected fpapersize: sizety;
Protected fboundingbox: framety;
Protected ftitle: msestring;
Protected flinenumber: integer;
Protected fpagelinenumber: integer;
Protected fliney: integer;
Protected fprinter: tcustomprinter;
Protected fcolorspace: colorspacety;
Protected fpreamble: string;

Methods

Protected function createfont: tcanvasfont; override;
Protected procedure initprinting(const apreamble: string = '');
Protected procedure checkgcstate(state: canvasstatesty); override;
Protected function getfitrect: rectty; override;
Protected procedure setppmm(avalue: real); override;
Protected function defaultcliprect: rectty; override;
Protected procedure updatescale; virtual;
Protected procedure updateframe;
Protected procedure beginpage; virtual;
Protected procedure endpage; virtual;
Protected procedure dotextout(const text: richstringty; const dest: rectty; const flags: textflagsty; const tabdist: real; afontcolorshadow: colorty);
Protected procedure textout(const text: richstringty; const dest: rectty; const flags: textflagsty; const tabdist: real); virtual; abstract;
Protected procedure begintextclip(const arect: rectty); virtual; abstract;
Protected procedure endtextclip; virtual; abstract;
Protected procedure checknextpage;
Protected procedure internalwriteln(const avalue: richstringty);
Protected procedure setpagesstring(const avalue: msestring);
Protected procedure internaldrawtext(var info); override;
Public constructor create(const user: tcustomprinter; const intf: icanvas); reintroduce;
Public procedure initflags(const dest: tcanvas); override;
Public procedure drawtext(var info: drawtextinfoty); overload; virtual;
Public procedure drawtext(const atext: richstringty; const adest: rectty; aflags: textflagsty = []; afont: tfont = nil; atabulators: ttabulators = nil); overload;
Public procedure drawtext(const atext: richstringty; const adest,aclip: rectty; aflags: textflagsty = []; afont: tfont = nil; atabulators: ttabulators = nil); overload;
Public procedure drawtext(const atext: msestring; const adest: rectty; aflags: textflagsty = []; afont: tfont = nil; atabulators: ttabulators = nil); overload;
Public procedure writeln(const avalue: msestring = ''); overload;
Public procedure writeln(const avalue: richstringty); overload;
Public procedure writelines(const alines: array of msestring); overload;
Public procedure writelines(const alines: msestringarty); overload;
Public procedure writelines(const alines: richstringarty); overload;
Public function remaininglines: integer;
Public function liney1: integer;
Public function lineheight: integer;
Public procedure nextpage; override;
Public function active: boolean;

Properties

Public property indentx: integer read findentx write findentx;
Public property indenty: integer read findenty write findenty;
Public property headerheight: integer read fheaderheight write fheaderheight;
Public property footerheight: integer read ffooterheight write ffooterheight;
Public property linenumber: integer read flinenumber;
Public property pagelinenumber: integer read fpagelinenumber;
Public property liney: integer read getliney write setliney;
Public property title: msestring read ftitle write ftitle;
Public property clientrect: rectty read fclientrect;
Public property clientpos: pointty read fclientrect.pos;
Public property clientsize: sizety read fclientrect.size;
Public property clientleft: integer read fclientrect.x;
Public property clienttop: integer read fclientrect.y;
Public property clientwidth: integer read fclientrect.cx;
Public property clientheight: integer read fclientrect.cy;
Public property colorspace: colorspacety read fcolorspace write setcolorspace default cos_gray;
Public property pagenumber: integer read fpagenumber;
Public property pageskind: pageskindty read fpageskind write fpageskind;
Public property pages: pagerangearty read fpages write setpages;
Public property pagesstring: msestring read fpagesstring write setpagesstring;
Public property printorientation: pageorientationty read fprintorientation write setprintorientation default pao_portrait;

Description

Fields

Protected fpstate: printercanvasstatesty;
 
Protected fgcoffsetx: real;
 
Protected fgcoffsety: real;
 
Protected fgcscale: real;
 
Protected foriginx: real;
 
Protected foriginy: real;
 
Protected fscale: real;
 
Protected foffset: pointty;
 
Protected fclientrect: rectty;
 
Protected fpapersize: sizety;
 
Protected fboundingbox: framety;
 
Protected ftitle: msestring;
 
Protected flinenumber: integer;
 
Protected fpagelinenumber: integer;
 
Protected fliney: integer;
 
Protected fprinter: tcustomprinter;
 
Protected fcolorspace: colorspacety;
 
Protected fpreamble: string;
 

Methods

Protected function createfont: tcanvasfont; override;
 
Protected procedure initprinting(const apreamble: string = '');
 
Protected procedure checkgcstate(state: canvasstatesty); override;
 
Protected function getfitrect: rectty; override;
 
Protected procedure setppmm(avalue: real); override;
 
Protected function defaultcliprect: rectty; override;
 
Protected procedure updatescale; virtual;
 
Protected procedure updateframe;
 
Protected procedure beginpage; virtual;
 
Protected procedure endpage; virtual;
 
Protected procedure dotextout(const text: richstringty; const dest: rectty; const flags: textflagsty; const tabdist: real; afontcolorshadow: colorty);
 
Protected procedure textout(const text: richstringty; const dest: rectty; const flags: textflagsty; const tabdist: real); virtual; abstract;
 
Protected procedure begintextclip(const arect: rectty); virtual; abstract;
 
Protected procedure endtextclip; virtual; abstract;
 
Protected procedure checknextpage;
 
Protected procedure internalwriteln(const avalue: richstringty);
 
Protected procedure setpagesstring(const avalue: msestring);
 
Protected procedure internaldrawtext(var info); override;
 
Public constructor create(const user: tcustomprinter; const intf: icanvas); reintroduce;
 
Public procedure initflags(const dest: tcanvas); override;
 
Public procedure drawtext(var info: drawtextinfoty); overload; virtual;
 
Public procedure drawtext(const atext: richstringty; const adest: rectty; aflags: textflagsty = []; afont: tfont = nil; atabulators: ttabulators = nil); overload;
 
Public procedure drawtext(const atext: richstringty; const adest,aclip: rectty; aflags: textflagsty = []; afont: tfont = nil; atabulators: ttabulators = nil); overload;
 
Public procedure drawtext(const atext: msestring; const adest: rectty; aflags: textflagsty = []; afont: tfont = nil; atabulators: ttabulators = nil); overload;
 
Public procedure writeln(const avalue: msestring = ''); overload;
 
Public procedure writeln(const avalue: richstringty); overload;
 
Public procedure writelines(const alines: array of msestring); overload;
 
Public procedure writelines(const alines: msestringarty); overload;
 
Public procedure writelines(const alines: richstringarty); overload;
 
Public function remaininglines: integer;
 
Public function liney1: integer;
 
Public function lineheight: integer;
 
Public procedure nextpage; override;
 
Public function active: boolean;
 

Properties

Public property indentx: integer read findentx write findentx;
 
Public property indenty: integer read findenty write findenty;
 
Public property headerheight: integer read fheaderheight write fheaderheight;
 
Public property footerheight: integer read ffooterheight write ffooterheight;
 
Public property linenumber: integer read flinenumber;
 
Public property pagelinenumber: integer read fpagelinenumber;
 
Public property liney: integer read getliney write setliney;
 
Public property title: msestring read ftitle write ftitle;
 
Public property clientrect: rectty read fclientrect;
 
Public property clientpos: pointty read fclientrect.pos;
 
Public property clientsize: sizety read fclientrect.size;
 
Public property clientleft: integer read fclientrect.x;
 
Public property clienttop: integer read fclientrect.y;
 
Public property clientwidth: integer read fclientrect.cx;
 
Public property clientheight: integer read fclientrect.cy;
 
Public property colorspace: colorspacety read fcolorspace write setcolorspace default cos_gray;
 
Public property pagenumber: integer read fpagenumber;
 
Public property pageskind: pageskindty read fpageskind write fpageskind;
 
Public property pages: pagerangearty read fpages write setpages;
 
Public property pagesstring: msestring read fpagesstring write setpagesstring;
 
Public property printorientation: pageorientationty read fprintorientation write setprintorientation default pao_portrait;
 

Generated by PasDoc 0.16.0.