1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPrinter, wxPrintPreview classes
4 // Author: David Webster
8 // Copyright: (c) David Webster
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/prntbase.h"
18 * Represents the printer: manages printing a wxPrintout object
21 class WXDLLEXPORT wxOS2Printer
: public wxPrinterBase
23 DECLARE_DYNAMIC_CLASS(wxPrinter
)
26 wxOS2Printer(wxPrintData
*data
= NULL
);
27 virtual ~wxOS2Printer();
29 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
30 virtual wxDC
* PrintDialog(wxWindow
*parent
);
31 virtual bool Setup(wxWindow
*parent
);
37 * Programmer creates an object of this class to preview a wxPrintout.
40 class WXDLLEXPORT wxOS2PrintPreview
: public wxPrintPreviewBase
42 DECLARE_CLASS(wxPrintPreview
)
45 wxOS2PrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintData
*data
= NULL
);
46 virtual ~wxOS2PrintPreview();
48 virtual bool Print(bool interactive
);
49 virtual void DetermineScaling();