diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-03 00:02:55 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-03 10:20:09 -0400 |
commit | 221cbbf64a20b87443f378fcb2ed22068867f494 (patch) | |
tree | 6960395f7318848cbd447943417df90bd7a6b964 /editeng/source/editeng/editdoc.hxx | |
parent | b8cc16723815fc2636582e49b8878e9d34b23b86 (diff) |
Another SV_DECL_PTRARR killed.
Diffstat (limited to 'editeng/source/editeng/editdoc.hxx')
-rw-r--r-- | editeng/source/editeng/editdoc.hxx | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/editeng/source/editeng/editdoc.hxx b/editeng/source/editeng/editdoc.hxx index 7cc78ca663b3..5bdce4cd589c 100644 --- a/editeng/source/editeng/editdoc.hxx +++ b/editeng/source/editeng/editdoc.hxx @@ -540,18 +540,24 @@ public: // ------------------------------------------------------------------------- // class LineList // ------------------------------------------------------------------------- -typedef EditLine* EditLinePtr; -SV_DECL_PTRARR( LineArray, EditLinePtr, 0 ) - -class EditLineList : public LineArray +class EditLineList { + typedef boost::ptr_vector<EditLine> LinesType; + LinesType maLines; + public: EditLineList(); ~EditLineList(); - void Reset(); - void DeleteFromLine( sal_uInt16 nDelFrom ); - sal_uInt16 FindLine( sal_uInt16 nChar, sal_Bool bInclEnd ); + void Reset(); + void DeleteFromLine(size_t nDelFrom); + size_t FindLine(sal_uInt16 nChar, bool bInclEnd); + size_t Count() const; + const EditLine* operator[](size_t nPos) const; + EditLine* operator[](size_t nPos); + + void Append(EditLine* p); + void Insert(size_t nPos, EditLine* p); }; // ------------------------------------------------------------------------- |