diff options
author | Rafael Dominguez <venccsralph@gmail.com> | 2011-06-08 15:43:44 -0430 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2011-06-10 18:46:33 +0200 |
commit | 418e1c560a9c6c68a1918e8a9b95ef276ce78ab1 (patch) | |
tree | 0ef56a2b5271405275d20ebcc7bcc3f74968cdf8 /sd/inc | |
parent | Replace List with std::vector<NavDocInfo>. (diff) | |
download | core-418e1c560a9c6c68a1918e8a9b95ef276ce78ab1.tar.gz core-418e1c560a9c6c68a1918e8a9b95ef276ce78ab1.zip |
Replace List for std::vector<sd::FrameView*>.
Diffstat (limited to 'sd/inc')
-rw-r--r-- | sd/inc/drawdoc.hxx | 8 |
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; |