]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/printps.h
compilation fix for Borland C++
[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) Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #ifndef __PRINTPSH__
14 #define __PRINTPSH__
15
16 #include "wx/prntbase.h"
17
18 #if wxUSE_PRINTING_ARCHITECTURE && wxUSE_POSTSCRIPT
19
20 // ----------------------------------------------------------------------------
21 // Represents the printer: manages printing a wxPrintout object
22 // ----------------------------------------------------------------------------
23
24 class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase
25 {
26 public:
27 wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL);
28 virtual ~wxPostScriptPrinter();
29
30 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true);
31 virtual wxDC* PrintDialog(wxWindow *parent);
32 virtual bool Setup(wxWindow *parent);
33
34 private:
35 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
36 };
37
38 // ----------------------------------------------------------------------------
39 // wxPrintPreview: programmer creates an object of this class to preview a
40 // wxPrintout.
41 // ----------------------------------------------------------------------------
42
43 class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
44 {
45 public:
46 wxPostScriptPrintPreview(wxPrintout *printout,
47 wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
48 wxPrintDialogData *data = (wxPrintDialogData *) NULL);
49 wxPostScriptPrintPreview(wxPrintout *printout,
50 wxPrintout *printoutForPrinting,
51 wxPrintData *data);
52
53 virtual ~wxPostScriptPrintPreview();
54
55 virtual bool Print(bool interactive);
56 virtual void DetermineScaling();
57
58 private:
59 void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
60
61 private:
62 DECLARE_CLASS(wxPostScriptPrintPreview)
63 };
64
65 #endif
66
67 #endif
68 // __PRINTPSH__