From b5d0edea37b43a55f4d6a730bb5961250e1984c4 Mon Sep 17 00:00:00 2001
From: Jens-Heiner Rechtien
Date: Fri, 18 Sep 2009 10:15:03 +0000
Subject: CWS-TOOLING: integrate CWS mba32issues02 2009-09-17 mb93783 merge
commit 2009-09-03 tb121644 #i104748 - slot unification to .uno:PasteSpecial
2009-09-01 mba #101455#: code simplification 2009-08-31 mb93783 iso locales
for norwegian builds are nb and nn, not no 2009-08-25 mba merge to m55
2009-07-29 mba cleanup after rebase 2009-07-29 mba #i103200#: wrong order of
first and last name in CJK UI 2009-07-27 mba adding dictionary changes from
broken svn CWS 2009-07-27 mba adding dictionary changes from broken svn CWS
2009-07-27 mba apply patch from broken svn CWS
---
desktop/source/app/app.cxx | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
(limited to 'desktop/source')
diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx
index 75533bcd0f..a8ebfee188 100644
--- a/desktop/source/app/app.cxx
+++ b/desktop/source/app/app.cxx
@@ -1257,6 +1257,7 @@ void Desktop::Main()
std::auto_ptr pLanguageOptions;
std::auto_ptr pPathOptions;
+ Reference < css::document::XEventListener > xGlobalBroadcaster;
try
{
RegisterServices( xSMgr );
@@ -1379,7 +1380,8 @@ void Desktop::Main()
}
// create service for loadin SFX (still needed in startup)
- Reference < css::document::XEventListener > xGlobalBroadcaster( xSMgr->createInstance(
+ xGlobalBroadcaster = Reference < css::document::XEventListener >
+ ( xSMgr->createInstance(
DEFINE_CONST_UNICODE( "com.sun.star.frame.GlobalEventBroadcaster" ) ), UNO_QUERY );
// initialize test-tool library (if available)
@@ -1617,6 +1619,13 @@ void Desktop::Main()
FatalError( MakeStartupErrorMessage(exAnyCfg.Message) );
}
+ if (xGlobalBroadcaster.is())
+ {
+ css::document::EventObject aEvent;
+ aEvent.EventName = ::rtl::OUString::createFromAscii("OnCloseApp");
+ xGlobalBroadcaster->notifyEvent(aEvent);
+ }
+
delete pResMgr;
// Restore old value
--
cgit v1.2.3