1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/printos2.h
3 // Purpose: wxOS2Printer, wxOS2PrintPreview classes
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/prntbase.h"
16 #if wxUSE_PRINTING_ARCHITECTURE
19 * Represents the printer: manages printing a wxPrintout object
22 class WXDLLIMPEXP_CORE wxOS2Printer
: public wxPrinterBase
24 DECLARE_DYNAMIC_CLASS(wxOS2Printer
)
27 wxOS2Printer(wxPrintDialogData
*data
= NULL
);
28 virtual ~wxOS2Printer();
30 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= true);
31 virtual wxDC
* PrintDialog(wxWindow
*parent
);
32 virtual bool Setup(wxWindow
*parent
);
38 * Programmer creates an object of this class to preview a wxPrintout.
41 class WXDLLIMPEXP_CORE wxOS2PrintPreview
: public wxPrintPreviewBase
43 DECLARE_CLASS(wxOS2PrintPreview
)
46 wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintDialogData
*data
= NULL
);
47 wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
, wxPrintData
*data
);
48 virtual ~wxOS2PrintPreview();
50 virtual bool Print(bool interactive
);
51 virtual void DetermineScaling();
54 #endif // wxUSE_PRINTING_ARCHITECTURE