]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/carbon/printdlg.h
SetFocus fixed
[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"
8cf73271 25
8850cbd3
RR
26//----------------------------------------------------------------------------
27// wxMacPrintNativeData
28//----------------------------------------------------------------------------
29
30class WXDLLEXPORT wxMacPrintNativeData: public wxPrintNativeDataBase
31{
32public:
33 wxMacPrintNativeData() {};
34 virtual ~wxMacPrintNativeData() {};
35
fd64de59
RR
36 virtual bool TransferTo( wxPrintData &data ) { return true; }
37 virtual bool TransferFrom( const wxPrintData &data ) { return true; }
8850cbd3
RR
38
39 virtual bool Ok() const { return true; }
40};
41
8cf73271 42/*
08680429
RR
43 * wxMacPrintDialog
44 * The Mac dialog for printing
8cf73271
SC
45 */
46
47class WXDLLEXPORT wxDC;
c061373d 48class WXDLLEXPORT wxMacPrintDialog: public wxPrintDialogBase
8cf73271 49{
c061373d
RR
50public:
51 wxMacPrintDialog();
52 wxMacPrintDialog(wxWindow *parent, wxPrintDialogData* data = NULL);
53 wxMacPrintDialog(wxWindow *parent, wxPrintData* data );
54 ~wxMacPrintDialog();
8cf73271
SC
55
56 bool Create(wxWindow *parent, wxPrintDialogData* data = NULL);
c061373d 57 virtual int ShowModal();
8cf73271 58
c061373d
RR
59 virtual wxPrintDialogData& GetPrintDialogData() { return m_printDialogData; }
60 virtual wxPrintData& GetPrintData() { return m_printDialogData.GetPrintData(); }
61 virtual wxDC *GetPrintDC();
8cf73271 62
c061373d
RR
63private:
64 wxPrintDialogData m_printDialogData;
65 wxDC* m_printerDC;
66 bool m_destroyDC;
67 wxWindow* m_dialogParent;
68
69private:
70 DECLARE_DYNAMIC_CLASS(wxPrintDialog)
8cf73271
SC
71};
72
08680429
RR
73/*
74 * wxMacPageSetupDialog
75 * The Mac page setup dialog
76 */
8cf73271 77
08680429
RR
78class WXDLLEXPORT wxMacPageSetupDialog: public wxPageSetupDialogBase
79{
80public:
81 wxMacPageSetupDialog(wxWindow *parent, wxPageSetupDialogData *data = NULL);
82 ~wxMacPageSetupDialog();
8cf73271 83
08680429
RR
84 virtual wxPageSetupData& GetPageSetupDialogData();
85
86 bool Create(wxWindow *parent, wxPageSetupDialogData *data = NULL);
87 virtual int ShowModal();
88
89private:
90 wxPageSetupDialogData m_pageSetupData;
91 wxWindow* m_dialogParent;
92
93private:
94 DECLARE_DYNAMIC_CLASS_NO_COPY(wxMacPageSetupDialog)
8cf73271
SC
95};
96
97#endif
98 // _WX_PRINTDLG_H_