![]() |
wxIScan
|
Basic printing and print previewing handling. More...
#include <wxiviewpaint.h>
Public Member Functions | |
virtual bool | GetPageSizeMM (int *pnWidth, int *pnHeight)=0 |
Calculates the page extents in mm while printing or print previewing. | |
virtual int | GetMaxPage ()=0 |
Get the highest page number of the document to print. | |
virtual bool | GotoPage (int nPage)=0 |
Switch to the given page number to print. | |
virtual bool | Paint (wxDC &oDc)=0 |
Show (print)... | |
Protected Member Functions | |
virtual | ~wxIViewPaintBase () |
Virtual destructor. |
Basic printing and print previewing handling.
This is a helper class for the wxPrintOut implementation done in wxIViewPrintout class.
Note: This is an abstract class ("pure virtual") and works as an interface description. Its member functions must be implemented in its sub classes.
Definition at line 26 of file wxiviewpaint.h.
virtual wxIViewPaintBase::~wxIViewPaintBase | ( | ) | [inline, protected, virtual] |
virtual int wxIViewPaintBase::GetMaxPage | ( | ) | [pure virtual] |
Get the highest page number of the document to print.
Implemented in wxIScanFrame.
Referenced by wxIViewPrintout::GetPageInfo().
virtual bool wxIViewPaintBase::GetPageSizeMM | ( | int * | pnWidth, |
int * | pnHeight | ||
) | [pure virtual] |
Calculates the page extents in mm while printing or print previewing.
pnWidth | a pointer to an integer for returning the page width in mm |
pnHeight | a pointer to an integer for returning the page height in mm |
Implemented in wxIScanFrame.
Referenced by wxIViewPrintout::OnPrintPage().
virtual bool wxIViewPaintBase::GotoPage | ( | int | nPage | ) | [pure virtual] |
Switch to the given page number to print.
nPage | the page number |
Implemented in wxIScanFrame.
Referenced by wxIViewPrintout::OnPrintPage().
virtual bool wxIViewPaintBase::Paint | ( | wxDC & | oDc | ) | [pure virtual] |
Show (print)...
oDc | the device context to print on. |
Implemented in wxIScanFrame.
Referenced by wxIViewPrintout::OnPrintPage().