X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a3b9c43bbc6bf71b6b618d4e2a71231e9cd431dc..66c2bf7b1d9326fb650acfaae22ec50528cfbf7c:/include/wx/xrc/xmlreshandler.h?ds=sidebyside diff --git a/include/wx/xrc/xmlreshandler.h b/include/wx/xrc/xmlreshandler.h index 46eb374c18..7aa12b7bc6 100644 --- a/include/wx/xrc/xmlreshandler.h +++ b/include/wx/xrc/xmlreshandler.h @@ -18,9 +18,11 @@ #include "wx/string.h" #include "wx/artprov.h" #include "wx/colour.h" -#include "wx/animate.h" #include "wx/filesys.h" #include "wx/imaglist.h" +#include "wx/window.h" + +class WXDLLIMPEXP_FWD_ADV wxAnimation; class WXDLLIMPEXP_FWD_XML wxXmlNode; class WXDLLIMPEXP_FWD_XML wxXmlResource; @@ -87,7 +89,7 @@ public: virtual wxImageList *GetImageList(const wxString& param = wxT("imagelist")) = 0; #if wxUSE_ANIMATIONCTRL - virtual wxAnimation GetAnimation(const wxString& param = wxT("animation")) = 0; + virtual wxAnimation* GetAnimation(const wxString& param = wxT("animation")) = 0; #endif virtual wxFont GetFont(const wxString& param = wxT("font"), wxWindow* parent = NULL) = 0; @@ -129,6 +131,12 @@ public: // it, SetImpl() needs to be called as done by wxXmlResource::AddHandler(). wxXmlResourceHandler() { + m_node = NULL; + m_parent = + m_instance = NULL; + m_parentAsWindow = NULL; + m_resource = NULL; + m_impl = NULL; } @@ -183,15 +191,15 @@ protected: // Everything else is simply forwarded to wxXmlResourceHandlerImpl. void ReportError(wxXmlNode *context, const wxString& message) { - return GetImpl()->ReportError(context, message); + GetImpl()->ReportError(context, message); } void ReportError(const wxString& message) { - return GetImpl()->ReportError(message); + GetImpl()->ReportError(message); } void ReportParamError(const wxString& param, const wxString& message) { - return GetImpl()->ReportParamError(param, message); + GetImpl()->ReportParamError(param, message); } bool IsOfClass(wxXmlNode *node, const wxString& classname) const @@ -305,7 +313,7 @@ protected: } #if wxUSE_ANIMATIONCTRL - wxAnimation GetAnimation(const wxString& param = wxT("animation")) + wxAnimation* GetAnimation(const wxString& param = wxT("animation")) { return GetImpl()->GetAnimation(param); } @@ -352,6 +360,15 @@ protected: wxWindow *m_parentAsWindow; wxXmlResource *m_resource; + // provide method access to those member variables + wxXmlResource* GetResource() const { return m_resource; } + wxXmlNode* GetNode() const { return m_node; } + wxString GetClass() const { return m_class; } + wxObject* GetParent() const { return m_parent; } + wxObject* GetInstance() const { return m_instance; } + wxWindow* GetParentAsWindow() const { return m_parentAsWindow; } + + wxArrayString m_styleNames; wxArrayInt m_styleValues;