]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/printps.h
Use wxScrollWinEvent instead of wxScrollEvent in
[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 // ----------------------------------------------------------------------------
23 // Represents the printer: manages printing a wxPrintout object
24 // ----------------------------------------------------------------------------
25
26 class WXDLLEXPORT wxPostScriptPrinter : public wxPrinterBase
27 {
28 DECLARE_DYNAMIC_CLASS(wxPostScriptPrinter)
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
39 // ----------------------------------------------------------------------------
40 // wxPrintPreview: programmer creates an object of this class to preview a
41 // wxPrintout.
42 // ----------------------------------------------------------------------------
43
44 class WXDLLEXPORT wxPostScriptPrintPreview : public wxPrintPreviewBase
45 {
46 DECLARE_CLASS(wxPostScriptPrintPreview)
47
48 public:
49 wxPostScriptPrintPreview(wxPrintout *printout,
50 wxPrintout *printoutForPrinting = (wxPrintout *) NULL,
51 wxPrintDialogData *data = (wxPrintDialogData *) NULL);
52 wxPostScriptPrintPreview(wxPrintout *printout,
53 wxPrintout *printoutForPrinting,
54 wxPrintData *data);
55
56 virtual ~wxPostScriptPrintPreview();
57
58 virtual bool Print(bool interactive);
59 virtual void DetermineScaling();
60
61 private:
62 void Init(wxPrintout *printout, wxPrintout *printoutForPrinting);
63 };
64
65 #endif
66 // __PRINTPSH__