summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/browser/sbamultiplex.cxx
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-12-10 14:42:07 +0000
committerFrank Schönheit <fs@openoffice.org>2001-12-10 14:42:07 +0000
commit511f354d3658a2f15a9ee1406272a01b093d25ad (patch)
tree4731b40e74be182285022630794e5a36e99990b2 /dbaccess/source/ui/browser/sbamultiplex.cxx
parent6580015589b539f211e1a396d813ce0b550da07c (diff)
#95780# the status multiplexer remembers it's last event
Diffstat (limited to 'dbaccess/source/ui/browser/sbamultiplex.cxx')
-rw-r--r--dbaccess/source/ui/browser/sbamultiplex.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/dbaccess/source/ui/browser/sbamultiplex.cxx b/dbaccess/source/ui/browser/sbamultiplex.cxx
index 88f27a7c1ec9..b927626ac8bc 100644
--- a/dbaccess/source/ui/browser/sbamultiplex.cxx
+++ b/dbaccess/source/ui/browser/sbamultiplex.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: sbamultiplex.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: hr $ $Date: 2001-09-13 14:15:52 $
+ * last change: $Author: fs $ $Date: 2001-12-10 15:42:07 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -70,7 +70,15 @@ using namespace dbaui;
// XStatusListener
IMPLEMENT_LISTENER_MULTIPLEXER_CORE(SbaXStatusMultiplexer, ::com::sun::star::frame::XStatusListener)
-IMPLEMENT_LISTENER_MULTIPLEXER_VOID_METHOD(SbaXStatusMultiplexer, ::com::sun::star::frame::XStatusListener, statusChanged, ::com::sun::star::frame::FeatureStateEvent)
+
+void SAL_CALL SbaXStatusMultiplexer::statusChanged(const ::com::sun::star::frame::FeatureStateEvent& e) throw (::com::sun::star::uno::RuntimeException)
+{
+ m_aLastKnownStatus = e;
+ m_aLastKnownStatus.Source = &m_rParent;
+ ::cppu::OInterfaceIteratorHelper aIt( *this );
+ while ( aIt.hasMoreElements() )
+ static_cast< ::com::sun::star::frame::XStatusListener* >( aIt.next() )->statusChanged( m_aLastKnownStatus );
+} \
// LoadListener
IMPLEMENT_LISTENER_MULTIPLEXER_CORE(SbaXLoadMultiplexer, ::com::sun::star::form::XLoadListener)