while (node)
{
if (node->GetName() == _T("object")
- && node->GetPropVal(_T("class"),&classValue)
- && node->GetPropVal(_T("name"),&nameValue))
+ && node->GetAttribute(_T("class"),&classValue)
+ && node->GetAttribute(_T("name"),&nameValue))
{
m_wdata.Add(XRCWidgetData(nameValue,classValue));
}
wxString classValue,nameValue;
while(node){
if(node->GetName() == _T("object")
- && node->GetPropVal(_T("class"),&classValue)
- && node->GetPropVal(_T("name"),&nameValue)){
+ && node->GetAttribute(_T("class"),&classValue)
+ && node->GetAttribute(_T("name"),&nameValue)){
aXRCWndClassData.Add(
XRCWndClassData(nameValue,classValue,node)
if ( name == _T("icon") )
return true;
- // URLs in wxHtmlWindow:
- if ( name == _T("url") )
- return true;
-
// wxBitmapButton:
wxXmlNode *parent = node->GetParent();
if (parent != NULL &&
- parent->GetPropVal(_T("class"), _T("")) == _T("wxBitmapButton") &&
+ parent->GetAttribute(_T("class"), _T("")) == _T("wxBitmapButton") &&
(name == _T("focus") ||
name == _T("disabled") ||
name == _T("selected")))
// wxBitmap or wxIcon toplevel resources:
if ( name == _T("object") )
{
- wxString klass = node->GetPropVal(_T("class"), wxEmptyString);
+ wxString klass = node->GetAttribute(_T("class"), wxEmptyString);
if (klass == _T("wxBitmap") ||
klass == _T("wxIcon") ||
klass == _T("data") )
return true;
}
+ // URLs in wxHtmlWindow:
+ if ( name == _T("url") &&
+ parent != NULL &&
+ parent->GetAttribute(_T("class"), _T("")) == _T("wxHtmlWindow") )
+ {
+ // FIXME: this is wrong for e.g. http:// URLs
+ return true;
+ }
+
return false;
}
// ...and known to contain translatable string
{
if (!flagGettext ||
- node->GetPropVal(_T("translate"), _T("1")) != _T("0"))
+ node->GetAttribute(_T("translate"), _T("1")) != _T("0"))
{
arr.Add(ConvertText(n->GetContent()));
}