Virtualize wxXmlNode methods used by wxAuiToolBarXmlHandler.
This fixes the DLL build of aui library as it can now be linked without leaving any unresolved dependencies to the code in xml library (where wxXmlNode is implemented). Closes #15686. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -481,6 +481,7 @@ public:
|
||||
// e.g. <object class="wxDialog">.
|
||||
bool IsOfClass(wxXmlNode *node, const wxString& classname) const;
|
||||
|
||||
bool IsObjectNode(const wxXmlNode *node) const;
|
||||
// Gets node content from wxXML_ENTITY_NODE
|
||||
// The problem is, <tag>content<tag> is represented as
|
||||
// wxXML_ENTITY_NODE name="tag", content=""
|
||||
@@ -488,6 +489,10 @@ public:
|
||||
// wxXML_CDATA_SECTION_NODE name="" content="content"
|
||||
wxString GetNodeContent(const wxXmlNode *node);
|
||||
|
||||
wxXmlNode *GetNodeParent(const wxXmlNode *node) const;
|
||||
wxXmlNode *GetNodeNext(const wxXmlNode *node) const;
|
||||
wxXmlNode *GetNodeChildren(const wxXmlNode *node) const;
|
||||
|
||||
// Check to see if a parameter exists.
|
||||
bool HasParam(const wxString& param);
|
||||
|
||||
|
@@ -52,7 +52,11 @@ public:
|
||||
virtual wxObject *CreateResource(wxXmlNode *node, wxObject *parent,
|
||||
wxObject *instance) = 0;
|
||||
virtual bool IsOfClass(wxXmlNode *node, const wxString& classname) const = 0;
|
||||
virtual bool IsObjectNode(const wxXmlNode *node) const = 0;
|
||||
virtual wxString GetNodeContent(const wxXmlNode *node) = 0;
|
||||
virtual wxXmlNode *GetNodeParent(const wxXmlNode *node) const = 0;
|
||||
virtual wxXmlNode *GetNodeNext(const wxXmlNode *node) const = 0;
|
||||
virtual wxXmlNode *GetNodeChildren(const wxXmlNode *node) const = 0;
|
||||
virtual bool HasParam(const wxString& param) = 0;
|
||||
virtual wxXmlNode *GetParamNode(const wxString& param) = 0;
|
||||
virtual wxString GetParamValue(const wxString& param) = 0;
|
||||
@@ -206,10 +210,29 @@ protected:
|
||||
{
|
||||
return GetImpl()->IsOfClass(node, classname);
|
||||
}
|
||||
|
||||
bool IsObjectNode(const wxXmlNode *node) const
|
||||
{
|
||||
return GetImpl()->IsObjectNode(node);
|
||||
}
|
||||
wxString GetNodeContent(const wxXmlNode *node)
|
||||
{
|
||||
return GetImpl()->GetNodeContent(node);
|
||||
}
|
||||
|
||||
wxXmlNode *GetNodeParent(const wxXmlNode *node) const
|
||||
{
|
||||
return GetImpl()->GetNodeParent(node);
|
||||
}
|
||||
wxXmlNode *GetNodeNext(const wxXmlNode *node) const
|
||||
{
|
||||
return GetImpl()->GetNodeNext(node);
|
||||
}
|
||||
wxXmlNode *GetNodeChildren(const wxXmlNode *node) const
|
||||
{
|
||||
return GetImpl()->GetNodeChildren(node);
|
||||
}
|
||||
|
||||
bool HasParam(const wxString& param)
|
||||
{
|
||||
return GetImpl()->HasParam(param);
|
||||
|
Reference in New Issue
Block a user