urltransformer.cxx (6d739b60) | urltransformer.cxx (9f5514e7) |
---|---|
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 --- 175 unchanged lines hidden (view full) --- 184 { 185 lcl_ParserHelper(aParser,aURL,false); 186 // Return "URL is parsed". 187 return sal_True; 188 } 189 } 190 else 191 { | 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 --- 175 unchanged lines hidden (view full) --- 184 { 185 lcl_ParserHelper(aParser,aURL,false); 186 // Return "URL is parsed". 187 return sal_True; 188 } 189 } 190 else 191 { |
192 // Minmal support for unknown protocols. This is mandatory to support the "Protocol Handlers" implemented | 192 // Minimal support for unknown protocols. This is mandatory to support the "Protocol Handlers" implemented |
193 // in framework! 194 aURL.Protocol = aProtocol; 195 aURL.Main = aURL.Complete; 196 aURL.Path = aURL.Complete.copy( nURLIndex+1 );; 197 198 // Return "URL is parsed". 199 return sal_True; 200 } --- 23 unchanged lines hidden (view full) --- 224 if ( bOk ) 225 { 226 lcl_ParserHelper(aParser,aURL,true); 227 // Return "URL is parsed". 228 return sal_True; 229 } 230 else 231 { | 193 // in framework! 194 aURL.Protocol = aProtocol; 195 aURL.Main = aURL.Complete; 196 aURL.Path = aURL.Complete.copy( nURLIndex+1 );; 197 198 // Return "URL is parsed". 199 return sal_True; 200 } --- 23 unchanged lines hidden (view full) --- 224 if ( bOk ) 225 { 226 lcl_ParserHelper(aParser,aURL,true); 227 // Return "URL is parsed". 228 return sal_True; 229 } 230 else 231 { |
232 // Minmal support for unknown protocols. This is mandatory to support the "Protocol Handlers" implemented | 232 // Minimal support for unknown protocols. This is mandatory to support the "Protocol Handlers" implemented |
233 // in framework! 234 if ( INetURLObject::CompareProtocolScheme( sSmartProtocol ) == INET_PROT_NOT_VALID ) 235 { 236 // Try to extract the protocol 237 sal_Int32 nIndex = aURL.Complete.indexOf( sal_Unicode( ':' )); 238 ::rtl::OUString aProtocol; 239 if ( nIndex > 1 ) 240 { --- 128 unchanged lines hidden --- | 233 // in framework! 234 if ( INetURLObject::CompareProtocolScheme( sSmartProtocol ) == INET_PROT_NOT_VALID ) 235 { 236 // Try to extract the protocol 237 sal_Int32 nIndex = aURL.Complete.indexOf( sal_Unicode( ':' )); 238 ::rtl::OUString aProtocol; 239 if ( nIndex > 1 ) 240 { --- 128 unchanged lines hidden --- |