diff options
author | Andreas Bille <abi@openoffice.org> | 2003-04-04 08:03:46 +0000 |
---|---|---|
committer | Andreas Bille <abi@openoffice.org> | 2003-04-04 08:03:46 +0000 |
commit | 977853ced949b95a0b96a918e929e9fc7393e6f3 (patch) | |
tree | 096975ad3b3ab1d9adccf0ac62a6a5078de74f9c /embedserv/source/inc/intercept.hxx | |
parent | 7410db94bc0672795e85da1443632ce6a781f301 (diff) |
#i2822# statuslistener
Diffstat (limited to 'embedserv/source/inc/intercept.hxx')
-rw-r--r-- | embedserv/source/inc/intercept.hxx | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/embedserv/source/inc/intercept.hxx b/embedserv/source/inc/intercept.hxx index 96fc84c33787..9ecc786dadff 100644 --- a/embedserv/source/inc/intercept.hxx +++ b/embedserv/source/inc/intercept.hxx @@ -2,9 +2,9 @@ * * $RCSfile: intercept.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: abi $ $Date: 2003-03-27 16:09:44 $ + * last change: $Author: abi $ $Date: 2003-04-04 09:03:46 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -68,6 +68,9 @@ #ifndef _CPPUHELPER_IMPLBASE3_HXX_ #include <cppuhelper/implbase3.hxx> #endif +#ifndef _CPPUHELPER_INTERFACECONTAINER_HXX_ +#include <cppuhelper/interfacecontainer.hxx> +#endif #ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDERINTERCEPTOR_HPP_ #include <com/sun/star/frame/XDispatchProviderInterceptor.hpp> #endif @@ -79,6 +82,7 @@ #endif +class StatusChangeListenerContainer; class EmbedDocument_Impl; @@ -91,6 +95,24 @@ class Interceptor public: Interceptor(EmbedDocument_Impl* pOLEInterface); + ~Interceptor(); + + // overwritten to release the statuslistner. + + // XComponent + virtual void SAL_CALL + addEventListener( + const com::sun::star::uno::Reference< com::sun::star::lang::XEventListener >& xListener ) + throw( com::sun::star::uno::RuntimeException ); + + virtual void SAL_CALL + removeEventListener( const com::sun::star::uno::Reference< com::sun::star::lang::XEventListener >& aListener ) + throw( com::sun::star::uno::RuntimeException ); + + void SAL_CALL + dispose() throw(::com::sun::star::uno::RuntimeException); + + //XDispatch virtual void SAL_CALL @@ -194,6 +216,9 @@ private: static ::com::sun::star::uno::Sequence<::rtl::OUString> m_aInterceptedURL; + + cppu::OInterfaceContainerHelper* m_pDisposeEventListeners; + StatusChangeListenerContainer* m_pStatCL; }; #endif |