]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/printdlg.h
*** empty log message ***
[wxWidgets.git] / include / wx / mac / carbon / printdlg.h
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 // wxMacPrintNativeData
28 //----------------------------------------------------------------------------
29
30 class WXDLLEXPORT wxMacPrintNativeData: public wxPrintNativeDataBase
31 {
32 public:
33 wxMacPrintNativeData() {};
34 virtual ~wxMacPrintNativeData() {};
35
36 virtual bool TransferTo( wxPrintData &data ) { return true; }
37 virtual bool TransferFrom( const wxPrintData &data ) { return true; }
38
39 virtual bool Ok() const { return true; }
40 };
41
42 /*
43 * wxPrinterDialog
44 * The common dialog for printing.
45 */
46
47 class WXDLLEXPORT wxDC;
48 class WXDLLEXPORT wxMacPrintDialog: public wxPrintDialogBase
49 {
50 public:
51 wxMacPrintDialog();
52 wxMacPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
53 wxMacPrintDialog(wxWindow *parent, wxPrintData* data );
54 ~wxMacPrintDialog();
55
56 bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
57 virtual int ShowModal();
58
59 virtual wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
60 virtual wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
61 virtual wxDC *GetPrintDC();
62
63 private:
64 wxPrintDialogData m_printDialogData;
65 wxDC* m_printerDC;
66 bool m_destroyDC;
67 wxWindow* m_dialogParent;
68
69 private:
70 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
71 };
72
73 class WXDLLEXPORT wxPageSetupDialog: public wxDialog
74 {
75 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
76
77 public:
78 wxPageSetupDialog();
79 wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
80 ~wxPageSetupDialog();
81
82 bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
83 virtual int ShowModal();
84
85 inline wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
86 private:
87 wxPageSetupData m_pageSetupData;
88 wxWindow* m_dialogParent;
89 };
90
91 #endif
92 // _WX_PRINTDLG_H_