// Purpose: interface of wxXmlResource
// Author: wxWidgets team
// RCS-ID: $Id$
-// Licence: wxWindows license
+// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
/**
@see wxXmlResourceHandler::ReportError(), DoReportError()
*/
- void ReportError(wxXmlNode *context, const wxString& message);
+ void ReportError(const wxXmlNode *context, const wxString& message);
/**
Implementation of XRC resources errors reporting.
@see ReportError()
*/
- virtual void DoReportError(const wxString& xrcFile, wxXmlNode *position,
+ virtual void DoReportError(const wxString& xrcFile, const wxXmlNode *position,
const wxString& message);
};
wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0,
wxWindow* windowToUse = 0);
+ /**
+ Gets a direction.
+
+ If the given @a param is not present or has empty value, @a dir is
+ returned by default. Otherwise the value of the parameter is parsed and
+ a warning is generated if it's not one of @c wxLEFT, @c wxTOP, @c
+ wxRIGHT or @c wxBOTTOM.
+
+ @since 2.9.3
+ */
+ wxDirection GetDirection(const wxString& param, wxDirection dir = wxLEFT);
+
/**
Gets a font.
*/