This class defines the setup parameters for a printer.
![]() | Forms Standard paper sizes for printer setup. |
![]() | SelectionOnly Options for printing selected "items" only. |
![]() | PPrintInfo () Create an object to encapsulate printing information. |
![]() | GetPrinter () const Get the printer type name that this printer setup information is for. |
![]() | GetDevice () const Get the printer device name that this printer setup information is for. |
![]() | SetForm ( Forms newForm ) Set the print form used. |
![]() | GetForm () const Get the print form used. |
![]() | SetPaperSize ( const PDim & dim ) Set the paper size in tenths of a millimeter. |
![]() | GetPaperSize () const Get the paper size in tenths of a millimeter. |
![]() | GetResolution () const Get the printer device resolution in dots per inch for the horizontal and vertical dimensions. |
![]() | SetCopies ( unsigned count ) Set the number of copies to be produced by the print job. |
![]() | GetCopies () const Get the number of copies to be produced by the print job. |
![]() | SetPortrait ( BOOL port = TRUE ) Set the paper orientation. |
![]() | SetLandscape () Set the paper orientation to landscape. |
![]() | IsPortrait () const Determine the paper orientation. |
![]() | IsDraftQuality () const Determine if printer quality is in draft mode, otherwise final or letter quality mode is used. |
![]() | SetStartPage ( unsigned page ) Set the starting page for the print job. |
![]() | GetStartPage () const Get the starting page for the print job. |
![]() | SetEndPage ( unsigned page ) Set the ending page for the print job. |
![]() | GetEndPage () const Set the ending page for the print job. |
![]() | SetSelectionOnly ( SelectionOnly selOnly ) Set the flag for if the selection in the document is to be printed. |
![]() | GetSelectionOnly () const Get the flag for if the selection in the document is to be printed. |
![]() | IsSelectionOnly () const Simplification of the GetSelectionOnly() function which indicates that the document selection is to be printed. |
![]() | New members for class |
![]() | printer Printer type string. |
![]() | device Printer device string. |
![]() | form Standard paper size for setup. |
![]() | paperSize Current forms paper fize in tenths of a millimeter. |
![]() | resolution Current printer types resultion in dots per inch. |
![]() | startPage First page to print. |
![]() | endPage Last page to print. |
![]() | selectionOnly Print the selection |
![]() | copies Number of copies to print. |
![]() | orientation Page orientation, TRUE is portrait mode. |
![]() | draftQuality Printer is to print in draft quality. |
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This class defines the setup parameters for a printer. Instances of this class are usually created by the PPrintJobDialog or PPrinterSetupDialog standard dialogs.Not all of the specified parameters will have an effect on all platforms, or even on all printers for a particular platform.
It is possible for there to be a different setup for the same printer type on different devices, eg a "postscript" printer type on "LPT1" is only A4 but on "LPT2" is capabile of A3.
Explicit selection of a printer type and device is rare as the string contents are platform dependent. It is possible though that they may come from a configuration file that is itself platform dependent.
Note that not all printers will take any notice of this parameter.
Note that not all printers will take any notice of this parameter.
Note that not all printers will take any notice of this parameter.
Note if the Start page is set to zero, then the ability to set the page
range is disabled.
Note if the Start page is set to zero, then the ability to set the page
range is disabled.
New members for class
PString GetPrinter() const
PString GetDevice() const
enum Forms
Custom
A3
A4
A5
B4
B5
USLetter
USLegal
MaxForm
void SetForm( Forms newForm )
Forms GetForm() const
void SetPaperSize( const PDim & dim )
PDim GetPaperSize() const
PDim GetResolution() const
void SetCopies( unsigned count )
unsigned GetCopies() const
void SetPortrait( BOOL port = TRUE )
void SetLandscape()
BOOL IsPortrait() const
BOOL IsDraftQuality() const
void SetStartPage( unsigned page )
unsigned GetStartPage() const
void SetEndPage( unsigned page )
unsigned GetEndPage() const
enum SelectionOnly
NoSelectionOnly
SelectionOnlyOff
void SetSelectionOnly( SelectionOnly selOnly )
SelectionOnly GetSelectionOnly() const
BOOL IsSelectionOnly() const
PString printer
PString device
Forms form
PDim paperSize
PDim resolution
unsigned startPage
unsigned endPage
SelectionOnly selectionOnly
unsigned copies
Alphabetic index HTML hierarchy of classes or Java