wxShapeFramework
1.13.0 beta
|
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>
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 | |
wxSFShapeCanvas * | m_pCanvas |
Pointer to parent shape canvas. |
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.
wxSFPrintout::wxSFPrintout | ( | const wxString & | title, |
wxSFShapeCanvas * | canvas | ||
) |
Default constructor.
virtual wxSFPrintout::~wxSFPrintout | ( | ) | [virtual] |
Default destructor.
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.
canvas | Pointer to shape canvas |
wxSFShapeCanvas* wxSFPrintout::m_pCanvas [protected] |
Pointer to parent shape canvas.