From 5a71069339b3a3c118f3015d978799ef66db7564 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 31 Jan 2012 14:16:38 +0000 Subject: convert SdCustomeShow from tools/list to vector --- sd/inc/cusshow.hxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'sd/inc') 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 +#include #include #include #include @@ -43,9 +43,13 @@ class SdPage; |* CustomShow |* \************************************************************************/ -class SD_DLLPUBLIC SdCustomShow : public List +class SD_DLLPUBLIC SdCustomShow { +public: + typedef ::std::vector 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(); }; -- cgit