diff options
author | Oliver Specht <os@openoffice.org> | 2001-10-01 12:14:56 +0000 |
---|---|---|
committer | Oliver Specht <os@openoffice.org> | 2001-10-01 12:14:56 +0000 |
commit | b73475d41f57df112c6291d68228a763ac65d671 (patch) | |
tree | 2d4f9707aa7c51ab381f7027caa96550d7c1bff1 /sw/source/ui/inc/unodispatch.hxx | |
parent | #92571# add correct exception specification to match interface declaration (diff) | |
download | core-b73475d41f57df112c6291d68228a763ac65d671.tar.gz core-b73475d41f57df112c6291d68228a763ac65d671.zip |
#92219# invalidate dispatch provider when parent view is destroyed
Diffstat (limited to 'sw/source/ui/inc/unodispatch.hxx')
-rw-r--r-- | sw/source/ui/inc/unodispatch.hxx | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/sw/source/ui/inc/unodispatch.hxx b/sw/source/ui/inc/unodispatch.hxx index e6afe78e7c06..d731fdba8577 100644 --- a/sw/source/ui/inc/unodispatch.hxx +++ b/sw/source/ui/inc/unodispatch.hxx @@ -2,9 +2,9 @@ * * $RCSfile: unodispatch.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: os $ $Date: 2001-07-12 13:10:25 $ + * last change: $Author: os $ $Date: 2001-10-01 13:14:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -70,12 +70,18 @@ #ifndef _COM_SUN_STAR_VIEW_XSELECTIONCHANGELISTENER_HPP_ #include <com/sun/star/view/XSelectionChangeListener.hpp> #endif +#ifndef _COM_SUN_STAR_LANG_XUNOTUNNEL_HPP_ +#include <com/sun/star/lang/XUnoTunnel.hpp> +#endif #ifndef _COM_SUN_STAR_FRAME_XDISPATCH_HPP_ #include <com/sun/star/frame/XDispatch.hpp> #endif #ifndef _CPPUHELPER_IMPLBASE2_HXX_ #include <cppuhelper/implbase2.hxx> #endif +#ifndef _CPPUHELPER_IMPLBASE3_HXX_ +#include <cppuhelper/implbase3.hxx> +#endif #include <list> #ifndef _OSL_MUTEX_HXX_ #include <osl/mutex.hxx> @@ -83,10 +89,11 @@ class SwView; //--------------------------------------------------------------------------------------------------------------------- -class SwXDispatchProviderInterceptor : public cppu::WeakImplHelper2 +class SwXDispatchProviderInterceptor : public cppu::WeakImplHelper3 < ::com::sun::star::frame::XDispatchProviderInterceptor, - ::com::sun::star::lang::XEventListener + ::com::sun::star::lang::XEventListener, + ::com::sun::star::lang::XUnoTunnel > { ::osl::Mutex m_aMutex; @@ -100,7 +107,7 @@ class SwXDispatchProviderInterceptor : public cppu::WeakImplHelper2 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch> m_xDispatch; - SwView& m_rView; + SwView* m_pView; public: SwXDispatchProviderInterceptor(SwView& rView); @@ -118,6 +125,13 @@ public: // XEventListener virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException); + + //XUnoTunnel + static const ::com::sun::star::uno::Sequence< sal_Int8 > & getUnoTunnelId(); + virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw(::com::sun::star::uno::RuntimeException); + + // view destroyed + void Invalidate(); }; //--------------------------------------------------------------------------------------------------------------------- struct StatusStruct_Impl |