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"
22 // ----------------------------------------------------------------------------
23 // Represents the printer: manages printing a wxPrintout object
24 // ----------------------------------------------------------------------------
26 class WXDLLEXPORT wxPostScriptPrinter
: public wxPrinterBase
28 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter
)
31 wxPostScriptPrinter(wxPrintDialogData
*data
= (wxPrintDialogData
*) NULL
);
32 virtual ~wxPostScriptPrinter();
34 virtual bool Print(wxWindow
*parent
, wxPrintout
*printout
, bool prompt
= TRUE
);
35 virtual wxDC
* PrintDialog(wxWindow
*parent
);
36 virtual bool Setup(wxWindow
*parent
);
39 // ----------------------------------------------------------------------------
40 // wxPrintPreview: programmer creates an object of this class to preview a
42 // ----------------------------------------------------------------------------
44 class WXDLLEXPORT wxPostScriptPrintPreview
: public wxPrintPreviewBase
46 DECLARE_CLASS(wxPostScriptPrintPreview
)
49 wxPostScriptPrintPreview(wxPrintout
*printout
,
50 wxPrintout
*printoutForPrinting
= (wxPrintout
*) NULL
,
51 wxPrintDialogData
*data
= (wxPrintDialogData
*) NULL
);
52 wxPostScriptPrintPreview(wxPrintout
*printout
,
53 wxPrintout
*printoutForPrinting
,
56 virtual ~wxPostScriptPrintPreview();
58 virtual bool Print(bool interactive
);
59 virtual void DetermineScaling();
62 void Init(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
);