1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPrinter, wxPrintPreview classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "print.h"
19 #include "wx/prntbase.h"
22 * Represents the printer: manages printing a wxPrintout object
25 class WXDLLEXPORT wxPrinter
: public wxPrinterBase
27 DECLARE_DYNAMIC_CLASS(wxPrinter
)
30 wxPrinter(wxPrintData
*data
= NULL
);
33 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
34 virtual bool PrintDialog(wxWindow
*parent
);
35 virtual bool Setup(wxWindow
*parent
);
40 * Programmer creates an object of this class to preview a wxPrintout.
43 class WXDLLEXPORT wxPrintPreview
: public wxPrintPreviewBase
45 DECLARE_CLASS(wxPrintPreview
)
48 wxPrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintData
*data
= NULL
);
51 virtual bool Print(bool interactive
);
52 virtual void DetermineScaling();