diff options
author | Noel Grandin <noel@peralex.com> | 2012-01-31 14:16:38 +0000 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-01-31 14:17:33 +0000 |
commit | 5a71069339b3a3c118f3015d978799ef66db7564 (patch) | |
tree | 3244dc4c91e6e2a0cfd70f8edca2e57ab36a5faf /sd/inc | |
parent | WaE: add virtual dtors (diff) | |
download | core-5a71069339b3a3c118f3015d978799ef66db7564.tar.gz core-5a71069339b3a3c118f3015d978799ef66db7564.zip |
convert SdCustomeShow from tools/list to vector
Diffstat (limited to 'sd/inc')
-rw-r--r-- | sd/inc/cusshow.hxx | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sd/inc/cusshow.hxx b/sd/inc/cusshow.hxx index 1f981e9a770e..1bd361452b6d 100644 --- a/sd/inc/cusshow.hxx +++ b/sd/inc/cusshow.hxx @@ -29,7 +29,7 @@ #ifndef _SD_CUSSHOW_HXX #define _SD_CUSSHOW_HXX -#include <tools/list.hxx> +#include <vector> #include <tools/stream.hxx> #include <tools/string.hxx> #include <cppuhelper/weakref.hxx> @@ -43,9 +43,13 @@ class SdPage; |* CustomShow |* \************************************************************************/ -class SD_DLLPUBLIC SdCustomShow : public List +class SD_DLLPUBLIC SdCustomShow { +public: + typedef ::std::vector<const SdPage*> PageVec; + private: + PageVec maPages; String aName; SdDrawDocument* pDoc; @@ -65,14 +69,14 @@ public: // @@@ copy ctor, but no copy assignment? @@@ SdCustomShow( const SdCustomShow& rShow ); + PageVec& PagesVector(); + void ReplacePage( const SdPage* pOldPage, const SdPage* pNewPage ); + void SetName(const String& rName); String GetName() const; SdDrawDocument* GetDoc() const { return pDoc; } - void ReplacePage( const SdPage* pOldPage, const SdPage* pNewPage ); - void RemovePage( const SdPage* pPage ); - ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > getUnoCustomShow(); }; |