]>
git.saurik.com Git - wxWidgets.git/blob - src/mac/carbon/fontdlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxFontDialog class for carbon 10.2+.
8 // Copyright: (c) Ryan Norton
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // ===========================================================================
14 // ===========================================================================
16 // ---------------------------------------------------------------------------
18 // ---------------------------------------------------------------------------
20 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
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
42 #include "wx/mac/fontdlg.h"
44 #if !USE_SHARED_LIBRARY
45 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog
, wxDialog
)
48 #include "wx/mac/private.h"
50 // ---------------------------------------------------------------------------
51 // wxFontDialog stub for mac OS's without a native font dialog
52 // ---------------------------------------------------------------------------
54 wxFontDialog::wxFontDialog()
56 m_dialogParent
= NULL
;
59 wxFontDialog::wxFontDialog(wxWindow
*parent
, const wxFontData
& data
)
64 wxFontDialog::~wxFontDialog()
69 void wxFontDialog::SetData(wxFontData
& fontdata
)
71 m_fontData
= fontdata
;
74 bool wxFontDialog::Create(wxWindow
*parent
, const wxFontData
& data
)
76 m_dialogParent
= parent
;
80 // TODO: you may need to do dialog creation here, unless it's
85 bool wxFontDialog::IsShown() const
90 int wxFontDialog::ShowModal()
92 // TODO: show (maybe create) the dialog