add support for a data tag which can be used to embed arbitrary data into the generated code (part of some forgotten patch...)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-04-11 00:19:20 +00:00
parent 1748289348
commit 325cf48f5a

View File

@ -112,6 +112,7 @@ public:
bool CanBeUsedWithXRCCTRL(const wxString& name)
{
if (name == _T("tool") ||
name == _T("data") ||
name == _T("unknown") ||
name == _T("notebookpage") ||
name == _T("separator") ||
@ -455,7 +456,9 @@ static bool NodeContainsFilename(wxXmlNode *node)
if ( name == _T("object") )
{
wxString klass = node->GetPropVal(_T("class"), wxEmptyString);
if (klass == _T("wxBitmap") || klass == _T("wxIcon"))
if (klass == _T("wxBitmap") ||
klass == _T("wxIcon") ||
klass == _T("data") )
return true;
}