]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: printdlg.h | |
3 | // Purpose: wxPrintDialog, wxPageSetupDialog classes. | |
4 | // Use generic, PostScript version if no | |
5 | // platform-specific implementation. | |
6 | // Author: Stefan Csomor | |
7 | // Modified by: | |
8 | // Created: 1998-01-01 | |
9 | // RCS-ID: $Id$ | |
10 | // Copyright: (c) Stefan Csomor | |
11 | // Licence: wxWindows licence | |
12 | ///////////////////////////////////////////////////////////////////////////// | |
13 | ||
14 | #ifndef _WX_PRINTDLG_H_ | |
15 | #define _WX_PRINTDLG_H_ | |
16 | ||
17 | #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) | |
18 | #pragma interface "printdlg.h" | |
19 | #endif | |
20 | ||
21 | #include "wx/dialog.h" | |
22 | #include "wx/cmndata.h" | |
23 | #include "wx/printdlg.h" | |
24 | #include "wx/prntbase.h" | |
25 | ||
26 | /* | |
27 | * wxMacPrintDialog | |
28 | * The Mac dialog for printing | |
29 | */ | |
30 | ||
31 | class WXDLLEXPORT wxDC; | |
32 | class WXDLLEXPORT wxMacPrintDialog: public wxPrintDialogBase | |
33 | { | |
34 | public: | |
35 | wxMacPrintDialog(); | |
36 | wxMacPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL); | |
37 | wxMacPrintDialog(wxWindow *parent, wxPrintData* data ); | |
38 | ~wxMacPrintDialog(); | |
39 | ||
40 | bool Create(wxWindow *parent, wxPrintDialogData* data = NULL); | |
41 | virtual int ShowModal(); | |
42 | ||
43 | virtual wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; } | |
44 | virtual wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); } | |
45 | virtual wxDC *GetPrintDC(); | |
46 | ||
47 | private: | |
48 | wxPrintDialogData m_printDialogData; | |
49 | wxDC* m_printerDC; | |
50 | bool m_destroyDC; | |
51 | wxWindow* m_dialogParent; | |
52 | ||
53 | private: | |
54 | DECLARE_DYNAMIC_CLASS(wxPrintDialog) | |
55 | }; | |
56 | ||
57 | /* | |
58 | * wxMacPageSetupDialog | |
59 | * The Mac page setup dialog | |
60 | */ | |
61 | ||
62 | class WXDLLEXPORT wxMacPageSetupDialog: public wxPageSetupDialogBase | |
63 | { | |
64 | public: | |
65 | wxMacPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL); | |
66 | ~wxMacPageSetupDialog(); | |
67 | ||
68 | virtual wxPageSetupData& GetPageSetupDialogData(); | |
69 | ||
70 | bool Create(wxWindow *parent, wxPageSetupDialogData *data = NULL); | |
71 | virtual int ShowModal(); | |
72 | ||
73 | private: | |
74 | wxPageSetupDialogData m_pageSetupData; | |
75 | wxWindow* m_dialogParent; | |
76 | ||
77 | private: | |
78 | DECLARE_DYNAMIC_CLASS_NO_COPY(wxMacPageSetupDialog) | |
79 | }; | |
80 | ||
81 | #endif | |
82 | // _WX_PRINTDLG_H_ |