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 Add(ObjectType type, const Rect & bounds);
17 void DebugDumpObjects();
19 unsigned ObjectCount() const {return m_count;}
21 bool operator==(const Document & equ) const;
22 bool operator!=(const Document & equ) const {return !(this->operator==(equ));}