Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CP_Printer Class Reference

Inheritance diagram for CP_Printer:

CP_NoCopy List of all members.

Public Member Functions

 CP_Printer ()
virtual ~CP_Printer ()
CP_Size GetPrintAreaOffset ()
UInt32 GetNumberCopies ()
UInt32 GetFirstPage ()
UInt32 GetLastPage ()
CP_Printer_PageFormat GetDefaultPrinterPageFormat ()
CP_PrintSignalGetPrintSignal ()
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_PrintSignalfPrintSignal
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_PrinterfCurrentPrinter = NULL

Private Member Functions

OSStatus CreateSheetDoneProcs ()
void SetPrinter (CP_Printer *inPrinter)

Static Private Member Functions

static CP_PrinterGetPrinter ()
static pascal void CP_PageSetupDoneProc (PMPrintSession printSession, WindowRef documentWindow, Boolean accepted)
static pascal void CP_PrintDialogDoneProc (PMPrintSession printSession, WindowRef documentWindow, Boolean accepted)

Constructor & Destructor Documentation

CP_Printer::CP_Printer  ) 
 

Constructor. This will set our data members to default values for printing on an 8.5x11 page with 1/2 inch margins.

CP_Printer::~CP_Printer  )  [virtual]
 

Destructor.


Member Function Documentation

CP_Size CP_Printer::GetPrintAreaOffset  ) 
 

UInt32 CP_Printer::GetNumberCopies  ) 
 

Return the number of copies the user selected to print.

UInt32 CP_Printer::GetFirstPage  ) 
 

Return the first page to print.

UInt32 CP_Printer::GetLastPage  ) 
 

Return the last page to print.

CP_Printer_PageFormat CP_Printer::GetDefaultPrinterPageFormat  ) 
 

CP_PrintSignal* CP_Printer::GetPrintSignal  ) 
 

bool CP_Printer::DoPageSetup CP_Window inParentWindow = NULL  ) 
 

Present the platforms page setup dialog.

bool CP_Printer::DoPrintDialog CP_PrintSignal inPrintSignal,
CP_Window inParentWindow = NULL
 

Present the platforms print dialog.

bool CP_Printer::HasPrintRecord  ) 
 

Return true if we have a valid print record.

bool CP_Printer::OpenDocument  ) 
 

Open a document for printing. There should be matching calls to OpenDocument / CloseDocument.

void CP_Printer::CloseDocument  ) 
 

Close a previously opened document for printing. There should be matching calls to OpenDocument / CloseDocument.

bool CP_Printer::OpenPage CP_Printer_PageFormat inOutPageFormat  ) 
 

Open a page for printing. There should be matching calls to OpenPage / ClosePage.

bool CP_Printer::ClosePage  ) 
 

Close a previously opened page for printing. There should be matching calls to OpenPage / ClosePage.

void CP_Printer::EndPrinting  ) 
 

End the current printing session.

bool CP_Printer::OpenPrinter  ) 
 

Open the printer.

bool CP_Printer::ClosePrinter  ) 
 

Close the printer.

PMPrintSession CP_Printer::GetPrintSession  ) 
 

PMPageFormat CP_Printer::GetDefaultPageFormat  ) 
 

PMPrintSettings CP_Printer::GetPrinterSettings  ) 
 

CGrafPtr CP_Printer::GetPrinterPort  ) 
 

CGContextRef CP_Printer::GetPrinterContextRef  ) 
 

bool CP_Printer::UseQuartz  ) 
 

void CP_Printer::SetUseQuartz bool  inUseQuartz  ) 
 

OSStatus CP_Printer::CreateSheetDoneProcs  )  [private]
 

void CP_Printer::SetPrinter CP_Printer inPrinter  )  [private]
 

static CP_Printer* CP_Printer::GetPrinter  )  [static, private]
 

pascal void CP_Printer::CP_PageSetupDoneProc PMPrintSession  printSession,
WindowRef  documentWindow,
Boolean  accepted
[static, private]
 

pascal void CP_Printer::CP_PrintDialogDoneProc PMPrintSession  printSession,
WindowRef  documentWindow,
Boolean  accepted
[static, private]
 

HDC CP_Printer::GetPrinterPort  ) 
 

OSGraphicsPort CP_Printer::GetPrinterPort  ) 
 


Member Data Documentation

CP_PrintSignal* CP_Printer::fPrintSignal [protected]
 

PMPrintSession CP_Printer::fPrintSession [protected]
 

PMPageFormat CP_Printer::fDefaultPageFormat [protected]
 

PMPrintSettings CP_Printer::fPrintSettings [protected]
 

CGrafPtr CP_Printer::fPrintingPort [protected]
 

CGContextRef CP_Printer::fPrintingContextRef [protected]
 

bool CP_Printer::fUseQuartz [protected]
 

SInt16 CP_Printer::fPrinterResFile [protected]
 

CP_Printer * CP_Printer::fCurrentPrinter = NULL [static, protected]
 

PAGESETUPDLG CP_Printer::fPrintRecord [protected]
 

PRINTDLG CP_Printer::fPrintPage [protected]
 

HDC CP_Printer::fPrinterPort [protected]
 

RECT CP_Printer::fPageRect [protected]
 

LPDEVMODE CP_Printer::flpDevMode [protected]
 

OSGraphicsPort CP_Printer::fPrinterPort [protected]
 


The documentation for this class was generated from the following files:
Generated on Sat Sep 17 20:02:00 2005 for CPLAT by  doxygen 1.4.0