From 418e1c560a9c6c68a1918e8a9b95ef276ce78ab1 Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Wed, 8 Jun 2011 15:43:44 -0430 Subject: Replace List for std::vector. --- sd/inc/drawdoc.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sd/inc') 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 maFrameViewList; List* mpCustomShowList; ::sd::DrawDocShell* mpDocSh; SdTransferable * mpCreatingTransferable; @@ -407,7 +408,7 @@ public: sal_uLong GetLinkCount(); - List* GetFrameViewList() const { return mpFrameViewList; } + std::vector& 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; -- cgit