]>
Commit | Line | Data |
---|---|---|
9b6dbb09 JS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: print.h | |
3 | // Purpose: wxPrinter, wxPrintPreview classes | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart | |
65571936 | 9 | // Licence: wxWindows licence |
9b6dbb09 JS |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef _WX_PRINT_H_ | |
13 | #define _WX_PRINT_H_ | |
14 | ||
9b6dbb09 JS |
15 | #include "wx/prntbase.h" |
16 | ||
17 | /* | |
83df96d6 JS |
18 | * Represents the printer: manages printing a wxPrintout object |
19 | */ | |
20 | ||
9b6dbb09 JS |
21 | class WXDLLEXPORT wxPrinter: public wxPrinterBase |
22 | { | |
83df96d6 JS |
23 | DECLARE_DYNAMIC_CLASS(wxPrinter) |
24 | ||
25 | public: | |
26 | wxPrinter(wxPrintData *data = NULL); | |
27 | ~wxPrinter(); | |
28 | ||
96be256b | 29 | virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = true); |
83df96d6 JS |
30 | virtual bool PrintDialog(wxWindow *parent); |
31 | virtual bool Setup(wxWindow *parent); | |
9b6dbb09 JS |
32 | }; |
33 | ||
34 | /* | |
83df96d6 JS |
35 | * wxPrintPreview |
36 | * Programmer creates an object of this class to preview a wxPrintout. | |
37 | */ | |
38 | ||
9b6dbb09 JS |
39 | class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase |
40 | { | |
83df96d6 JS |
41 | DECLARE_CLASS(wxPrintPreview) |
42 | ||
43 | public: | |
44 | wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL); | |
45 | ~wxPrintPreview(); | |
46 | ||
47 | virtual bool Print(bool interactive); | |
48 | virtual void DetermineScaling(); | |
9b6dbb09 JS |
49 | }; |
50 | ||
51 | #endif | |
83df96d6 | 52 | // _WX_PRINT_H_ |