]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/os2/printos2.h | |
3 | // Purpose: wxOS2Printer, wxOS2PrintPreview 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 | #if wxUSE_PRINTING_ARCHITECTURE | |
17 | ||
18 | /* | |
19 | * Represents the printer: manages printing a wxPrintout object | |
20 | */ | |
21 | ||
22 | class WXDLLIMPEXP_CORE wxOS2Printer: public wxPrinterBase | |
23 | { | |
24 | DECLARE_DYNAMIC_CLASS(wxOS2Printer) | |
25 | ||
26 | public: | |
27 | wxOS2Printer(wxPrintDialogData *data = NULL); | |
28 | virtual ~wxOS2Printer(); | |
29 | ||
30 | virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true); | |
31 | virtual wxDC* PrintDialog(wxWindow *parent); | |
32 | virtual bool Setup(wxWindow *parent); | |
33 | private: | |
34 | }; | |
35 | ||
36 | /* | |
37 | * wxOS2PrintPreview | |
38 | * Programmer creates an object of this class to preview a wxPrintout. | |
39 | */ | |
40 | ||
41 | class WXDLLIMPEXP_CORE wxOS2PrintPreview: public wxPrintPreviewBase | |
42 | { | |
43 | DECLARE_CLASS(wxOS2PrintPreview) | |
44 | ||
45 | public: | |
46 | wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintDialogData *data = NULL); | |
47 | wxOS2PrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting, wxPrintData *data); | |
48 | virtual ~wxOS2PrintPreview(); | |
49 | ||
50 | virtual bool Print(bool interactive); | |
51 | virtual void DetermineScaling(); | |
52 | }; | |
53 | ||
54 | #endif // wxUSE_PRINTING_ARCHITECTURE | |
55 | ||
56 | #endif | |
57 | // _WX_PRINT_H_ |