1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/print.h
3 // Purpose: wxPrinter, wxPrintPreview classes
4 // Author: David Webster
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/prntbase.h"
17 * Represents the printer: manages printing a wxPrintout object
20 class WXDLLIMPEXP_CORE wxOS2Printer
: public wxPrinterBase
22 DECLARE_DYNAMIC_CLASS(wxPrinter
)
25 wxOS2Printer(wxPrintData
*data
= NULL
);
26 virtual ~wxOS2Printer();
28 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
29 virtual wxDC
* PrintDialog(wxWindow
*parent
);
30 virtual bool Setup(wxWindow
*parent
);
36 * Programmer creates an object of this class to preview a wxPrintout.
39 class WXDLLIMPEXP_CORE wxOS2PrintPreview
: public wxPrintPreviewBase
41 DECLARE_CLASS(wxPrintPreview
)
44 wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintData
*data
= NULL
);
45 virtual ~wxOS2PrintPreview();
47 virtual bool Print(bool interactive
);
48 virtual void DetermineScaling();