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