1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxOS2Printer, wxOS2PrintPreview classes
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/prntbase.h"
17 #if wxUSE_PRINTING_ARCHITECTURE
20 * Represents the printer: manages printing a wxPrintout object
23 class WXDLLEXPORT wxOS2Printer
: public wxPrinterBase
25 DECLARE_DYNAMIC_CLASS(wxOS2Printer
)
28 wxOS2Printer(wxPrintDialogData
*data
= NULL
);
29 virtual ~wxOS2Printer();
31 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= true);
32 virtual wxDC
* PrintDialog(wxWindow
*parent
);
33 virtual bool Setup(wxWindow
*parent
);
39 * Programmer creates an object of this class to preview a wxPrintout.
42 class WXDLLEXPORT wxOS2PrintPreview
: public wxPrintPreviewBase
44 DECLARE_CLASS(wxOS2PrintPreview
)
47 wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintDialogData
*data
= NULL
);
48 wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
, wxPrintData
*data
);
49 virtual ~wxOS2PrintPreview();
51 virtual bool Print(bool interactive
);
52 virtual void DetermineScaling();
55 #endif // wxUSE_PRINTING_ARCHITECTURE