diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-04-21 10:46:53 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-04-21 10:46:53 +0000 |
commit | a5a56a4934f99734030f829f47dbacdbe145e462 (patch) | |
tree | 6e8a274b5869b8519f4900e2567cc8adf0d79062 /desktop | |
parent | fed9eb71c93f2681e55f654bb06baf3adaa5c6ad (diff) |
INTEGRATION: CWS fwk10 (1.22.34); FILE MERGED
2005/04/13 11:34:21 as 1.22.34.2: #i47147# execute ALL slots synchronous
2005/04/12 06:43:45 as 1.22.34.1: #i47147# force synchronous slot execution ... otherwise the office will be terminated
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index b0cc2f93eb9e..0616d8230521 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dispatchwatcher.cxx,v $ * - * $Revision: 1.22 $ + * $Revision: 1.23 $ * - * last change: $Author: vg $ $Date: 2005-03-10 17:16:54 $ + * last change: $Author: obo $ $Date: 2005-04-21 11:46:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -344,12 +344,14 @@ void DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ // We have to be listener to catch errors during dispatching URLs. // Otherwise it would be possible to have an office running without an open // window!! - Sequence < PropertyValue > aNoArgs; + Sequence < PropertyValue > aArgs(1); + aArgs[0].Name = ::rtl::OUString::createFromAscii("SynchronMode"); + aArgs[0].Value <<= sal_True; Reference < XNotifyingDispatch > xDisp( xDispatcher, UNO_QUERY ); if ( xDisp.is() ) - xDisp->dispatchWithNotification( aURL, aNoArgs, DispatchWatcher::GetDispatchWatcher() ); + xDisp->dispatchWithNotification( aURL, aArgs, DispatchWatcher::GetDispatchWatcher() ); else - xDispatcher->dispatch( aURL, aNoArgs ); + xDispatcher->dispatch( aURL, aArgs ); } catch ( ::com::sun::star::uno::Exception& ) { @@ -475,9 +477,11 @@ void DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ if ( aDispatches.size() > 0 ) { // Execute all asynchronous dispatches now after we placed them into our request container! - Sequence < PropertyValue > aArgs( 1 ); + Sequence < PropertyValue > aArgs( 2 ); aArgs[0].Name = ::rtl::OUString::createFromAscii("Referer"); aArgs[0].Value <<= ::rtl::OUString::createFromAscii("private:OpenEvent"); + aArgs[1].Name = ::rtl::OUString::createFromAscii("SynchronMode"); + aArgs[1].Value <<= sal_True; for ( sal_uInt32 n = 0; n < aDispatches.size(); n++ ) { |