X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/623633eea9e42ac539aa68af2b20785dbdd16db2..ca77701441e39245dcbfce903049e76f166979e5:/include/wx/fontdlg.h?ds=sidebyside diff --git a/include/wx/fontdlg.h b/include/wx/fontdlg.h index 00f2d19f01..c963c73364 100644 --- a/include/wx/fontdlg.h +++ b/include/wx/fontdlg.h @@ -17,13 +17,13 @@ #if wxUSE_FONTDLG #include "wx/dialog.h" // the base class -#include "wx/cmndata.h" // wxFontData +#include "wx/fontdata.h" // ---------------------------------------------------------------------------- // wxFontDialog interface // ---------------------------------------------------------------------------- -class WXDLLEXPORT wxFontDialogBase : public wxDialog +class WXDLLIMPEXP_CORE wxFontDialogBase : public wxDialog { public: // create the font dialog @@ -37,8 +37,6 @@ public: bool Create(wxWindow *parent, const wxFontData& data) { InitFontData(&data); return Create(parent); } - virtual ~wxFontDialogBase(); - // retrieve the font data const wxFontData& GetFontData() const { return m_fontData; } wxFontData& GetFontData() { return m_fontData; } @@ -58,7 +56,7 @@ protected: wxFontData m_fontData; - DECLARE_NO_COPY_CLASS(wxFontDialogBase) + wxDECLARE_NO_COPY_CLASS(wxFontDialogBase); }; #if WXWIN_COMPATIBILITY_2_6 @@ -74,7 +72,7 @@ inline bool wxFontDialogBase::Create(wxWindow *parent, const wxFontData *data) // platform-specific wxFontDialog implementation // ---------------------------------------------------------------------------- -#if defined( __WXMAC_OSX__ ) +#if defined( __WXOSX_MAC__ ) //set to 1 to use native mac font and color dialogs #define USE_NATIVE_FONT_DIALOG_FOR_MACOSX 1 #else @@ -99,7 +97,7 @@ inline bool wxFontDialogBase::Create(wxWindow *parent, const wxFontData *data) #elif defined(__WXPM__) #include "wx/os2/fontdlg.h" #elif defined(__WXMAC__) - #include "wx/mac/fontdlg.h" + #include "wx/osx/fontdlg.h" #endif // ---------------------------------------------------------------------------- @@ -108,9 +106,9 @@ inline bool wxFontDialogBase::Create(wxWindow *parent, const wxFontData *data) // get the font from user and return it, returns wxNullFont if the dialog was // cancelled -wxFont WXDLLEXPORT -wxGetFontFromUser(wxWindow *parent = (wxWindow *)NULL, - const wxFont& fontInit = wxNullFont, const wxString& caption = wxEmptyString); +WXDLLIMPEXP_CORE wxFont wxGetFontFromUser(wxWindow *parent = NULL, + const wxFont& fontInit = wxNullFont, + const wxString& caption = wxEmptyString); #endif // wxUSE_FONTDLG