]> git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/fontdlg.cpp
Set HTML data even in Unicode mode
[wxWidgets.git] / src / mac / carbon / fontdlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: fontdlg.cpp
3 // Purpose: wxFontDialog class for carbon 10.2+.
4 // Author: Ryan Norton
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 // ===========================================================================
13 // declarations
14 // ===========================================================================
15
16 // ---------------------------------------------------------------------------
17 // headers
18 // ---------------------------------------------------------------------------
19
20 // For compilers that support precompilation, includes "wx.h".
21 #include "wx/wxprec.h"
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #ifndef WX_PRECOMP
28 #include "wx/cmndata.h"
29 #endif
30
31 #include "wx/fontdlg.h"
32
33
34 #if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
35
36 #undef wxFontDialog
37
38 #include "wx/mac/fontdlg.h"
39
40 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
41
42 #include "wx/mac/private.h"
43
44 // ---------------------------------------------------------------------------
45 // wxFontDialog stub for mac OS's without a native font dialog
46 // ---------------------------------------------------------------------------
47
48 wxFontDialog::wxFontDialog()
49 {
50 m_dialogParent = NULL;
51 }
52
53 wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data)
54 {
55 Create(parent, data);
56 }
57
58 wxFontDialog::~wxFontDialog()
59 {
60 // empty
61 }
62
63 void wxFontDialog::SetData(const wxFontData& fontdata)
64 {
65 m_fontData = fontdata;
66 }
67
68 bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
69 {
70 m_dialogParent = parent;
71
72 m_fontData = data;
73
74 // TODO: you may need to do dialog creation here, unless it's
75 // done in ShowModal.
76 return TRUE;
77 }
78
79 bool wxFontDialog::IsShown() const
80 {
81 return false;
82 }
83
84 int wxFontDialog::ShowModal()
85 {
86 // TODO: show (maybe create) the dialog
87 return wxID_CANCEL;
88 }
89
90 #endif // 10.2+