summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/helpinterceptor.hxx
diff options
context:
space:
mode:
authorPeter Burow <pb@openoffice.org>2000-12-08 11:52:35 +0000
committerPeter Burow <pb@openoffice.org>2000-12-08 11:52:35 +0000
commit46bb0dc447278f6895011ab056386e9e3915c14e (patch)
treedb539d8f7d18fc03cdc48636da663190eae4827d /sfx2/source/appl/helpinterceptor.hxx
parent2cecd4e517f4815b125c6b89e8fa1f8da4a9ec3d (diff)
fix: #81307# HelpListener updates the index
Diffstat (limited to 'sfx2/source/appl/helpinterceptor.hxx')
-rw-r--r--sfx2/source/appl/helpinterceptor.hxx36
1 files changed, 34 insertions, 2 deletions
diff --git a/sfx2/source/appl/helpinterceptor.hxx b/sfx2/source/appl/helpinterceptor.hxx
index 4f3955587de2..eaa3b7bf8f4d 100644
--- a/sfx2/source/appl/helpinterceptor.hxx
+++ b/sfx2/source/appl/helpinterceptor.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: helpinterceptor.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: pb $ $Date: 2000-12-07 17:42:31 $
+ * last change: $Author: pb $ $Date: 2000-12-08 12:52:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -79,12 +79,21 @@
#ifndef _COM_SUN_STAR_FRAME_XFRAME_HPP_
#include <com/sun/star/frame/XFrame.hpp>
#endif
+#ifndef _CPPUHELPER_IMPLBASE1_HXX_
+#include <cppuhelper/implbase1.hxx>
+#endif
+#ifndef _COM_SUN_STAR_FRAME_XSTATUSLISTENER_HPP_
+#include <com/sun/star/frame/XStatusListener.hpp>
+#endif
#ifndef _STRING_HXX
#include <tools/string.hxx>
#endif
#ifndef _LIST_HXX
#include <tools/list.hxx>
#endif
+#ifndef _LINK_HXX
+#include <tools/link.hxx>
+#endif
struct HelpHistoryEntry_Impl
{
@@ -110,6 +119,8 @@ private:
::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::XStatusListener > m_xListener;
+
HelpHistoryList_Impl* m_pHistory;
ULONG m_nCurPos;
@@ -145,5 +156,26 @@ public:
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);
};
+// HelpListener_Impl -----------------------------------------------------
+
+class HelpListener_Impl : public ::cppu::WeakImplHelper1< ::com::sun::star::frame::XStatusListener >
+{
+private:
+ HelpInterceptor_Impl* pInterceptor;
+ Link aChangeLink;
+ String aFactory;
+
+public:
+ HelpListener_Impl( HelpInterceptor_Impl* pInter );
+
+ virtual void SAL_CALL statusChanged( const ::com::sun::star::frame::FeatureStateEvent& Event )
+ throw( ::com::sun::star::uno::RuntimeException );
+ virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& obj )
+ throw( ::com::sun::star::uno::RuntimeException );
+
+ void SetChangeHdl( const Link& rLink ) { aChangeLink = rLink; }
+ String GetFactory() const { return aFactory; }
+};
+
#endif // #ifndef INCLUDED_SFX_HELPINTERCEPTOR_HXX