A canvas that will go to a printer.
![]() | jobName Arbitrary name to identify to print job on some platforms, eg an identifier in the print queue for MS-Windows |
![]() | PPrintCanvas ( const PString & job ) Create a canvas that will go to the default printer device using its default printer setup. |
![]() | PPrintCanvas ( const PString & job, const PString & printer, const PString & device ) Create a canvas that will go to the specified printer device using its default printer setup. |
![]() | PPrintCanvas ( const PString & job, const PPrintInfo & info ) Create a canvas that will go to the specified printer device using the specified printer setup. |
![]() | ~PPrintCanvas () Destroy the printer canvas, freing all resource used. |
![]() | NewPage () Begin output to a new page. |
![]() | SetDrawingBounds ( const PRect & bounds ) Set the drawable area of the printer page. |
![]() | GetPrintInfo () const Get the current printer setup information for the print canvas. |
![]() | ChangePrintInfo ( const PPrintInfo & info ) This allows the print parameters to be changed in mid job. |
![]() | New functions for class |
![]() | printInfo Printer specification describing all optional information on the selected printer. |
![]() | Member fields |
PORDINATE Member variables
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
A canvas that will go to a printer. Outputing to a printer consists of drawing to an area that represents a printed page. The application then completes each page and creates a new blank page to be drawn to.NOTE *********************************** On Some platforms, canvases are a limited resource. Do NOT create and leave them around for long periods. As soon as it is not required till the next user event, destroy it!
Not all items in the PPrintInfo can be changed in the middle of the
print job, eg changing the printer type from "Postscript" to "HPPCL".
These changes are ignored by the ChangePrintInfo() function.
PPrintCanvas( const PString & job, const PString & printer, const PString & device )
printer - Printer type name for printing to, eg "Postscript". The possible
values for this parameter are platform dependent and would rarely be
set explicitly by the application.
device - Output device or queue for printer, eg "LPT1" for MS-Windows or
"PS_LASER" for Unix. The possible values for this parameter are
platform dependent and would rarely be set explicitly by the
application.
PPrintCanvas( const PString & job, const PPrintInfo & info )
info - Printer specification describing all optional information on the
selected printer. This would typically be obtained via the
PPrintJobDialog class.
virtual ~PPrintCanvas()
New functions for class
BOOL NewPage()
void SetDrawingBounds( const PRect & bounds )
const PPrintInfo& GetPrintInfo() const
void ChangePrintInfo( const PPrintInfo & info )
Member fields
PString jobName
PPrintInfo printInfo
Alphabetic index HTML hierarchy of classes or Java