]> git.saurik.com Git - wxWidgets.git/blame - include/wx/palmos/printdlg.h
Added windowing and scrolling logic to generic
[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
20class WXDLLEXPORT wxDC;
21
22// ---------------------------------------------------------------------------
23// wxPrinterDialog: the common dialog for printing.
24// ---------------------------------------------------------------------------
25
26class WXDLLEXPORT wxPrintDialog : public wxDialog
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
49 DECLARE_NO_COPY_CLASS(wxPrintDialog)
50};
51
52class WXDLLEXPORT wxPageSetupDialog: public wxDialog
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
70 DECLARE_NO_COPY_CLASS(wxPageSetupDialog)
71};
72
73#endif // wxUSE_PRINTING_ARCHITECTURE
74
75#endif
76 // _WX_PRINTDLG_H_