#include "wx/dialog.h"
#include "wx/settings.h"
#include "wx/bitmap.h"
+ #include "wx/image.h"
#endif
#ifndef __WXWINCE__
#include "wx/tokenzr.h"
#include "wx/fontenum.h"
#include "wx/module.h"
-#include "wx/image.h"
#include "wx/fontmap.h"
#include "wx/artprov.h"
return wxNullColour;
}
-wxColour wxXmlResourceHandler::GetColour(const wxString& param)
+wxColour wxXmlResourceHandler::GetColour(const wxString& param, const wxColour& defaultv)
{
wxString v = GetParamValue(param);
+
+ if ( v.empty() )
+ return defaultv;
+
wxColour clr;
// wxString -> wxColour conversion
}
+
+bool wxXmlResourceHandler::IsOfClass(wxXmlNode *node, const wxString& classname)
+{
+ return node->GetPropVal(wxT("class"), wxEmptyString) == classname;
+}
+
+
+
wxString wxXmlResourceHandler::GetNodeContent(wxXmlNode *node)
{
wxXmlNode *n = node;