};
+class wxXmlRcEditDocument : public wxXmlDocument
+{
+ // Helper functions for Upgrade()
+ void UpgradeNodeValue(wxXmlNode *node);
+ void UpgradeNode(wxXmlNode *node);
+
+ public:
+ // Upgrades older versions
+ void Upgrade();
+
+};
+
class EditorFrame : public wxFrame
{
public:
wxXmlNode *m_Clipboard;
wxString m_FileName;
- wxXmlDocument *m_Resource;
+ wxXmlRcEditDocument *m_Resource;
bool m_Modified;