X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=src%2Fdocument.h;h=54ccdd08a48e961480a02a442caa750c90609bc6;hb=6a1c4e752af0bd26803bc2285cff004ef7b9f53d;hp=ffb761db20079db697d7cea1f04d8f1bcc13b86e;hpb=428f1eb86a616d95dbb72ff08a3d09771d5c47e6;p=ipdf%2Fcode.git diff --git a/src/document.h b/src/document.h index ffb761d..54ccdd0 100644 --- a/src/document.h +++ b/src/document.h @@ -13,10 +13,11 @@ namespace IPDF void Load(const std::string & filename = ""); void Save(const std::string & filename); - void Add(Real x, Real y, Real w, Real h); + void Add(ObjectType type, const Rect & bounds); void DebugDumpObjects(); unsigned ObjectCount() const {return m_count;} + inline const Objects & GetObjects() const {return m_objects;} bool operator==(const Document & equ) const; bool operator!=(const Document & equ) const {return !(this->operator==(equ));}