summaryrefslogtreecommitdiff
path: root/sd/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-01-31 14:16:38 +0000
committerNoel Power <noel.power@novell.com>2012-01-31 14:17:33 +0000
commit5a71069339b3a3c118f3015d978799ef66db7564 (patch)
tree3244dc4c91e6e2a0cfd70f8edca2e57ab36a5faf /sd/inc
parentd1a84bdb8065c46d98908bc5caec4a995d4d196f (diff)
convert SdCustomeShow from tools/list to vector
Diffstat (limited to 'sd/inc')
-rw-r--r--sd/inc/cusshow.hxx14
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();
};