From 8da8927a0198f41fc3bcd6d512e3b570d4b8803f Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Sun, 23 Nov 2014 11:30:07 -0500 Subject: Forward-declare SfxModuleArr_Impl in sfx2/module.hxx. This is only used within sfx2. Change-Id: I40d850bcf82ba39dc7cf7d1a5b70c90add4e75c0 --- sfx2/inc/arrdecl.hxx | 3 --- sfx2/source/appl/module.cxx | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 3 deletions(-) (limited to 'sfx2') diff --git a/sfx2/inc/arrdecl.hxx b/sfx2/inc/arrdecl.hxx index 31cd3545546e..a5bcbe6069cb 100644 --- a/sfx2/inc/arrdecl.hxx +++ b/sfx2/inc/arrdecl.hxx @@ -21,9 +21,6 @@ #include -class SfxModule; -typedef ::std::vector SfxModuleArr_Impl; - class SfxFrame; typedef ::std::vector SfxFrameArr_Impl; diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 71c06b499844..00dde7424928 100644 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -44,6 +44,40 @@ #include "childwinimpl.hxx" #include +class SfxModuleArr_Impl +{ + typedef ::std::vector DataType; + DataType maData; +public: + + typedef DataType::iterator iterator; + + iterator begin() + { + return maData.begin(); + } + + void erase( iterator it ) + { + maData.erase(it); + } + + SfxModule* operator[] ( size_t i ) + { + return maData[i]; + } + + void push_back( SfxModule* p ) + { + maData.push_back(p); + } + + size_t size() const + { + return maData.size(); + } +}; + static SfxModuleArr_Impl* pModules=0; class SfxModule_Impl -- cgit