summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/inc/unodispatch.hxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2001-03-07 12:46:48 +0000
committerOliver Specht <os@openoffice.org>2001-03-07 12:46:48 +0000
commit383dbc3945e18a38d632b55dc648faf34d2653c7 (patch)
tree4e824685d61fd8bbc86e2902ed81b0a06712e866 /sw/source/ui/inc/unodispatch.hxx
parentDataSourceBrowser included into FormLetter dialog (diff)
downloadcore-383dbc3945e18a38d632b55dc648faf34d2653c7.tar.gz
core-383dbc3945e18a38d632b55dc648faf34d2653c7.zip
#84590# SwXDispatch completed
Diffstat (limited to 'sw/source/ui/inc/unodispatch.hxx')
-rw-r--r--sw/source/ui/inc/unodispatch.hxx41
1 files changed, 27 insertions, 14 deletions
diff --git a/sw/source/ui/inc/unodispatch.hxx b/sw/source/ui/inc/unodispatch.hxx
index 768155f79bd9..91499b0e9527 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.1 $
+ * $Revision: 1.2 $
*
- * last change: $Author: os $ $Date: 2000-11-07 14:41:19 $
+ * last change: $Author: os $ $Date: 2001-03-07 13:42:46 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -67,15 +67,16 @@
#ifndef _COM_SUN_STAR_FRAME_XDISPATCHPROVIDERINTERCEPTOR_HPP_
#include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
#endif
+#ifndef _COM_SUN_STAR_VIEW_XSELECTIONCHANGELISTENER_HPP_
+#include <com/sun/star/view/XSelectionChangeListener.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_IMPLBASE1_HXX_
-#include <cppuhelper/implbase1.hxx>
-#endif
+#include <list>
class SwView;
//---------------------------------------------------------------------------------------------------------------------
@@ -92,9 +93,7 @@ class SwXDispatchProviderInterceptor : public cppu::WeakImplHelper2
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider> m_xSlaveDispatcher;
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProvider> m_xMasterDispatcher;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch> m_xFormLetterDispatch;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch> m_xInsertContentDispatch;
- ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch> m_xInsertColumnsDispatch;
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch> m_xDispatch;
SwView& m_rView;
@@ -116,21 +115,35 @@ public:
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw(::com::sun::star::uno::RuntimeException);
};
//---------------------------------------------------------------------------------------------------------------------
-class SwXDispatch : public cppu::WeakImplHelper1
+struct StatusStruct_Impl
+{
+ ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener> xListener;
+ ::com::sun::star::util::URL aURL;
+};
+typedef std::list< StatusStruct_Impl > StatusListenerList;
+class SwXDispatch : public cppu::WeakImplHelper2
<
- ::com::sun::star::frame::XDispatch
+ ::com::sun::star::frame::XDispatch,
+ ::com::sun::star::view::XSelectionChangeListener
>
{
- SwView& m_rView;
- sal_uInt16 m_nSlot;
-
+ SwView& m_rView;
+ StatusListenerList m_aListenerList;
+ sal_Bool m_bOldEnable;
+ sal_Bool m_bListenerAdded;
public:
- SwXDispatch(SwView& rView, sal_uInt16 nSlotId);
+ SwXDispatch(SwView& rView);
~SwXDispatch();
virtual void SAL_CALL dispatch( const ::com::sun::star::util::URL& aURL, const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aArgs ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL addStatusListener( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XStatusListener >& xControl, const ::com::sun::star::util::URL& aURL ) throw(::com::sun::star::uno::RuntimeException);
virtual void SAL_CALL removeStatusListener( const ::com::sun::star::uno::Reference< ::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);
};
#endif