diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-07-18 09:18:09 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-07-18 09:18:09 +0000 |
commit | bd9160db9bdc5f78f943c3786a7c0c9ee58e2d45 (patch) | |
tree | 45d8a9c0121f64fdac9c8f2da792c65ec3aafc5b /sc/inc/dispuno.hxx | |
parent | #89826# any[][] as first parameter for IMSUM and IMPRODUCT (diff) | |
download | core-bd9160db9bdc5f78f943c3786a7c0c9ee58e2d45.tar.gz core-bd9160db9bdc5f78f943c3786a7c0c9ee58e2d45.zip |
#88848# provide status for DocumentDataSource
Diffstat (limited to 'sc/inc/dispuno.hxx')
-rw-r--r-- | sc/inc/dispuno.hxx | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/sc/inc/dispuno.hxx b/sc/inc/dispuno.hxx index 0ad633472c9c..39d2e358003f 100644 --- a/sc/inc/dispuno.hxx +++ b/sc/inc/dispuno.hxx @@ -2,9 +2,9 @@ * * $RCSfile: dispuno.hxx,v $ * - * $Revision: 1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: nn $ $Date: 2000-11-13 19:21:34 $ + * last change: $Author: nn $ $Date: 2001-07-18 10:17:27 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -65,14 +65,23 @@ #ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDERINTERCEPTOR_HPP_ #include <com/sun/star/frame/XDispatchProviderInterceptor.hpp> #endif - -#ifndef _CPPUHELPER_IMPLBASE1_HXX_ -#include <cppuhelper/implbase1.hxx> +#ifndef _COM_SUN_STAR_VIEW_XSELECTIONCHANGELISTENER_HPP_ +#include <com/sun/star/view/XSelectionChangeListener.hpp> #endif + #ifndef _CPPUHELPER_IMPLBASE2_HXX_ #include <cppuhelper/implbase2.hxx> #endif +#ifndef _SVARRAY_HXX +#include <svtools/svarray.hxx> +#endif + +#ifndef SC_SCGLOB_HXX +#include "global.hxx" // ScImportParam +#endif + + namespace com { namespace sun { namespace star { namespace frame { class XDispatchProviderInterception; } } } } @@ -80,6 +89,11 @@ namespace com { namespace sun { namespace star { namespace frame { class ScTabViewShell; +typedef ::com::sun::star::uno::Reference< + ::com::sun::star::frame::XStatusListener >* XStatusListenerPtr; +SV_DECL_PTRARR_DEL( XStatusListenerArr_Impl, XStatusListenerPtr, 4, 4 ); + + class ScDispatchProviderInterceptor : public cppu::WeakImplHelper2< com::sun::star::frame::XDispatchProviderInterceptor, com::sun::star::lang::XEventListener> @@ -135,9 +149,14 @@ public: }; -class ScDispatch : public cppu::WeakImplHelper1<com::sun::star::frame::XDispatch> +class ScDispatch : public cppu::WeakImplHelper2< + com::sun::star::frame::XDispatch, + com::sun::star::view::XSelectionChangeListener > { - ScTabViewShell* pViewShell; + ScTabViewShell* pViewShell; + XStatusListenerArr_Impl aDataSourceListeners; + ScImportParam aLastImport; + sal_Bool bListeningToView; public: @@ -157,6 +176,14 @@ public: ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw(::com::sun::star::uno::RuntimeException); + + // XSelectionChangeListener + virtual void SAL_CALL selectionChanged( const ::com::sun::star::lang::EventObject& aEvent ) + throw (::com::sun::star::uno::RuntimeException); + + // XEventListener + virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) + throw (::com::sun::star::uno::RuntimeException); }; |