1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/generic/printps.h
3 // Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
4 // wxGenericPageSetupDialog
5 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/prntbase.h"
17 #if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
19 // ----------------------------------------------------------------------------
20 // Represents the printer: manages printing a wxPrintout object
21 // ----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxPostScriptPrinter
: public wxPrinterBase
26 wxPostScriptPrinter(wxPrintDialogData
*data
= NULL
);
27 virtual ~wxPostScriptPrinter();
29 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= true);
30 virtual wxDC
* PrintDialog(wxWindow
*parent
);
31 virtual bool Setup(wxWindow
*parent
);
34 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter
)
37 // ----------------------------------------------------------------------------
38 // wxPrintPreview: programmer creates an object of this class to preview a
40 // ----------------------------------------------------------------------------
42 class WXDLLIMPEXP_CORE wxPostScriptPrintPreview
: public wxPrintPreviewBase
45 wxPostScriptPrintPreview(wxPrintout
*printout
,
46 wxPrintout
*printoutForPrinting
= NULL
,
47 wxPrintDialogData
*data
= NULL
);
48 wxPostScriptPrintPreview(wxPrintout
*printout
,
49 wxPrintout
*printoutForPrinting
,
52 virtual ~wxPostScriptPrintPreview();
54 virtual bool Print(bool interactive
);
55 virtual void DetermineScaling();
58 void Init(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
);
61 DECLARE_CLASS(wxPostScriptPrintPreview
)