wxShapeFramework  1.13.0 beta
wxSFPrintout Class Reference

Auxiliary printout class providing all necessary functions needed for canvas printing. This class is used internally by the wxSFShapeCanvas class. It can be also used as a base class for other modified printout classes. More...

#include <Printout.h>

Collaboration diagram for wxSFPrintout:

List of all members.

Public Member Functions

 wxSFPrintout (const wxString &title, wxSFShapeCanvas *canvas)
 Default constructor.
virtual ~wxSFPrintout ()
 Default destructor.
void SetPrintedCanvas (wxSFShapeCanvas *canvas)
 Set shape canvas which content should be printed.
virtual bool HasPage (int page)
 Called by printing framework. Functions TRUE if a page of given index already exists in printed document. This function can be overrided if necessary.
virtual bool OnBeginDocument (int startPage, int endPage)
 Called by printing framework. Initialize print job. This function can be overrided if necessary.
virtual void OnEndDocument ()
 Called by printing framework. Deinitialize the print job. This function can be overrided if necessary.
virtual bool OnPrintPage (int page)
 Called by printing framework. It does the print job. This function can be overrided if necessary.
virtual void GetPageInfo (int *minPage, int *maxPage, int *selPageFrom, int *selPageTo)
 Called by printing framework. Supply information about printed pages. This function can be overrided if necessary.

Protected Attributes

wxSFShapeCanvasm_pCanvas
 Pointer to parent shape canvas.

Detailed Description

Auxiliary printout class providing all necessary functions needed for canvas printing. This class is used internally by the wxSFShapeCanvas class. It can be also used as a base class for other modified printout classes.


Constructor & Destructor Documentation

wxSFPrintout::wxSFPrintout ( const wxString &  title,
wxSFShapeCanvas canvas 
)

Default constructor.

virtual wxSFPrintout::~wxSFPrintout ( ) [virtual]

Default destructor.


Member Function Documentation

virtual void wxSFPrintout::GetPageInfo ( int *  minPage,
int *  maxPage,
int *  selPageFrom,
int *  selPageTo 
) [virtual]

Called by printing framework. Supply information about printed pages. This function can be overrided if necessary.

virtual bool wxSFPrintout::HasPage ( int  page) [virtual]

Called by printing framework. Functions TRUE if a page of given index already exists in printed document. This function can be overrided if necessary.

virtual bool wxSFPrintout::OnBeginDocument ( int  startPage,
int  endPage 
) [virtual]

Called by printing framework. Initialize print job. This function can be overrided if necessary.

virtual void wxSFPrintout::OnEndDocument ( ) [virtual]

Called by printing framework. Deinitialize the print job. This function can be overrided if necessary.

virtual bool wxSFPrintout::OnPrintPage ( int  page) [virtual]

Called by printing framework. It does the print job. This function can be overrided if necessary.

void wxSFPrintout::SetPrintedCanvas ( wxSFShapeCanvas canvas) [inline]

Set shape canvas which content should be printed.

Parameters:
canvasPointer to shape canvas

Member Data Documentation

Pointer to parent shape canvas.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines