]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/printps.h
Corrected wxWindow::GetExtent
[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(wxPrintData *data = (wxPrintData *) NULL);
32 ~wxPostScriptPrinter(void);
33
34 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
35 virtual bool PrintDialog(wxWindow *parent);
36 virtual bool Setup(wxWindow *parent);
37 };
38
39 /*
40 * wxPrintPreview
41 * Programmer creates an object of this class to preview a wxPrintout.
42 */
43
44 class WXDLLEXPORT wxPostScriptPrintPreview: public wxPrintPreviewBase
45 {
46 DECLARE_CLASS(wxPostScriptPrintPreview)
47
48 public:
49 wxPostScriptPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = (wxPrintout *) NULL, wxPrintData *data = (wxPrintData *) NULL);
50 ~wxPostScriptPrintPreview(void);
51
52 virtual bool Print(bool interactive);
53 virtual void DetermineScaling(void);
54 };
55
56 #endif
57 // __PRINTPSH__