1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/motif/print.h
3 // Purpose: wxPrinter, wxPrintPreview classes
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
14 #include "wx/prntbase.h"
17 * Represents the printer: manages printing a wxPrintout object
20 class WXDLLIMPEXP_CORE wxPrinter
: public wxPrinterBase
22 DECLARE_DYNAMIC_CLASS(wxPrinter
)
25 wxPrinter(wxPrintData
*data
= NULL
);
28 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= true);
29 virtual bool PrintDialog(wxWindow
*parent
);
30 virtual bool Setup(wxWindow
*parent
);
35 * Programmer creates an object of this class to preview a wxPrintout.
38 class WXDLLIMPEXP_CORE wxPrintPreview
: public wxPrintPreviewBase
40 DECLARE_CLASS(wxPrintPreview
)
43 wxPrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= NULL
, wxPrintData
*data
= NULL
);
44 virtual ~wxPrintPreview();
46 virtual bool Print(bool interactive
);
47 virtual void DetermineScaling();