diff options
author | Daniel Sikeler <d.sikeler94@gmail.com> | 2014-09-02 09:12:44 +0000 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2014-09-10 11:48:43 +0000 |
commit | db9cfa672c5944f22ca82a28ed150a5fbae6f5b5 (patch) | |
tree | cd5ad9a28206694e39390a16b92ad88ceaf98eaf /desktop | |
parent | 50df87ceddc5f4dbebe9552c07e6c899dc17717c (diff) |
fdo#55380 replaced use of obsolete interfaces
Change-Id: I94fed6a9361f21457b3e631efffc0db833068aef
Reviewed-on: https://gerrit.libreoffice.org/11256
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/app.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 3155d68f2ee5..3313d03292b5 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -67,7 +67,7 @@ #include <com/sun/star/task/theJobExecutor.hpp> #include <com/sun/star/task/OfficeRestartManager.hpp> #include <com/sun/star/task/XRestartManager.hpp> -#include <com/sun/star/document/XEventListener.hpp> +#include <com/sun/star/document/XDocumentEventListener.hpp> #include <com/sun/star/frame/theUICommandDescription.hpp> #include <com/sun/star/ui/theUIElementFactoryManager.hpp> #include <com/sun/star/ui/theWindowStateConfiguration.hpp> @@ -1323,7 +1323,7 @@ void Desktop::AppEvent( const ApplicationEvent& rAppEvent ) struct ExecuteGlobals { - Reference < css::document::XEventListener > xGlobalBroadcaster; + Reference < css::document::XDocumentEventListener > xGlobalBroadcaster; bool bRestartRequested; bool bUseSystemFileDialog; std::auto_ptr<SvtLanguageOptions> pLanguageOptions; @@ -1485,8 +1485,8 @@ int Desktop::Main() xDesktop = css::frame::Desktop::create( xContext ); // create service for loadin SFX (still needed in startup) - pExecGlobals->xGlobalBroadcaster = Reference < css::document::XEventListener > - ( css::frame::theGlobalEventBroadcaster::get(xContext), UNO_QUERY_THROW ); + pExecGlobals->xGlobalBroadcaster = Reference < css::document::XDocumentEventListener > + ( css::frame::theGlobalEventBroadcaster::get(xContext), UNO_SET_THROW ); /* ensure existence of a default window that messages can be dispatched to This is for the benefit of testtool which uses PostUserEvent extensively @@ -1513,9 +1513,9 @@ int Desktop::Main() // keep a language options instance... pExecGlobals->pLanguageOptions.reset( new SvtLanguageOptions(true)); - css::document::EventObject aEvent; + css::document::DocumentEvent aEvent; aEvent.EventName = "OnStartApp"; - pExecGlobals->xGlobalBroadcaster->notifyEvent(aEvent); + pExecGlobals->xGlobalBroadcaster->documentEventOccured(aEvent); SetSplashScreenProgress(50); @@ -1731,9 +1731,9 @@ int Desktop::doShutdown() if (pExecGlobals->xGlobalBroadcaster.is()) { - css::document::EventObject aEvent; + css::document::DocumentEvent aEvent; aEvent.EventName = "OnCloseApp"; - pExecGlobals->xGlobalBroadcaster->notifyEvent(aEvent); + pExecGlobals->xGlobalBroadcaster->documentEventOccured(aEvent); } delete pResMgr, pResMgr = NULL; |