]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/printdlg.h
wxMSWUniv build fix.
[wxWidgets.git] / include / wx / mac / carbon / printdlg.h
CommitLineData
8cf73271
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: printdlg.h
3// Purpose: wxPrintDialog, wxPageSetupDialog classes.
4// Use generic, PostScript version if no
5// platform-specific implementation.
6// Author: Stefan Csomor
7// Modified by:
8// Created: 1998-01-01
9// RCS-ID: $Id$
10// Copyright: (c) Stefan Csomor
65571936 11// Licence: wxWindows licence
8cf73271
SC
12/////////////////////////////////////////////////////////////////////////////
13
14#ifndef _WX_PRINTDLG_H_
15#define _WX_PRINTDLG_H_
16
17#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18#pragma interface "printdlg.h"
19#endif
20
21#include "wx/dialog.h"
22#include "wx/cmndata.h"
c061373d 23#include "wx/printdlg.h"
8850cbd3 24#include "wx/prntbase.h"
8850cbd3 25
8cf73271 26/*
08680429
RR
27 * wxMacPrintDialog
28 * The Mac dialog for printing
8cf73271
SC
29 */
30
31class WXDLLEXPORT wxDC;
c061373d 32class WXDLLEXPORT wxMacPrintDialog: public wxPrintDialogBase
8cf73271 33{
c061373d
RR
34public:
35 wxMacPrintDialog();
36 wxMacPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
37 wxMacPrintDialog(wxWindow *parent, wxPrintData* data );
38 ~wxMacPrintDialog();
8cf73271
SC
39
40 bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
c061373d 41 virtual int ShowModal();
8cf73271 42
c061373d
RR
43 virtual wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
44 virtual wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
45 virtual wxDC *GetPrintDC();
8cf73271 46
c061373d
RR
47private:
48 wxPrintDialogData m_printDialogData;
49 wxDC* m_printerDC;
50 bool m_destroyDC;
51 wxWindow* m_dialogParent;
52
53private:
54 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
8cf73271
SC
55};
56
08680429
RR
57/*
58 * wxMacPageSetupDialog
59 * The Mac page setup dialog
60 */
8cf73271 61
08680429
RR
62class WXDLLEXPORT wxMacPageSetupDialog: public wxPageSetupDialogBase
63{
64public:
65 wxMacPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL);
66 ~wxMacPageSetupDialog();
8cf73271 67
08680429
RR
68 virtual wxPageSetupData& GetPageSetupDialogData();
69
70 bool Create(wxWindow *parent, wxPageSetupDialogData *data = NULL);
71 virtual int ShowModal();
72
73private:
74 wxPageSetupDialogData m_pageSetupData;
75 wxWindow* m_dialogParent;
76
77private:
78 DECLARE_DYNAMIC_CLASS_NO_COPY(wxMacPageSetupDialog)
8cf73271
SC
79};
80
81#endif
82 // _WX_PRINTDLG_H_