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