Add wxXmlResourceHandler::GetFilePath()
The function already implemented in wxXmlResourceHandlerImpl. Just make it accessible from wxXmlResourceHandler.
This commit is contained in:
@@ -603,7 +603,7 @@ public:
|
||||
|
||||
// Gets a file path from the given node, expanding environment variables in
|
||||
// it if wxXRC_USE_ENVVARS is in use.
|
||||
wxString GetFilePath(const wxXmlNode* node);
|
||||
wxString GetFilePath(const wxXmlNode* node) wxOVERRIDE;
|
||||
|
||||
// Returns the window associated with the handler (may be NULL).
|
||||
wxWindow* GetParentAsWindow() const { return m_handler->GetParentAsWindow(); }
|
||||
|
@@ -105,6 +105,7 @@ public:
|
||||
|
||||
virtual wxFont GetFont(const wxString& param = wxT("font"), wxWindow* parent = NULL) = 0;
|
||||
virtual bool GetBoolAttr(const wxString& attr, bool defaultv) = 0;
|
||||
virtual wxString GetFilePath(const wxXmlNode* node) = 0;
|
||||
virtual void SetupWindow(wxWindow *wnd) = 0;
|
||||
virtual void CreateChildren(wxObject *parent, bool this_hnd_only = false) = 0;
|
||||
virtual void CreateChildrenPrivately(wxObject *parent,
|
||||
@@ -367,6 +368,10 @@ protected:
|
||||
{
|
||||
return GetImpl()->GetBoolAttr(attr, defaultv);
|
||||
}
|
||||
wxString GetFilePath(const wxXmlNode* node)
|
||||
{
|
||||
return GetImpl()->GetFilePath(node);
|
||||
}
|
||||
void SetupWindow(wxWindow *wnd)
|
||||
{
|
||||
GetImpl()->SetupWindow(wnd);
|
||||
|
Reference in New Issue
Block a user