1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPrintDialog, wxPageSetupDialog classes.
4 // Use generic, PostScript version if no
5 // platform-specific implementation.
6 // Author: Stefan Csomor
10 // Copyright: (c) Stefan Csomor
11 // Licence: wxWindows licence
12 /////////////////////////////////////////////////////////////////////////////
14 #ifndef _WX_PRINTDLG_H_
15 #define _WX_PRINTDLG_H_
17 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18 #pragma interface "printdlg.h"
21 #include "wx/dialog.h"
22 #include "wx/cmndata.h"
23 #include "wx/printdlg.h"
24 #include "wx/prntbase.h"
26 //----------------------------------------------------------------------------
27 // wxMacPrintNativeData
28 //----------------------------------------------------------------------------
30 class WXDLLEXPORT wxMacPrintNativeData
: public wxPrintNativeDataBase
33 wxMacPrintNativeData() {};
34 virtual ~wxMacPrintNativeData() {};
36 virtual bool TransferTo( wxPrintData
&data
) { return true; }
37 virtual bool TransferFrom( const wxPrintData
&data
) { return true; }
39 virtual bool Ok() const { return true; }
44 * The Mac dialog for printing
47 class WXDLLEXPORT wxDC
;
48 class WXDLLEXPORT wxMacPrintDialog
: public wxPrintDialogBase
52 wxMacPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
53 wxMacPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
56 bool Create(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
57 virtual int ShowModal();
59 virtual wxPrintDialogData
& GetPrintDialogData() { return m_printDialogData
; }
60 virtual wxPrintData
& GetPrintData() { return m_printDialogData
.GetPrintData(); }
61 virtual wxDC
*GetPrintDC();
64 wxPrintDialogData m_printDialogData
;
67 wxWindow
* m_dialogParent
;
70 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
74 * wxMacPageSetupDialog
75 * The Mac page setup dialog
78 class WXDLLEXPORT wxMacPageSetupDialog
: public wxPageSetupDialogBase
81 wxMacPageSetupDialog(wxWindow
*parent
, wxPageSetupDialogData
*data
= NULL
);
82 ~wxMacPageSetupDialog();
84 virtual wxPageSetupData
& GetPageSetupDialogData();
86 bool Create(wxWindow
*parent
, wxPageSetupDialogData
*data
= NULL
);
87 virtual int ShowModal();
90 wxPageSetupDialogData m_pageSetupData
;
91 wxWindow
* m_dialogParent
;
94 DECLARE_DYNAMIC_CLASS_NO_COPY(wxMacPageSetupDialog
)