1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/printdlg.h
3 // Purpose: wxPrintDialog, wxPageSetupDialog classes
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PRINTDLG_H_
13 #define _WX_PRINTDLG_H_
15 #if wxUSE_PRINTING_ARCHITECTURE
17 #include "wx/dialog.h"
18 #include "wx/cmndata.h"
20 class WXDLLIMPEXP_FWD_CORE wxDC
;
22 // ---------------------------------------------------------------------------
23 // wxPrinterDialog: the common dialog for printing.
24 // ---------------------------------------------------------------------------
26 class WXDLLIMPEXP_CORE wxPrintDialog
: public wxDialog
28 DECLARE_DYNAMIC_CLASS(wxPrintDialog
)
32 wxPrintDialog(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
33 wxPrintDialog(wxWindow
*parent
, wxPrintData
* data
);
34 virtual ~wxPrintDialog();
36 bool Create(wxWindow
*parent
, wxPrintDialogData
* data
= NULL
);
37 virtual int ShowModal();
39 wxPrintDialogData
& GetPrintDialogData() { return m_printDialogData
; }
40 wxPrintData
& GetPrintData() { return m_printDialogData
.GetPrintData(); }
41 virtual wxDC
*GetPrintDC();
44 wxPrintDialogData m_printDialogData
;
47 wxWindow
* m_dialogParent
;
49 DECLARE_NO_COPY_CLASS(wxPrintDialog
)
52 class WXDLLIMPEXP_CORE wxPageSetupDialog
: public wxDialog
54 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog
)
58 wxPageSetupDialog(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
59 virtual ~wxPageSetupDialog();
61 bool Create(wxWindow
*parent
, wxPageSetupData
*data
= NULL
);
62 virtual int ShowModal();
64 wxPageSetupData
& GetPageSetupData() { return m_pageSetupData
; }
67 wxPageSetupData m_pageSetupData
;
68 wxWindow
* m_dialogParent
;
70 DECLARE_NO_COPY_CLASS(wxPageSetupDialog
)
73 #endif // wxUSE_PRINTING_ARCHITECTURE