]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/printps.h
Removed unnecessary code from utilsunx.cpp
[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 #ifdef __GNUG__
17 #pragma interface "printps.h"
18 #endif
19
20 #include "wx/prntbase.h"
21
22 #if wxUSE_PRINTING_ARCHITECTURE
23
24 // ----------------------------------------------------------------------------
25 // Represents the printer: manages printing a wxPrintout object
26 // ----------------------------------------------------------------------------
27
28 class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase
29 {
30 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
31
32 public:
33 wxPostScriptPrinter(wxPrintDialogData *data = (wxPrintDialogData *) NULL);
34 virtual ~wxPostScriptPrinter();
35
36 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
37 virtual wxDC* PrintDialog(wxWindow *parent);
38 virtual bool Setup(wxWindow *parent);
39 };
40
41 // ----------------------------------------------------------------------------
42 // wxPrintPreview: programmer creates an object of this class to preview a
43 // wxPrintout.
44 // ----------------------------------------------------------------------------
45
46 class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
47 {
48 DECLARE_CLASS(wxPostScriptPrintPreview)
49
50 public:
51 wxPostScriptPrintPreview(wxPrintout *printout,
52 wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
53 wxPrintDialogData *data = (wxPrintDialogData *) NULL);
54 wxPostScriptPrintPreview(wxPrintout *printout,
55 wxPrintout *printoutForPrinting,
56 wxPrintData *data);
57
58 virtual ~wxPostScriptPrintPreview();
59
60 virtual bool Print(bool interactive);
61 virtual void DetermineScaling();
62
63 private:
64 void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
65 };
66
67 #endif
68
69 #endif
70 // __PRINTPSH__