Zoom in and out with the mouse wheel.
[ipdf/code.git] / src / document.h
1 #ifndef _DOCUMENT_H
2 #define _DOCUMENT_H
3
4 #include "ipdf.h"
5
6 namespace IPDF
7 {
8         class Document
9         {
10                 public:
11                         Document(const std::string & filename = "") : m_objects(), m_count(0) {Load(filename);}
12                         virtual ~Document() {}
13
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();
18
19                         unsigned ObjectCount() const {return m_count;}
20
21                         bool operator==(const Document & equ) const;
22                         bool operator!=(const Document & equ) const {return !(this->operator==(equ));}
23
24                 private:
25                         friend class View;
26                         Objects m_objects;
27                         unsigned m_count;
28         };
29 }
30
31 #endif //_DOCUMENT_H

UCC git Repository :: git.ucc.asn.au