1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxPrintDialog, wxPageSetupDialog classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRINTDLG_H_
13 #define _WX_PRINTDLG_H_
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "printdlg.h"
19 #if wxUSE_PRINTING_ARCHITECTURE
21 #include "wx/dialog.h"
22 #include "wx/cmndata.h"
23 #include "wx/prntbase.h"
24 #include "wx/printdlg.h"
26 class WXDLLEXPORT wxDC
;
28 //----------------------------------------------------------------------------
29 // wxWindowsPrintNativeData
30 //----------------------------------------------------------------------------
32 class WXDLLEXPORT wxWindowsPrintNativeData
: public wxPrintNativeDataBase
35 wxWindowsPrintNativeData();
36 virtual ~wxWindowsPrintNativeData();
38 virtual bool TransferTo( wxPrintData
&data
);
39 virtual bool TransferFrom( const wxPrintData
&data
);
41 virtual bool Ok() const;
43 void* GetDevMode() const { return m_devMode
; }
44 void SetDevMode(void* data
) { m_devMode
= data
; }
45 void* GetDevNames() const { return m_devNames
; }
46 void SetDevNames(void* data
) { m_devNames
= data
; }
53 DECLARE_DYNAMIC_CLASS(wxWindowsPrintNativeData
)
56 // ---------------------------------------------------------------------------
57 // wxPrinterDialog: the common dialog for printing.
58 // ---------------------------------------------------------------------------
60 class WXDLLEXPORT wxWindowsPrintDialog
: public wxPrintDialogBase
63 wxWindowsPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
64 wxWindowsPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
65 virtual ~wxWindowsPrintDialog();
67 bool Create(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
68 virtual int ShowModal();
70 wxPrintDialogData
& GetPrintDialogData() { return m_printDialogData
; }
71 wxPrintData
& GetPrintData() { return m_printDialogData
.GetPrintData(); }
72 virtual wxDC
*GetPrintDC();
75 wxPrintDialogData m_printDialogData
;
78 wxWindow
* m_dialogParent
;
81 bool ConvertToNative( wxPrintDialogData
&data
);
82 bool ConvertFromNative( wxPrintDialogData
&data
);
88 DECLARE_NO_COPY_CLASS(wxWindowsPrintDialog
)
89 DECLARE_CLASS(wxWindowsPrintDialog
)
92 class WXDLLEXPORT wxPageSetupDialog
: public wxDialog
94 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
98 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
99 virtual ~wxPageSetupDialog();
101 bool Create(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
102 virtual int ShowModal();
103 bool ConvertToNative( wxPageSetupDialogData
&data
);
104 bool ConvertFromNative( wxPageSetupDialogData
&data
);
106 wxPageSetupData
& GetPageSetupData() { return m_pageSetupData
; }
109 wxPageSetupData m_pageSetupData
;
110 wxWindow
* m_dialogParent
;
113 DECLARE_NO_COPY_CLASS(wxPageSetupDialog
)
116 #endif // wxUSE_PRINTING_ARCHITECTURE