1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/printpalm.h
3 // Purpose: wxPalmPrinter, wxPalmPrintPreview classes
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRINTPALM_H_
13 #define _WX_PRINTPALM_H_
15 #include "wx/prntbase.h"
17 // ---------------------------------------------------------------------------
18 // Represents the printer: manages printing a wxPrintout object
19 // ---------------------------------------------------------------------------
21 class WXDLLIMPEXP_CORE wxPalmPrinter
: public wxPrinterBase
23 DECLARE_DYNAMIC_CLASS(wxPalmPrinter
)
26 wxPalmPrinter(wxPrintDialogData
*data
= NULL
);
27 virtual ~wxPalmPrinter();
29 virtual bool Print(wxWindow
*parent
,
32 virtual wxDC
* PrintDialog(wxWindow
*parent
);
33 virtual bool Setup(wxWindow
*parent
);
36 WXFARPROC m_lpAbortProc
;
38 wxDECLARE_NO_COPY_CLASS(wxPalmPrinter
);
41 // ---------------------------------------------------------------------------
42 // wxPrintPreview: programmer creates an object of this class to preview a
44 // ---------------------------------------------------------------------------
46 class WXDLLIMPEXP_CORE wxPalmPrintPreview
: public wxPrintPreviewBase
49 wxPalmPrintPreview(wxPrintout
*printout
,
50 wxPrintout
*printoutForPrinting
= NULL
,
51 wxPrintDialogData
*data
= NULL
);
52 wxPalmPrintPreview(wxPrintout
*printout
,
53 wxPrintout
*printoutForPrinting
,
55 virtual ~wxPalmPrintPreview();
57 virtual bool Print(bool interactive
);
58 virtual void DetermineScaling();
61 DECLARE_DYNAMIC_CLASS_NO_COPY(wxPalmPrintPreview
)