don't expose M_FONTDATA in public header

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2006-11-20 16:14:01 +00:00
parent 32e4b03c49
commit 873fd4af5f
12 changed files with 23 additions and 11 deletions

View File

@@ -24,7 +24,6 @@
// forward declarations
// ----------------------------------------------------------------------------
class WXDLLEXPORT wxFontData;
class WXDLLEXPORT wxFontBase;
class WXDLLEXPORT wxFont;
class WXDLLEXPORT wxSize;
@@ -212,10 +211,6 @@ public:
static void SetDefaultEncoding(wxFontEncoding encoding);
protected:
// get the internal data
wxFontRefData *GetFontData() const
{ return (wxFontRefData *)m_refData; }
// the function called by both overloads of SetNativeFontInfo()
virtual void DoSetNativeFontInfo(const wxNativeFontInfo& info);
@@ -252,11 +247,5 @@ private:
#include "wx/os2/font.h"
#endif
// ----------------------------------------------------------------------------
// macros
// ----------------------------------------------------------------------------
#define M_FONTDATA GetFontData()
#endif
// _WX_FONT_H_BASE_

View File

@@ -37,6 +37,8 @@ wxFontRefData::~wxFontRefData()
// TODO: delete font data
}
#define M_FONTDATA (wxFontRefData*)m_refData)
bool wxFont::Create(const wxNativeFontInfo&)
{
return false;

View File

@@ -105,6 +105,8 @@ public:
wxIDirectFBFontPtr m_font;
};
#define M_FONTDATA (wxFontRefData*)m_refData)
// ----------------------------------------------------------------------------
// wxFont

View File

@@ -127,6 +127,8 @@ private:
friend class wxFont;
};
#define M_FONTDATA (wxFontRefData*)m_refData)
// ----------------------------------------------------------------------------
// wxFontRefData
// ----------------------------------------------------------------------------

View File

@@ -153,6 +153,8 @@ private:
friend class wxFont;
};
#define M_FONTDATA (wxFontRefData*)m_refData)
// ----------------------------------------------------------------------------
// wxFontRefData
// ----------------------------------------------------------------------------

View File

@@ -154,6 +154,8 @@ public:
wxNativeFontInfo m_info;
};
#define M_FONTDATA (wxFontRefData*)m_refData)
// ============================================================================
// implementation

View File

@@ -132,6 +132,9 @@ public:
public:
void MacFindFont() ;
};
#define M_FONTDATA (wxFontRefData*)m_refData)
// ============================================================================
// implementation
// ============================================================================

View File

@@ -79,6 +79,8 @@ private:
friend class wxFont;
};
#define M_FONTDATA (wxFontRefData*)m_refData)
// ============================================================================
// implementation
// ============================================================================

View File

@@ -211,6 +211,8 @@ wxFontRefData::~wxFontRefData()
m_fonts.Clear();
}
#define M_FONTDATA (wxFontRefData*)m_refData)
// ----------------------------------------------------------------------------
// wxFont
// ----------------------------------------------------------------------------

View File

@@ -321,6 +321,8 @@ protected:
bool m_nativeFontInfoOk;
};
#define M_FONTDATA (wxFontRefData*)m_refData)
// ============================================================================
// implementation
// ============================================================================

View File

@@ -297,6 +297,8 @@ protected:
bool m_bInternalPS; // Internally generated PS?
}; // end of CLASS wxFontRefData
#define M_FONTDATA (wxFontRefData*)m_refData)
// ============================================================================
// implementation
// ============================================================================

View File

@@ -164,6 +164,8 @@ protected:
#endif
};
#define M_FONTDATA (wxFontRefData*)m_refData)
// ----------------------------------------------------------------------------
// wxFontRefData
// ----------------------------------------------------------------------------