]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/printdlg.h
Replaced Ok() occurrences with IsOk() throughout trunk.
[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
ffecfa5a
JS
15#if wxUSE_PRINTING_ARCHITECTURE
16
17#include "wx/dialog.h"
18#include "wx/cmndata.h"
19
b5dbe15d 20class WXDLLIMPEXP_FWD_CORE wxDC;
ffecfa5a
JS
21
22// ---------------------------------------------------------------------------
23// wxPrinterDialog: the common dialog for printing.
24// ---------------------------------------------------------------------------
25
53a2db12 26class WXDLLIMPEXP_CORE wxPrintDialog : public wxDialog
ffecfa5a
JS
27{
28 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
29
30public:
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
43private:
44 wxPrintDialogData m_printDialogData;
45 wxDC* m_printerDC;
46 bool m_destroyDC;
47 wxWindow* m_dialogParent;
48
c0c133e1 49 wxDECLARE_NO_COPY_CLASS(wxPrintDialog);
ffecfa5a
JS
50};
51
53a2db12 52class WXDLLIMPEXP_CORE wxPageSetupDialog: public wxDialog
ffecfa5a
JS
53{
54 DECLARE_DYNAMIC_CLASS(wxPageSetupDialog)
55
56public:
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
66private:
67 wxPageSetupData m_pageSetupData;
68 wxWindow* m_dialogParent;
69
c0c133e1 70 wxDECLARE_NO_COPY_CLASS(wxPageSetupDialog);
ffecfa5a
JS
71};
72
73#endif // wxUSE_PRINTING_ARCHITECTURE
74
75#endif
76 // _WX_PRINTDLG_H_