]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/fontdlg.cpp
Warning fix.
[wxWidgets.git] / src / mac / carbon / fontdlg.cpp
CommitLineData
e9576ca5
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: fontdlg.cpp
72fcdc75
RN
3// Purpose: wxFontDialog class for carbon 10.2+.
4// Author: Ryan Norton
e9576ca5 5// Modified by:
a31a5f85 6// Created: 1998-01-01
e9576ca5 7// RCS-ID: $Id$
72fcdc75
RN
8// Copyright: (c) Ryan Norton
9// Licence: wxWindows licence
e9576ca5
SC
10/////////////////////////////////////////////////////////////////////////////
11
1553abf4
RN
12// ===========================================================================
13// declarations
14// ===========================================================================
15
16// ---------------------------------------------------------------------------
17// headers
18// ---------------------------------------------------------------------------
19
1553abf4
RN
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
1553abf4
RN
28 #include "wx/cmndata.h"
29#endif
e9576ca5 30
356c775f 31#include "wx/fontdlg.h"
154ad28b 32
356c775f
RN
33
34#if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
35
551caf8b
RN
36#undef wxFontDialog
37
38#include "wx/mac/fontdlg.h"
39
e9576ca5 40IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
e9576ca5 41
72fcdc75
RN
42#include "wx/mac/private.h"
43
1553abf4
RN
44// ---------------------------------------------------------------------------
45// wxFontDialog stub for mac OS's without a native font dialog
46// ---------------------------------------------------------------------------
e9576ca5
SC
47
48wxFontDialog::wxFontDialog()
49{
50 m_dialogParent = NULL;
51}
52
baaae89f 53wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data)
e9576ca5
SC
54{
55 Create(parent, data);
56}
57
b9242cc7
DS
58wxFontDialog::~wxFontDialog()
59{
60 // empty
61}
62
fbfb8bcc 63void wxFontDialog::SetData(const wxFontData& fontdata)
72fcdc75
RN
64{
65 m_fontData = fontdata;
66}
67
baaae89f 68bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
e9576ca5
SC
69{
70 m_dialogParent = parent;
71
baaae89f 72 m_fontData = data;
e9576ca5
SC
73
74 // TODO: you may need to do dialog creation here, unless it's
75 // done in ShowModal.
76 return TRUE;
77}
78
72fcdc75
RN
79bool wxFontDialog::IsShown() const
80{
81 return false;
82}
83
e9576ca5
SC
84int wxFontDialog::ShowModal()
85{
86 // TODO: show (maybe create) the dialog
87 return wxID_CANCEL;
88}
89
3d1a4878 90#endif // 10.2+