summaryrefslogtreecommitdiff
path: root/sd/inc
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2011-06-08 15:43:44 -0430
committerPetr Mladek <pmladek@suse.cz>2011-06-10 18:46:33 +0200
commit418e1c560a9c6c68a1918e8a9b95ef276ce78ab1 (patch)
tree0ef56a2b5271405275d20ebcc7bcc3f74968cdf8 /sd/inc
parent6614d67510f067daef67cf6e8b704b409e1b4744 (diff)
Replace List for std::vector<sd::FrameView*>.
Diffstat (limited to 'sd/inc')
-rw-r--r--sd/inc/drawdoc.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx
index 302a79c3460c..86b2ef85fdfe 100644
--- a/sd/inc/drawdoc.hxx
+++ b/sd/inc/drawdoc.hxx
@@ -111,6 +111,7 @@ SV_DECL_REF(DrawDocShell)
class DrawDocShell;
class UndoManager;
class ShapeList;
+class FrameView;
}
class ImpDrawPageListWatcher;
@@ -167,7 +168,7 @@ private:
Timer* mpOnlineSpellingTimer;
sd::ShapeList* mpOnlineSpellingList;
SvxSearchItem* mpOnlineSearchItem;
- List* mpFrameViewList;
+ std::vector<sd::FrameView*> maFrameViewList;
List* mpCustomShowList;
::sd::DrawDocShell* mpDocSh;
SdTransferable * mpCreatingTransferable;
@@ -407,7 +408,7 @@ public:
sal_uLong GetLinkCount();
- List* GetFrameViewList() const { return mpFrameViewList; }
+ std::vector<sd::FrameView*>& GetFrameViewList() { return maFrameViewList; }
SD_DLLPUBLIC List* GetCustomShowList(sal_Bool bCreate = sal_False);
void NbcSetChanged(sal_Bool bFlag = sal_True);
@@ -426,8 +427,7 @@ public:
sal_Bool IsNewOrLoadCompleted() const {return mbNewOrLoadCompleted; }
::sd::FrameView* GetFrameView(sal_uLong nPos) {
- return static_cast< ::sd::FrameView*>(
- mpFrameViewList->GetObject(nPos));}
+ return nPos < maFrameViewList.size() ? maFrameViewList[nPos] : NULL; }
/** deprecated*/
SdAnimationInfo* GetAnimationInfo(SdrObject* pObject) const;