diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-23 11:30:07 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-11-23 13:22:58 -0500 |
commit | 8da8927a0198f41fc3bcd6d512e3b570d4b8803f (patch) | |
tree | 664cbc2794006c0ee922517a76f2b6055ae05dac /sfx2 | |
parent | ec1cb10982decac402a2121e3d64e45d353f1758 (diff) |
Forward-declare SfxModuleArr_Impl in sfx2/module.hxx.
This is only used within sfx2.
Change-Id: I40d850bcf82ba39dc7cf7d1a5b70c90add4e75c0
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/arrdecl.hxx | 3 | ||||
-rw-r--r-- | sfx2/source/appl/module.cxx | 34 |
2 files changed, 34 insertions, 3 deletions
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 <vector> -class SfxModule; -typedef ::std::vector<SfxModule*> SfxModuleArr_Impl; - class SfxFrame; typedef ::std::vector<SfxFrame*> 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 <ctrlfactoryimpl.hxx> +class SfxModuleArr_Impl +{ + typedef ::std::vector<SfxModule*> 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 |