1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPalmPrinter, wxPalmPrintPreview classes
4 // Author: William Osborne
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRINTPALM_H_
13 #define _WX_PRINTPALM_H_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "printpalm.h"
19 #include "wx/prntbase.h"
21 // ---------------------------------------------------------------------------
22 // Represents the printer: manages printing a wxPrintout object
23 // ---------------------------------------------------------------------------
25 class WXDLLEXPORT wxPalmPrinter
: public wxPrinterBase
27 DECLARE_DYNAMIC_CLASS(wxPalmPrinter
)
30 wxPalmPrinter(wxPrintDialogData
*data
= NULL
);
31 virtual ~wxPalmPrinter();
33 virtual bool Print(wxWindow
*parent
,
36 virtual wxDC
* PrintDialog(wxWindow
*parent
);
37 virtual bool Setup(wxWindow
*parent
);
40 WXFARPROC m_lpAbortProc
;
42 DECLARE_NO_COPY_CLASS(wxPalmPrinter
)
45 // ---------------------------------------------------------------------------
46 // wxPrintPreview: programmer creates an object of this class to preview a
48 // ---------------------------------------------------------------------------
50 class WXDLLEXPORT wxPalmPrintPreview
: public wxPrintPreviewBase
53 wxPalmPrintPreview(wxPrintout
*printout
,
54 wxPrintout
*printoutForPrinting
= NULL
,
55 wxPrintDialogData
*data
= NULL
);
56 wxPalmPrintPreview(wxPrintout
*printout
,
57 wxPrintout
*printoutForPrinting
,
59 virtual ~wxPalmPrintPreview();
61 virtual bool Print(bool interactive
);
62 virtual void DetermineScaling();
65 DECLARE_DYNAMIC_CLASS_NO_COPY(wxPalmPrintPreview
)