summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-16 13:21:40 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-16 13:21:40 +0000
commit6bb5dd9b6aa8514b228f1317fbc864b8be927843 (patch)
tree91f141f40775db7d4fe4ccfdbb22553b16db9047 /desktop
parent7e70901296549dac4b55d09fca108f7a0af25a53 (diff)
INTEGRATION: CWS draw10 (1.14.22); FILE MERGED
2003/04/30 09:37:25 lo 1.14.22.1: #109140# -start for StartPresentation
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/dispatchwatcher.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx
index c7521642120b..e59bb3bf1a03 100644
--- a/desktop/source/app/dispatchwatcher.cxx
+++ b/desktop/source/app/dispatchwatcher.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dispatchwatcher.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: hr $ $Date: 2003-03-25 13:51:14 $
+ * last change: $Author: vg $ $Date: 2003-05-16 14:21:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -334,10 +334,19 @@ void DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ
aArgs[nIndex].Value <<= sal_True;
}
+ // if we are called with -start set Start in mediadescriptor
+ if(aDispatchRequest.aRequestType == REQUEST_START) {
+ sal_Int32 nIndex = aArgs.getLength();
+ aArgs.realloc(nIndex+1);
+ aArgs[nIndex].Name = OUString::createFromAscii("StartPresentation");
+ aArgs[nIndex].Value <<= sal_True;
+ }
+
// This is a synchron loading of a component so we don't have to deal with our statusChanged listener mechanism.
xDoc = Reference < XPrintable >( xDesktop->loadComponentFromURL( aName, aTarget, 0, aArgs ), UNO_QUERY );
if ( aDispatchRequest.aRequestType == REQUEST_OPEN ||
- aDispatchRequest.aRequestType == REQUEST_VIEW ||
+ aDispatchRequest.aRequestType == REQUEST_VIEW ||
+ aDispatchRequest.aRequestType == REQUEST_START ||
aDispatchRequest.aRequestType == REQUEST_FORCEOPEN ||
aDispatchRequest.aRequestType == REQUEST_FORCENEW )
{