8 #ifndef __VRV_EDITOR_TOOLKIT_H__
9 #define __VRV_EDITOR_TOOLKIT_H__
39 m_selectionClassId = UNSPECIFIED;
40 m_selectionSecondaryId =
"";
54 virtual std::string
EditStatus() {
return m_editStatus.json(); }
58 virtual std::string
EditResponse() {
return m_editResponse.json(); }
65 #ifndef NO_EDIT_SUPPORT
68 bool AppendChild(std::string &elementId,
const std::string &elementName,
bool unique);
69 bool InsertBefore(std::string &elementId,
const std::string &elementName);
70 bool InsertAfter(std::string &elementId,
const std::string &elementName);
71 Object *GetElement(
const std::string &elementId);
72 Object *PrepareInsertion(
Object *parent,
const std::string &elementName);
73 Object *ResolveElement(std::string &elementId,
bool chain =
true);
74 bool InsertMode()
const {
return (m_cursor); }
78 std::string m_chainedId;
79 std::string m_selectionId;
80 ClassId m_selectionClassId;
81 std::string m_selectionSecondaryId;
86 jsonxx::Object m_editStatus;
87 jsonxx::Object m_editResponse;
This class is a hold the data and corresponds to the model of a MVC design pattern.
Definition: doc.h:41
This class represents a basic object.
Definition: object.h:66
This class is a drawing context and corresponds to the view of a MVC design pattern.
Definition: view.h:109