]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/printps.h
Fixed to work with the new wxMacControl system.
[wxWidgets.git] / include / wx / generic / printps.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: printps.h
3 // Purpose: wxPostScriptPrinter, wxPostScriptPrintPreview
4 // wxGenericPageSetupDialog
5 // Author: Julian Smart
6 // Modified by:
7 // Created: 01/02/97
8 // RCS-ID: $Id$
9 // Copyright: (c)
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef __PRINTPSH__
14 #define __PRINTPSH__
15
16 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
17 #pragma interface "printps.h"
18 #endif
19
20 #include "wx/prntbase.h"
21
22 #if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
23
24 // ----------------------------------------------------------------------------
25 // Represents the printer: manages printing a wxPrintout object
26 // ----------------------------------------------------------------------------
27
28 class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase
29 {
30 public:
31 wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL);
32 virtual ~wxPostScriptPrinter();
33
34 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
35 virtual wxDC* PrintDialog(wxWindow *parent);
36 virtual bool Setup(wxWindow *parent);
37
38 private:
39 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
40 };
41
42 // ----------------------------------------------------------------------------
43 // wxPrintPreview: programmer creates an object of this class to preview a
44 // wxPrintout.
45 // ----------------------------------------------------------------------------
46
47 class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
48 {
49 public:
50 wxPostScriptPrintPreview(wxPrintout *printout,
51 wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
52 wxPrintDialogData *data = (wxPrintDialogData *) NULL);
53 wxPostScriptPrintPreview(wxPrintout *printout,
54 wxPrintout *printoutForPrinting,
55 wxPrintData *data);
56
57 virtual ~wxPostScriptPrintPreview();
58
59 virtual bool Print(bool interactive);
60 virtual void DetermineScaling();
61
62 private:
63 void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
64
65 private:
66 DECLARE_CLASS(wxPostScriptPrintPreview)
67 };
68
69 #endif
70
71 #endif
72 // __PRINTPSH__