wxIScan
wxIViewPaintBase Class Reference

Basic printing and print previewing handling. More...

#include <wxiviewpaint.h>

Inheritance diagram for wxIViewPaintBase:
wxIScanFrame

List of all members.

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.

Detailed Description

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.


Constructor & Destructor Documentation

virtual wxIViewPaintBase::~wxIViewPaintBase ( ) [inline, protected, virtual]

Virtual destructor.

Definition at line 53 of file wxiviewpaint.h.

{}

Member Function Documentation

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.

Parameters:
pnWidtha pointer to an integer for returning the page width in mm
pnHeighta 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.

Parameters:
nPagethe page number

Implemented in wxIScanFrame.

Referenced by wxIViewPrintout::OnPrintPage().

virtual bool wxIViewPaintBase::Paint ( wxDC &  oDc) [pure virtual]

Show (print)...

Parameters:
oDcthe device context to print on.

Implemented in wxIScanFrame.

Referenced by wxIViewPrintout::OnPrintPage().


The documentation for this class was generated from the following file: