Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Printing_Application Class Reference

Application class for the printing demo.

List of all members.

Public Member Functions

Constructor / Destructor
 Printing_Application ()
 Constructor.
virtual ~Printing_Application () throw ()
 Destructor.

Protected Member Functions

AboutBox
virtual CPLAT::CP_String GetAboutBoxDescription () const
Commands
virtual void HandleOpenApplication ()
Printing
virtual void HandlePrinting (CPLAT::CP_Printer *inPrinter)

Protected Attributes

CPLAT::CP_Window * fPrintingWindow
Printing_ViewfPrintingView1
Printing_ViewfPrintingView2
Printing_ViewfPrintingView3

Private Types

typedef CPLAT::CP_Application<
CPLAT::CP_DocumentPolicy_None,
CPLAT::CP_PrintPolicy_Print,
CPLAT::CP_UndoPolicy_None > 
inherited


Member Typedef Documentation

typedef CPLAT::CP_Application<CPLAT::CP_DocumentPolicy_None, CPLAT::CP_PrintPolicy_Print, CPLAT::CP_UndoPolicy_None> Printing_Application::inherited [private]
 


Constructor & Destructor Documentation

Printing_Application::Printing_Application  ) 
 

Constructor.

Exceptions:
none 

Printing_Application::~Printing_Application  )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

CPLAT::CP_String Printing_Application::GetAboutBoxDescription  )  const [protected, virtual]
 

Return the string that describes the purpose of the application in the AboutBox.

Exceptions:
none 
Returns:
CP_String const The description, displayed in the about box.

void Printing_Application::HandleOpenApplication  )  [protected, virtual]
 

Called when the application is starting up. We take this opportunity to create our initial window and views. In this demo, we create a few views to draw into for printing.

Exceptions:
none 
Returns:
void

void Printing_Application::HandlePrinting CPLAT::CP_Printer *  inPrinter  )  [protected, virtual]
 

Routine called from the printing policy to setup the views to be printed.

Parameters:
inPrinter The object that is controlling the printing, and contains information about the page size, and other printing parameters.
Exceptions:
none 
Returns:
void


Member Data Documentation

CPLAT::CP_Window* Printing_Application::fPrintingWindow [protected]
 

Printing_View* Printing_Application::fPrintingView1 [protected]
 

Printing_View* Printing_Application::fPrintingView2 [protected]
 

Printing_View* Printing_Application::fPrintingView3 [protected]
 


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:27:10 2005 for CPLAT_MacOS by  doxygen 1.4.0