1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPrinter, wxPrintPreview classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/prntbase.h"
18 * Represents the printer: manages printing a wxPrintout object
21 class WXDLLEXPORT wxPrinter
: public wxPrinterBase
23 DECLARE_DYNAMIC_CLASS(wxPrinter
)
26 wxPrinter(wxPrintData
*data
= NULL
);
29 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
30 virtual bool PrintDialog(wxWindow
*parent
);
31 virtual bool Setup(wxWindow
*parent
);
36 * Programmer creates an object of this class to preview a wxPrintout.
39 class WXDLLEXPORT wxPrintPreview
: public wxPrintPreviewBase
41 DECLARE_CLASS(wxPrintPreview
)
44 wxPrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintData
*data
= NULL
);
47 virtual bool Print(bool interactive
);
48 virtual void DetermineScaling();