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