1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
4 // wxGenericPageSetupDialog
5 // Author: Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
16 #if defined(__GNUG__) && !defined(__APPLE__)
17 #pragma interface "printps.h"
20 #include "wx/prntbase.h"
22 #if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
24 // ----------------------------------------------------------------------------
25 // Represents the printer: manages printing a wxPrintout object
26 // ----------------------------------------------------------------------------
28 class WXDLLEXPORT wxPostScriptPrinter
: public wxPrinterBase
30 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter
)
33 wxPostScriptPrinter(wxPrintDialogData
*data
= (wxPrintDialogData
*) NULL
);
34 virtual ~wxPostScriptPrinter();
36 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
37 virtual wxDC
* PrintDialog(wxWindow
*parent
);
38 virtual bool Setup(wxWindow
*parent
);
41 // ----------------------------------------------------------------------------
42 // wxPrintPreview: programmer creates an object of this class to preview a
44 // ----------------------------------------------------------------------------
46 class WXDLLEXPORT wxPostScriptPrintPreview
: public wxPrintPreviewBase
48 DECLARE_CLASS(wxPostScriptPrintPreview
)
51 wxPostScriptPrintPreview(wxPrintout
*printout
,
52 wxPrintout
*printoutForPrinting
= (wxPrintout
*) NULL
,
53 wxPrintDialogData
*data
= (wxPrintDialogData
*) NULL
);
54 wxPostScriptPrintPreview(wxPrintout
*printout
,
55 wxPrintout
*printoutForPrinting
,
58 virtual ~wxPostScriptPrintPreview();
60 virtual bool Print(bool interactive
);
61 virtual void DetermineScaling();
64 void Init(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
);