]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/fontdlg.cpp
e2f20113dc796e67b14895db3b9da0a82c642311
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxFontDialog class for carbon 10.2+.
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
21 #pragma implementation "fontdlg.h"
24 // For compilers that support precompilation, includes "wx.h".
25 #include "wx/wxprec.h"
32 #include "wx/cmndata.h"
35 #include "wx/fontdlg.h"
38 #if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
40 #if !USE_SHARED_LIBRARY
41 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog
, wxDialog
)
44 #include "wx/mac/private.h"
46 // ---------------------------------------------------------------------------
47 // wxFontDialog stub for mac OS's without a native font dialog
48 // ---------------------------------------------------------------------------
50 wxFontDialog::wxFontDialog()
52 m_dialogParent
= NULL
;
55 wxFontDialog::wxFontDialog(wxWindow
*parent
, const wxFontData
& data
)
60 wxFontDialog::~wxFontDialog()
65 void wxFontDialog::SetData(wxFontData
& fontdata
)
67 m_fontData
= fontdata
;
70 bool wxFontDialog::Create(wxWindow
*parent
, const wxFontData
& data
)
72 m_dialogParent
= parent
;
76 // TODO: you may need to do dialog creation here, unless it's
81 bool wxFontDialog::IsShown() const
86 int wxFontDialog::ShowModal()
88 // TODO: show (maybe create) the dialog