]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/msw/printdlg.h
1. libtool 1.2d => 1.3 (should speed up configure checks for it because it
[wxWidgets.git] / include / wx / msw / printdlg.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: printdlg.h
3// Purpose: wxPrintDialog, wxPageSetupDialog classes
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_PRINTDLG_H_
13#define _WX_PRINTDLG_H_
14
15#ifdef __GNUG__
16#pragma interface "printdlg.h"
17#endif
18
19#include "wx/dialog.h"
20#include "wx/cmndata.h"
21
22class WXDLLEXPORT wxDC;
23
24// ---------------------------------------------------------------------------
25// wxPrinterDialog: the common dialog for printing.
26// ---------------------------------------------------------------------------
27
28class WXDLLEXPORT wxPrintDialog : public wxDialog
29{
30 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
31
32public:
33 wxPrintDialog();
34 wxPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
35 wxPrintDialog(wxWindow *parent, wxPrintData* data);
36 virtual ~wxPrintDialog();
37
38 bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
39 virtual int ShowModal();
40
41 wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
42 wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
43 virtual wxDC *GetPrintDC();
44
45private:
46 wxPrintDialogData m_printDialogData;
47 wxDC* m_printerDC;
48 bool m_destroyDC;
49 wxWindow* m_dialogParent;
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
71#endif
72 // _WX_PRINTDLG_H_