11 Document(const std::string & filename = "") : m_objects(), m_count(0) {Load(filename);}
12 virtual ~Document() {}
14 void Load(const std::string & filename = "");
15 void Save(const std::string & filename);
16 void DebugDumpObjects();
18 unsigned ObjectCount() const {return m_count;}
19 inline const Objects & GetObjects() const {return m_objects;}
21 bool operator==(const Document & equ) const;
22 bool operator!=(const Document & equ) const {return !(this->operator==(equ));}
24 void Add(ObjectType type, const Rect & bounds, unsigned data_index = 0);
25 unsigned AddBezierData(const Bezier & bezier);