dispatchwatcher.cxx (2722cedd) dispatchwatcher.cxx (07a3d7f1)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 208 unchanged lines hidden (view full) ---

217 if(
218 ( aName.CompareToAscii( ".uno" , 4 ) == COMPARE_EQUAL ) ||
219 ( aName.CompareToAscii( "slot:" , 5 ) == COMPARE_EQUAL ) ||
220 ( aName.CompareToAscii( "macro:", 6 ) == COMPARE_EQUAL ) ||
221 ( aName.CompareToAscii("vnd.sun.star.script", 19) == COMPARE_EQUAL)
222 )
223 {
224 // Attention: URL must be parsed full. Otherwise some detections on it will fail!
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 208 unchanged lines hidden (view full) ---

217 if(
218 ( aName.CompareToAscii( ".uno" , 4 ) == COMPARE_EQUAL ) ||
219 ( aName.CompareToAscii( "slot:" , 5 ) == COMPARE_EQUAL ) ||
220 ( aName.CompareToAscii( "macro:", 6 ) == COMPARE_EQUAL ) ||
221 ( aName.CompareToAscii("vnd.sun.star.script", 19) == COMPARE_EQUAL)
222 )
223 {
224 // Attention: URL must be parsed full. Otherwise some detections on it will fail!
225 // It doesnt matter, if parser isn't available. Because; We try loading of URL then ...
225 // It doesn't matter, if parser isn't available. Because; We try loading of URL then ...
226 URL aURL ;
227 aURL.Complete = aName;
228
229 Reference < XDispatch > xDispatcher ;
230 Reference < XDispatchProvider > xProvider ( xDesktop, UNO_QUERY );
231 Reference < XURLTransformer > xParser ( ::comphelper::getProcessServiceFactory()->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.URLTransformer")) ), ::com::sun::star::uno::UNO_QUERY );
232
233 if( xParser.is() == sal_True )

--- 277 unchanged lines hidden ---
226 URL aURL ;
227 aURL.Complete = aName;
228
229 Reference < XDispatch > xDispatcher ;
230 Reference < XDispatchProvider > xProvider ( xDesktop, UNO_QUERY );
231 Reference < XURLTransformer > xParser ( ::comphelper::getProcessServiceFactory()->createInstance( OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.util.URLTransformer")) ), ::com::sun::star::uno::UNO_QUERY );
232
233 if( xParser.is() == sal_True )

--- 277 unchanged lines hidden ---