1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
4 // wxGenericPageSetupDialog
5 // Author: Julian Smart
9 // Copyright: (c) Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/prntbase.h"
18 #if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
20 // ----------------------------------------------------------------------------
21 // Represents the printer: manages printing a wxPrintout object
22 // ----------------------------------------------------------------------------
24 class WXDLLIMPEXP_CORE wxPostScriptPrinter
: public wxPrinterBase
27 wxPostScriptPrinter(wxPrintDialogData
*data
= NULL
);
28 virtual ~wxPostScriptPrinter();
30 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= true);
31 virtual wxDC
* PrintDialog(wxWindow
*parent
);
32 virtual bool Setup(wxWindow
*parent
);
35 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter
)
38 // ----------------------------------------------------------------------------
39 // wxPrintPreview: programmer creates an object of this class to preview a
41 // ----------------------------------------------------------------------------
43 class WXDLLIMPEXP_CORE wxPostScriptPrintPreview
: public wxPrintPreviewBase
46 wxPostScriptPrintPreview(wxPrintout
*printout
,
47 wxPrintout
*printoutForPrinting
= NULL
,
48 wxPrintDialogData
*data
= NULL
);
49 wxPostScriptPrintPreview(wxPrintout
*printout
,
50 wxPrintout
*printoutForPrinting
,
53 virtual ~wxPostScriptPrintPreview();
55 virtual bool Print(bool interactive
);
56 virtual void DetermineScaling();
59 void Init(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
);
62 DECLARE_CLASS(wxPostScriptPrintPreview
)