]> git.saurik.com Git - wxWidgets.git/blob - src/mac/classic/fontdlg.cpp
ac80e0ed51c4d047d1940cfca953497c73c4224a
[wxWidgets.git] / src / mac / classic / fontdlg.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/mac/classic/fontdlg.cpp
3 // Purpose: wxFontDialog class. NOTE: you can use the generic class
4 // if you wish, instead of implementing this.
5 // Author: Stefan Csomor
6 // Modified by:
7 // Created: 1998-01-01
8 // RCS-ID: $Id$
9 // Copyright: (c) Stefan Csomor
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////////
12
13 #include "wx/wxprec.h"
14
15 #include "wx/mac/fontdlg.h"
16
17 #ifndef WX_PRECOMP
18 #include "wx/cmndata.h"
19 #endif
20
21 IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog)
22
23 /*
24 * wxFontDialog
25 */
26
27 wxFontDialog::wxFontDialog()
28 {
29 m_dialogParent = NULL;
30 }
31
32 wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data)
33 {
34 Create(parent, data);
35 }
36
37 bool wxFontDialog::Create(wxWindow *parent, const wxFontData& data)
38 {
39 m_dialogParent = parent;
40
41 m_fontData = data;
42
43 // TODO: you may need to do dialog creation here, unless it's
44 // done in ShowModal.
45 return true;
46 }
47
48 int wxFontDialog::ShowModal()
49 {
50 // TODO: show (maybe create) the dialog
51 return wxID_CANCEL;
52 }