From b87db6a1874f089ac275976d383c4f7fc866d2fc Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 22 Apr 2015 14:42:23 +0200 Subject: Update to XDocumentEventBroadcaster et al Change-Id: Ie09223824af45e5e214169182a5cd189fd04f6ef --- basic/source/classes/sbxmod.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'basic/source/classes/sbxmod.cxx') diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 8ac5bee81d59..91fac4c74221 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -51,8 +51,8 @@ #include #include #include -#include -#include +#include +#include #ifdef UNX #include @@ -2245,7 +2245,7 @@ void SbObjModule::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType, typedef ::cppu::WeakImplHelper3< awt::XTopWindowListener, awt::XWindowListener, - document::XEventListener > FormObjEventListener_BASE; + document::XDocumentEventListener > FormObjEventListener_BASE; class FormObjEventListenerImpl: public FormObjEventListener_BASE, private boost::noncopyable @@ -2282,7 +2282,7 @@ public: { try { - uno::Reference< document::XEventBroadcaster >( mxModel, uno::UNO_QUERY_THROW )->addEventListener( this ); + uno::Reference< document::XDocumentEventBroadcaster >( mxModel, uno::UNO_QUERY_THROW )->addDocumentEventListener( this ); } catch(const uno::Exception& ) {} } @@ -2317,7 +2317,7 @@ public: { try { - uno::Reference< document::XEventBroadcaster >( mxModel, uno::UNO_QUERY_THROW )->removeEventListener( this ); + uno::Reference< document::XDocumentEventBroadcaster >( mxModel, uno::UNO_QUERY_THROW )->removeDocumentEventListener( this ); } catch(const uno::Exception& ) {} } @@ -2427,7 +2427,7 @@ public: { } - virtual void SAL_CALL notifyEvent( const document::EventObject& rEvent ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE + virtual void SAL_CALL documentEventOccured( const document::DocumentEvent& rEvent ) throw (uno::RuntimeException, std::exception) SAL_OVERRIDE { // early dosposing on document event "OnUnload", to be sure Basic still exists when calling VBA "UserForm_Terminate" if( rEvent.EventName == GlobalEventConfig::GetEventName( STR_EVENT_CLOSEDOC ) ) -- cgit