/////////////////////////////////////////////////////////////////////////////
-// Name: fontdlg.h
-// Purpose: wxFontDialog class using fonts window services (10.2+).
+// Name: wx/mac/carbon/fontdlg.h
+// Purpose: wxFontDialog class using fonts window services (10.2+).
// Author: Ryan Norton
// Modified by:
// Created: 2004-09-25
#include "wx/dialog.h"
#include "wx/cmndata.h"
+/*
+ * Font dialog
+ */
+
+#ifndef wxMAC_USE_EXPERIMENTAL_FONTDIALOG
+#define wxMAC_USE_EXPERIMENTAL_FONTDIALOG 1
+#endif
+
+#if wxMAC_USE_EXPERIMENTAL_FONTDIALOG
+
+class WXDLLIMPEXP_CORE wxFontDialog : public wxDialog
+{
+public:
+ wxFontDialog();
+ wxFontDialog(wxWindow *parent, const wxFontData& data);
+ virtual ~wxFontDialog();
+
+ bool Create(wxWindow *parent, const wxFontData& data);
+
+ int ShowModal();
+ wxFontData& GetFontData() { return m_fontData; }
+
+protected:
+ wxFontData m_fontData;
+
+ DECLARE_DYNAMIC_CLASS_NO_COPY(wxFontDialog)
+};
+
+extern "C" int RunMixedFontDialog(wxFontDialog* dialog) ;
+
+#else // wxMAC_USE_EXPERIMENTAL_FONTDIALOG
+
#if !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
/*!
class wxFontColourSwatchCtrl;
class wxFontPreviewCtrl;
-class WXDLLEXPORT wxSpinCtrl;
-class WXDLLEXPORT wxSpinEvent;
-class WXDLLEXPORT wxListBox;
-class WXDLLEXPORT wxChoice;
-class WXDLLEXPORT wxButton;
-class WXDLLEXPORT wxStaticText;
-class WXDLLEXPORT wxCheckBox;
+class WXDLLIMPEXP_FWD_CORE wxSpinCtrl;
+class WXDLLIMPEXP_FWD_CORE wxSpinEvent;
+class WXDLLIMPEXP_FWD_CORE wxListBox;
+class WXDLLIMPEXP_FWD_CORE wxChoice;
+class WXDLLIMPEXP_FWD_CORE wxButton;
+class WXDLLIMPEXP_FWD_CORE wxStaticText;
+class WXDLLIMPEXP_FWD_CORE wxCheckBox;
/*!
* Control identifiers
#endif
// !USE_NATIVE_FONT_DIALOG_FOR_MACOSX
-/*
- * Font dialog
- */
-
-class WXDLLEXPORT wxFontDialog: public wxDialog
+class WXDLLIMPEXP_CORE wxFontDialog: public wxDialog
{
DECLARE_DYNAMIC_CLASS(wxFontDialog)
public:
wxFontDialog();
wxFontDialog(wxWindow *parent, const wxFontData& data);
- ~wxFontDialog();
+ virtual ~wxFontDialog();
bool Create(wxWindow *parent, const wxFontData& data);
protected:
wxWindow* m_dialogParent;
wxFontData m_fontData;
- void* m_pEventHandlerRef;
+ void* m_pEventHandlerRef;
};
#endif
- // _WX_FONTDLG_H_
+#endif
+ // _WX_FONTDLG_H_