Inheritance diagram for CP_Printer:

Public Member Functions | |
| CP_Printer () | |
| virtual | ~CP_Printer () |
| CP_Size | GetPrintAreaOffset () |
| UInt32 | GetNumberCopies () |
| UInt32 | GetFirstPage () |
| UInt32 | GetLastPage () |
| CP_Printer_PageFormat | GetDefaultPrinterPageFormat () |
| CP_PrintSignal * | GetPrintSignal () |
| bool | DoPageSetup (CP_Window *inParentWindow=NULL) |
| bool | DoPrintDialog (CP_PrintSignal *inPrintSignal, CP_Window *inParentWindow=NULL) |
| bool | HasPrintRecord () |
| bool | OpenDocument () |
| void | CloseDocument () |
| bool | OpenPage (CP_Printer_PageFormat &inOutPageFormat) |
| bool | ClosePage () |
| void | EndPrinting () |
| bool | OpenPrinter () |
| bool | ClosePrinter () |
| PMPrintSession | GetPrintSession () |
| PMPageFormat | GetDefaultPageFormat () |
| PMPrintSettings | GetPrinterSettings () |
| CGrafPtr | GetPrinterPort () |
| CGContextRef | GetPrinterContextRef () |
| bool | UseQuartz () |
| void | SetUseQuartz (bool inUseQuartz) |
| HDC | GetPrinterPort () |
| OSGraphicsPort | GetPrinterPort () |
Protected Attributes | |
| CP_PrintSignal * | fPrintSignal |
| PMPrintSession | fPrintSession |
| PMPageFormat | fDefaultPageFormat |
| PMPrintSettings | fPrintSettings |
| CGrafPtr | fPrintingPort |
| CGContextRef | fPrintingContextRef |
| bool | fUseQuartz |
| SInt16 | fPrinterResFile |
| PAGESETUPDLG | fPrintRecord |
| PRINTDLG | fPrintPage |
| HDC | fPrinterPort |
| RECT | fPageRect |
| LPDEVMODE | flpDevMode |
| OSGraphicsPort | fPrinterPort |
Static Protected Attributes | |
| static CP_Printer * | fCurrentPrinter = NULL |
Private Member Functions | |
| OSStatus | CreateSheetDoneProcs () |
| void | SetPrinter (CP_Printer *inPrinter) |
Static Private Member Functions | |
| static CP_Printer * | GetPrinter () |
| static pascal void | CP_PageSetupDoneProc (PMPrintSession printSession, WindowRef documentWindow, Boolean accepted) |
| static pascal void | CP_PrintDialogDoneProc (PMPrintSession printSession, WindowRef documentWindow, Boolean accepted) |
|
|
Constructor. This will set our data members to default values for printing on an 8.5x11 page with 1/2 inch margins. |
|
|
Destructor. |
|
|
|
|
|
Return the number of copies the user selected to print. |
|
|
Return the first page to print. |
|
|
Return the last page to print. |
|
|
|
|
|
|
|
|
Present the platforms page setup dialog. |
|
||||||||||||
|
Present the platforms print dialog. |
|
|
Return true if we have a valid print record. |
|
|
Open a document for printing. There should be matching calls to OpenDocument / CloseDocument. |
|
|
Close a previously opened document for printing. There should be matching calls to OpenDocument / CloseDocument. |
|
|
Open a page for printing. There should be matching calls to OpenPage / ClosePage. |
|
|
Close a previously opened page for printing. There should be matching calls to OpenPage / ClosePage. |
|
|
End the current printing session. |
|
|
Open the printer. |
|
|
Close the printer. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.0