]> git.saurik.com Git - wxWidgets.git/blame - src/mac/carbon/fontdlg.cpp
wxSYS_COLOUR_WINDOW is better for window backgrounds on PPC/Smartphone
[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
3d1a4878 20#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
e9576ca5
SC
21#pragma implementation "fontdlg.h"
22#endif
23
1553abf4
RN
24// For compilers that support precompilation, includes "wx.h".
25#include "wx/wxprec.h"
26
27#ifdef __BORLANDC__
28 #pragma hdrstop
29#endif
30
31#ifndef WX_PRECOMP
1553abf4
RN
32 #include "wx/cmndata.h"
33#endif
e9576ca5 34
356c775f 35#include "wx/fontdlg.h"
154ad28b 36
356c775f
RN
37
38#if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
39
551caf8b
RN
40#undef wxFontDialog
41
42#include "wx/mac/fontdlg.h"
43
2f1ae414 44#if !USE_SHARED_LIBRARY
e9576ca5 45IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
2f1ae414 46#endif
e9576ca5 47
72fcdc75
RN
48#include "wx/mac/private.h"
49
1553abf4
RN
50// ---------------------------------------------------------------------------
51// wxFontDialog stub for mac OS's without a native font dialog
52// ---------------------------------------------------------------------------
e9576ca5
SC
53
54wxFontDialog::wxFontDialog()
55{
56 m_dialogParent = NULL;
57}
58
baaae89f 59wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data)
e9576ca5
SC
60{
61 Create(parent, data);
62}
63
b9242cc7
DS
64wxFontDialog::~wxFontDialog()
65{
66 // empty
67}
68
72fcdc75
RN
69void wxFontDialog::SetData(wxFontData& fontdata)
70{
71 m_fontData = fontdata;
72}
73
baaae89f 74bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
e9576ca5
SC
75{
76 m_dialogParent = parent;
77
baaae89f 78 m_fontData = data;
e9576ca5
SC
79
80 // TODO: you may need to do dialog creation here, unless it's
81 // done in ShowModal.
82 return TRUE;
83}
84
72fcdc75
RN
85bool wxFontDialog::IsShown() const
86{
87 return false;
88}
89
e9576ca5
SC
90int wxFontDialog::ShowModal()
91{
92 // TODO: show (maybe create) the dialog
93 return wxID_CANCEL;
94}
95
3d1a4878 96#endif // 10.2+