diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2012-03-27 19:56:19 -0430 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-04-13 18:42:07 +0200 |
commit | 5d8ce0db822414df88530e58560eee0a46485737 (patch) | |
tree | 17f1ab52f78a875965aa5b2d31cab2c9eb26c861 /sd/inc | |
parent | a8daf5ff0a825777af0438b5605c5796acb6dd72 (diff) |
Overload InsertBookmarkAsObject to use std::vector instead of List.
This are the hardest ones to port, since the rExchangeList parameter uses
the last position from InsertBookmarkAsPage in InsertBookmarkAsObject, so
the best idea i came up with to avoid doing nasty stuffs was erase procesed
objects in InsertBookmarkAsPage and add an extra parameter to
InsertBookmarkAsObject that recalculates object count when rExchangeList
has items but its manipulated by InsertBookmarkAsPage first like it occurs
in function SdDrawDocument::InsertBookmark.
Diffstat (limited to 'sd/inc')
-rw-r--r-- | sd/inc/drawdoc.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx index 9146e342ad5a..35816d0e55c9 100644 --- a/sd/inc/drawdoc.hxx +++ b/sd/inc/drawdoc.hxx @@ -383,6 +383,11 @@ public: sal_Bool bLink, ::sd::DrawDocShell* pBookmarkDocSh, Point* pObjPos); + sal_Bool InsertBookmarkAsObject(const std::vector<rtl::OUString> &rBookmarkList, + std::vector<rtl::OUString> &rExchangeList, + sal_Bool bLink, ::sd::DrawDocShell* pBookmarkDocSh, + Point* pObjPos, bool bCalcObjCount = false); + SD_DLLPUBLIC void CloseBookmarkDoc(); SdrObject* GetObj(const String& rObjName) const; |