]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/printdlg.h
add support for wxStrnlen for those platforms where it's available
[wxWidgets.git] / include / wx / palmos / printdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/palmos/printdlg.h
3 // Purpose: wxPrintDialog, wxPageSetupDialog classes
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_PRINTDLG_H_
13 #define _WX_PRINTDLG_H_
14
15 #if wxUSE_PRINTING_ARCHITECTURE
16
17 #include "wx/dialog.h"
18 #include "wx/cmndata.h"
19
20 class WXDLLIMPEXP_FWD_CORE wxDC;
21
22 // ---------------------------------------------------------------------------
23 // wxPrinterDialog: the common dialog for printing.
24 // ---------------------------------------------------------------------------
25
26 class WXDLLIMPEXP_CORE wxPrintDialog : public wxDialog
27 {
28 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
29
30 public:
31 wxPrintDialog();
32 wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
33 wxPrintDialog(wxWindow *parent, wxPrintData* data);
34 virtual ~wxPrintDialog();
35
36 bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
37 virtual int ShowModal();
38
39 wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
40 wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
41 virtual wxDC *GetPrintDC();
42
43 private:
44 wxPrintDialogData m_printDialogData;
45 wxDC* m_printerDC;
46 bool m_destroyDC;
47 wxWindow* m_dialogParent;
48
49 DECLARE_NO_COPY_CLASS(wxPrintDialog)
50 };
51
52 class WXDLLIMPEXP_CORE wxPageSetupDialog: public wxDialog
53 {
54 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
55
56 public:
57 wxPageSetupDialog();
58 wxPageSetupDialog(wxWindow *parent, wxPageSetupData *data = NULL);
59 virtual ~wxPageSetupDialog();
60
61 bool Create(wxWindow *parent, wxPageSetupData *data = NULL);
62 virtual int ShowModal();
63
64 wxPageSetupData& GetPageSetupData() { return m_pageSetupData; }
65
66 private:
67 wxPageSetupData m_pageSetupData;
68 wxWindow* m_dialogParent;
69
70 DECLARE_NO_COPY_CLASS(wxPageSetupDialog)
71 };
72
73 #endif // wxUSE_PRINTING_ARCHITECTURE
74
75 #endif
76 // _WX_PRINTDLG_H_