protected:
// reports input error at position 'context'
- void ReportError(wxXmlNode *context, const wxString& message);
+ void ReportError(const wxXmlNode *context, const wxString& message);
// override this in derived class to customize errors reporting
- virtual void DoReportError(const wxString& xrcFile, wxXmlNode *position,
+ virtual void DoReportError(const wxString& xrcFile, const wxXmlNode *position,
const wxString& message);
+ // Load the contents of a single file and returns its contents as a new
+ // wxXmlDocument (which will be owned by caller) on success or NULL.
+ wxXmlDocument *DoLoadFile(const wxString& file);
+
// Scans the resources list for unloaded files and loads them. Also reloads
// files that have been modified since last loading.
bool UpdateResources();
friend class wxXmlResourceHandler;
friend class wxXmlResourceModule;
+ friend class wxIdRangeManager;
+ friend class wxIdRange;
static wxXmlSubclassFactories *ms_subclassFactories;
wxCoord GetDimension(const wxString& param, wxCoord defaultv = 0,
wxWindow *windowToUse = NULL);
+ // Gets a direction, complains if the value is invalid.
+ wxDirection GetDirection(const wxString& param, wxDirection dir = wxLEFT);
+
// Gets a bitmap.
wxBitmap GetBitmap(const wxString& param = wxT("bitmap"),
const wxArtClient& defaultArtClient = wxART_OTHER,