1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
4 // wxGenericPageSetupDialog
5 // Author: Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
16 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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
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 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter
)
42 // ----------------------------------------------------------------------------
43 // wxPrintPreview: programmer creates an object of this class to preview a
45 // ----------------------------------------------------------------------------
47 class WXDLLEXPORT wxPostScriptPrintPreview
: public wxPrintPreviewBase
50 wxPostScriptPrintPreview(wxPrintout
*printout
,
51 wxPrintout
*printoutForPrinting
= (wxPrintout
*) NULL
,
52 wxPrintDialogData
*data
= (wxPrintDialogData
*) NULL
);
53 wxPostScriptPrintPreview(wxPrintout
*printout
,
54 wxPrintout
*printoutForPrinting
,
57 virtual ~wxPostScriptPrintPreview();
59 virtual bool Print(bool interactive
);
60 virtual void DetermineScaling();
63 void Init(wxPrintout
*printout
, wxPrintout
*printoutForPrinting
);
66 DECLARE_CLASS(wxPostScriptPrintPreview
)