summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-12-06 13:32:29 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-12-06 14:41:26 -0500
commit5ae4cc92bd6660ccf36ff6cc45f96fa267514f1b (patch)
tree06430d84c813749bbdb72273b979d7311a9063d8 /sfx2
parent9fb6174bb177ede8d393349a4e74d1dca953ad67 (diff)
Forward-declare SfxInPlaceClientList and remove <vector> include.
Change-Id: I4e611820a4dae4341f971a545578048b52d7e37c
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/viewsh.cxx24
1 files changed, 23 insertions, 1 deletions
diff --git a/sfx2/source/view/viewsh.cxx b/sfx2/source/view/viewsh.cxx
index be8f9fa3400c..1cd95a9c32ab 100644
--- a/sfx2/source/view/viewsh.cxx
+++ b/sfx2/source/view/viewsh.cxx
@@ -82,6 +82,8 @@
#include "openuriexternally.hxx"
#include <shellimpl.hxx>
+#include <vector>
+
using namespace ::com::sun::star;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::frame;
@@ -277,6 +279,23 @@ static OUString RetrieveLabelFromCommand(
return aLabel;
}
+class SfxInPlaceClientList
+{
+ typedef std::vector<SfxInPlaceClient*> DataType;
+ DataType maData;
+
+public:
+ typedef DataType::iterator iterator;
+
+ SfxInPlaceClient* at( size_t i ) { return maData.at(i); }
+
+ iterator begin() { return maData.begin(); }
+ iterator end() { return maData.end(); }
+
+ void push_back( SfxInPlaceClient* p ) { maData.push_back(p); }
+ void erase( iterator it ) { maData.erase(it); }
+ size_t size() const { return maData.size(); }
+};
SfxViewShell_Impl::SfxViewShell_Impl(sal_uInt16 const nFlags)
: aInterceptorContainer( aMutex )
@@ -410,7 +429,10 @@ OUString impl_searchFormatTypeForApp(const css::uno::Reference< css::frame::XFra
return OUString();
}
-
+void SfxViewShell::NewIPClient_Impl( SfxInPlaceClient *pIPClient )
+{
+ GetIPClientList_Impl(true)->push_back(pIPClient);
+}
void SfxViewShell::IPClientGone_Impl( SfxInPlaceClient *pIPClient )
{