diff --git a/contrib/include/wx/xml/xh_sizer.h b/contrib/include/wx/xml/xh_sizer.h
index 818946e76e..2c3d1e960c 100644
--- a/contrib/include/wx/xml/xh_sizer.h
+++ b/contrib/include/wx/xml/xh_sizer.h
@@ -30,6 +30,8 @@ class WXDLLEXPORT wxSizerXmlHandler : public wxXmlResourceHandler
private:
bool m_IsInside;
wxSizer *m_ParentSizer;
+
+ bool IsSizerNode(wxXmlNode *node);
};
diff --git a/contrib/include/wx/xml/xmlres.h b/contrib/include/wx/xml/xmlres.h
index fd012efd0e..52c7f2a9ab 100644
--- a/contrib/include/wx/xml/xmlres.h
+++ b/contrib/include/wx/xml/xmlres.h
@@ -124,7 +124,7 @@ class WXDLLEXPORT wxXmlResource : public wxObject
void UpdateResources();
// Finds resource (calls UpdateResources) and returns node containing it
- wxXmlNode *FindResource(const wxString& name, const wxString& type);
+ wxXmlNode *FindResource(const wxString& name, const wxString& classname);
// Creates resource from info in given node:
wxObject *CreateResFromNode(wxXmlNode *node, wxObject *parent, wxObject *instance = NULL);
@@ -212,11 +212,17 @@ class WXDLLEXPORT wxXmlResourceHandler : public wxObject
// Variables (filled by CreateResource)
wxXmlNode *m_Node;
+ wxString m_Class;
wxObject *m_Parent, *m_Instance;
wxWindow *m_ParentAsWindow, *m_InstanceAsWindow;
// --- Handy methods:
+ // Returns true if the node has property class equal to classname,
+ // e.g. \n");
}
//EDITTEXT IDC_RADIUS,36,65,40,14,ES_AUTOHSCROLL
@@ -222,9 +220,9 @@ void rc2xml::ParseTextCtrl()
ReadRect(x,y,width,height);
//TODO
//style=GetToken();
- m_xmlfile.Write("\t\t\n");
+ m_xmlfile.Write("\t\t\n");
}
//PUSHBUTTON "Create/Update",IDC_CREATE,15,25,53,13,NOT WS_TABSTOP
@@ -238,10 +236,10 @@ void rc2xml::ParsePushButton()
int x,y,width,height;
ReadRect(x,y,width,height);
- m_xmlfile.Write("\t\t