]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/osx/printmac.h | |
3 | // Purpose: wxWindowsPrinter, wxWindowsPrintPreview classes | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // Copyright: (c) Julian Smart | |
8 | // Licence: wxWindows licence | |
9 | ///////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_PRINTWIN_H_ | |
12 | #define _WX_PRINTWIN_H_ | |
13 | ||
14 | #include "wx/prntbase.h" | |
15 | ||
16 | /* | |
17 | * Represents the printer: manages printing a wxPrintout object | |
18 | */ | |
19 | ||
20 | class WXDLLIMPEXP_CORE wxMacPrinter: public wxPrinterBase | |
21 | { | |
22 | DECLARE_DYNAMIC_CLASS(wxMacPrinter) | |
23 | ||
24 | public: | |
25 | wxMacPrinter(wxPrintDialogData *data = NULL); | |
26 | virtual ~wxMacPrinter(); | |
27 | ||
28 | virtual bool Print(wxWindow *parent, | |
29 | wxPrintout *printout, | |
30 | bool prompt = true); | |
31 | virtual wxDC* PrintDialog(wxWindow *parent); | |
32 | virtual bool Setup(wxWindow *parent); | |
33 | ||
34 | }; | |
35 | ||
36 | /* | |
37 | * wxPrintPreview | |
38 | * Programmer creates an object of this class to preview a wxPrintout. | |
39 | */ | |
40 | ||
41 | class WXDLLIMPEXP_CORE wxMacPrintPreview: public wxPrintPreviewBase | |
42 | { | |
43 | DECLARE_CLASS(wxMacPrintPreview) | |
44 | ||
45 | public: | |
46 | wxMacPrintPreview(wxPrintout *printout, | |
47 | wxPrintout *printoutForPrinting = NULL, | |
48 | wxPrintDialogData *data = NULL); | |
49 | wxMacPrintPreview(wxPrintout *printout, | |
50 | wxPrintout *printoutForPrinting, | |
51 | wxPrintData *data); | |
52 | virtual ~wxMacPrintPreview(); | |
53 | ||
54 | virtual bool Print(bool interactive); | |
55 | virtual void DetermineScaling(); | |
56 | }; | |
57 | ||
58 | #endif | |
59 | // _WX_PRINTWIN_H_ |