]>
Commit | Line | Data |
---|---|---|
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 | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef _WX_PRINT_H_ | |
13 | #define _WX_PRINT_H_ | |
14 | ||
15 | #include "wx/prntbase.h" | |
16 | ||
17 | /* | |
18 | * Represents the printer: manages printing a wxPrintout object | |
19 | */ | |
20 | ||
21 | class WXDLLEXPORT wxPrinter: public wxPrinterBase | |
22 | { | |
23 | DECLARE_DYNAMIC_CLASS(wxPrinter) | |
24 | ||
25 | public: | |
26 | wxPrinter(wxPrintData *data = NULL); | |
27 | virtual ~wxPrinter(); | |
28 | ||
29 | virtual bool Print(wxWindow *parent, wxPrintout *printout, bool prompt = TRUE); | |
30 | virtual bool PrintDialog(wxWindow *parent); | |
31 | virtual bool Setup(wxWindow *parent); | |
32 | }; | |
33 | ||
34 | /* | |
35 | * wxPrintPreview | |
36 | * Programmer creates an object of this class to preview a wxPrintout. | |
37 | */ | |
38 | ||
39 | class WXDLLEXPORT wxPrintPreview: public wxPrintPreviewBase | |
40 | { | |
41 | DECLARE_CLASS(wxPrintPreview) | |
42 | ||
43 | public: | |
44 | wxPrintPreview(wxPrintout *printout, wxPrintout *printoutForPrinting = NULL, wxPrintData *data = NULL); | |
45 | virtual ~wxPrintPreview(); | |
46 | ||
47 | virtual bool Print(bool interactive); | |
48 | virtual void DetermineScaling(); | |
49 | }; | |
50 | ||
51 | #endif | |
52 | // _WX_PRINT_H_ |