]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/print.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / os2 / print.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/print.h
3 // Purpose: wxPrinter, wxPrintPreview classes
4 // Author: David Webster
5 // Modified by:
6 // Created: 10/14/99
7 // Copyright: (c) David Webster
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_PRINT_H_
12 #define _WX_PRINT_H_
13
14 #include "wx/prntbase.h"
15
16 /*
17 * Represents the printer: manages printing a wxPrintout object
18 */
19
20 class WXDLLIMPEXP_CORE wxOS2Printer: public wxPrinterBase
21 {
22 DECLARE_DYNAMIC_CLASS(wxPrinter)
23
24 public:
25 wxOS2Printer(wxPrintData *data = NULL);
26 virtual ~wxOS2Printer();
27
28 virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE);
29 virtual wxDC* PrintDialog(wxWindow *parent);
30 virtual bool Setup(wxWindow *parent);
31 private:
32 };
33
34 /*
35 * wxPrintPreview
36 * Programmer creates an object of this class to preview a wxPrintout.
37 */
38
39 class WXDLLIMPEXP_CORE wxOS2PrintPreview: public wxPrintPreviewBase
40 {
41 DECLARE_CLASS(wxPrintPreview)
42
43 public:
44 wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL);
45 virtual ~wxOS2PrintPreview();
46
47 virtual bool Print(bool interactive);
48 virtual void DetermineScaling();
49 };
50
51 #endif
52 // _WX_PRINT_H_