diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-04-22 14:56:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-04-22 15:38:44 +0200 |
commit | ba150afb07c942d6d87a3b4d7e6535229d9b2013 (patch) | |
tree | ed5bfac30fc03ef67b42710231ce83e8d9eef845 /framework | |
parent | 252b0c4364690e00b45175693d35eb64a07324b4 (diff) |
Update to XDocumentEventBroadcaster et al
Change-Id: I27904a961a30042608ae4facae9772d30b86696b
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/fwe/helper/titlehelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx index 4e2cfdae1f6d..d8c44d37b74b 100644 --- a/framework/source/fwe/helper/titlehelper.cxx +++ b/framework/source/fwe/helper/titlehelper.cxx @@ -25,7 +25,7 @@ #include <com/sun/star/frame/XStorable.hpp> #include <com/sun/star/frame/ModuleManager.hpp> #include <com/sun/star/container/XNameAccess.hpp> -#include <com/sun/star/document/XEventBroadcaster.hpp> +#include <com/sun/star/document/XDocumentEventBroadcaster.hpp> #include <com/sun/star/beans/XMaterialHolder.hpp> #include <unotools/configmgr.hxx> @@ -166,7 +166,7 @@ void SAL_CALL TitleHelper::titleChanged(const css::frame::TitleChangedEvent& aEv impl_updateTitle (); } -void SAL_CALL TitleHelper::notifyEvent(const css::document::EventObject& aEvent) +void SAL_CALL TitleHelper::documentEventOccured(const css::document::DocumentEvent& aEvent) throw (css::uno::RuntimeException, std::exception) { if ( ! aEvent.EventName.equalsIgnoreAsciiCase("OnSaveAsDone") @@ -562,11 +562,11 @@ void TitleHelper::impl_appendDebugVersion (OUStringBuffer&) void TitleHelper::impl_startListeningForModel (const css::uno::Reference< css::frame::XModel >& xModel) { - css::uno::Reference< css::document::XEventBroadcaster > xBroadcaster(xModel, css::uno::UNO_QUERY); + css::uno::Reference< css::document::XDocumentEventBroadcaster > xBroadcaster(xModel, css::uno::UNO_QUERY); if ( ! xBroadcaster.is ()) return; - xBroadcaster->addEventListener (static_cast< css::document::XEventListener* >(this)); + xBroadcaster->addDocumentEventListener (static_cast< css::document::XDocumentEventListener* >(this)); } void TitleHelper::impl_startListeningForController (const css::uno::Reference< css::frame::XController >& xController) |