1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
4 // wxGenericPageSetupDialog
5 // Author: Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
17 #pragma interface "printps.h"
20 #include "wx/prntbase.h"
23 * Represents the printer: manages printing a wxPrintout object
26 class WXDLLEXPORT wxPostScriptPrinter
: public wxPrinterBase
28 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter
)
31 wxPostScriptPrinter(wxPrintData
*data
= (wxPrintData
*) NULL
);
32 ~wxPostScriptPrinter(void);
34 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
35 virtual bool PrintDialog(wxWindow
*parent
);
36 virtual bool Setup(wxWindow
*parent
);
41 * Programmer creates an object of this class to preview a wxPrintout.
44 class WXDLLEXPORT wxPostScriptPrintPreview
: public wxPrintPreviewBase
46 DECLARE_CLASS(wxPostScriptPrintPreview
)
49 wxPostScriptPrintPreview(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
= (wxPrintout
*) NULL
, wxPrintData
*data
= (wxPrintData
*) NULL
);
50 ~wxPostScriptPrintPreview(void);
52 virtual bool Print(bool interactive
);
53 virtual void DetermineScaling(void);