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: fontdlg.cpp 39337 2006-05-25 21:08:11Z ABX $ 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 21IMPLEMENT_DYNAMIC_CLASS(wxFontDialog, wxDialog) 22 23/* 24 * wxFontDialog 25 */ 26 27wxFontDialog::wxFontDialog() 28{ 29 m_dialogParent = NULL; 30} 31 32wxFontDialog::wxFontDialog(wxWindow *parent, const wxFontData& data) 33{ 34 Create(parent, data); 35} 36 37bool 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 48int wxFontDialog::ShowModal() 49{ 50 // TODO: show (maybe create) the dialog 51 return wxID_CANCEL; 52} 53