diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-07-23 13:19:03 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-07-23 13:19:03 +0000 |
commit | 24a70897d655a40cff784657fb31c41de1de862c (patch) | |
tree | cd54c50dfdce4f5de05131046c4735a563b27a94 /desktop/source/app/dispatchwatcher.cxx | |
parent | fd1de2d001e13b0843201ec601efe34b4e24482a (diff) |
INTEGRATION: CWS scriptingf7 (1.16.70); FILE MERGED
2004/07/08 14:52:33 toconnor 1.16.70.1: #i25682# command line support for scripting framework URLs
Diffstat (limited to 'desktop/source/app/dispatchwatcher.cxx')
-rw-r--r-- | desktop/source/app/dispatchwatcher.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/desktop/source/app/dispatchwatcher.cxx b/desktop/source/app/dispatchwatcher.cxx index 77fa65ab4a5e..1a935290977b 100644 --- a/desktop/source/app/dispatchwatcher.cxx +++ b/desktop/source/app/dispatchwatcher.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dispatchwatcher.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: hr $ $Date: 2004-03-09 11:07:12 $ + * last change: $Author: hr $ $Date: 2004-07-23 14:19:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -246,7 +246,10 @@ void DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ String aName( aDispatchRequest.aURL ); ::rtl::OUString aTarget( RTL_CONSTASCII_USTRINGPARAM("_default") ); - aName = GetURL_Impl(aName); + if (aName.CompareToAscii("vnd.sun.star.script" , 19) != COMPARE_EQUAL) + { + aName = GetURL_Impl(aName); + } if ( aDispatchRequest.aRequestType == REQUEST_PRINT || aDispatchRequest.aRequestType == REQUEST_PRINTTO ) @@ -274,7 +277,8 @@ void DispatchWatcher::executeDispatchRequests( const DispatchList& aDispatchRequ if( ( aName.CompareToAscii( ".uno" , 4 ) == COMPARE_EQUAL ) || ( aName.CompareToAscii( "slot:" , 5 ) == COMPARE_EQUAL ) || - ( aName.CompareToAscii( "macro:", 6 ) == COMPARE_EQUAL ) + ( aName.CompareToAscii( "macro:", 6 ) == COMPARE_EQUAL ) || + ( aName.CompareToAscii("vnd.sun.star.script", 19) == COMPARE_EQUAL) ) { // Attention: URL must be parsed full. Otherwise some detections on it will fail! |