X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fdocument.h;h=5ec5dad92219d10f4d93f6c56241b1dc732f8e87;hp=54ccdd08a48e961480a02a442caa750c90609bc6;hb=ee5287fabfb214e8f7b483cde424108270525fd7;hpb=f8ef964f021d1d6da6ea46bbb1fe8f0250a5be8c diff --git a/src/document.h b/src/document.h index 54ccdd0..5ec5dad 100644 --- a/src/document.h +++ b/src/document.h @@ -13,7 +13,6 @@ namespace IPDF void Load(const std::string & filename = ""); void Save(const std::string & filename); - void Add(ObjectType type, const Rect & bounds); void DebugDumpObjects(); unsigned ObjectCount() const {return m_count;} @@ -22,10 +21,15 @@ namespace IPDF bool operator==(const Document & equ) const; bool operator!=(const Document & equ) const {return !(this->operator==(equ));} + void Add(ObjectType type, const Rect & bounds, unsigned data_index = 0); + unsigned AddBezierData(const Bezier & bezier); + private: friend class View; Objects m_objects; unsigned m_count; + + }; }