- // This one is called from CreateResource after variables
- // were filled.
- virtual wxObject *DoCreateResource() = 0;
-
- // Returns true if it understands this node and can create
- // a resource from it, false otherwise.
- virtual bool CanHandle(wxXmlNode *node) = 0;
-
- // Sets the parent resource.
- void SetParentResource(wxXmlResource *res) { m_resource = res; }
-
-protected:
- wxXmlResource *m_resource;
- wxArrayString m_styleNames;
- wxArrayInt m_styleValues;
-
- // Variables (filled by CreateResource)
- wxXmlNode *m_node;
- wxString m_class;
- wxObject *m_parent, *m_instance;
- wxWindow *m_parentAsWindow;