Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9e18f7e3
Kaydet (Commit)
9e18f7e3
authored
Ock 17, 2014
tarafından
Matúš Kukan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
disambiguate URLTransformer
Change-Id: I27a80a7593889105c7a75c04de08eebe28e5c541
üst
2fd70b6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
urltransformer.cxx
framework/source/services/urltransformer.cxx
+8
-14
No files found.
framework/source/services/urltransformer.cxx
Dosyayı görüntüle @
9e18f7e3
...
...
@@ -30,12 +30,6 @@
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
using
namespace
::
osl
;
using
namespace
::
cppu
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
util
;
namespace
{
class
URLTransformer
:
public
::
cppu
::
WeakImplHelper2
<
css
::
util
::
XURLTransformer
,
css
::
lang
::
XServiceInfo
>
...
...
@@ -80,7 +74,7 @@ public:
namespace
{
void
lcl_ParserHelper
(
INetURLObject
&
_rParser
,
URL
&
_rURL
,
bool
_bUseIntern
)
void
lcl_ParserHelper
(
INetURLObject
&
_rParser
,
css
::
util
::
URL
&
_rURL
,
bool
_bUseIntern
)
{
// Get all information about this URL.
_rURL
.
Protocol
=
INetURLObject
::
GetScheme
(
_rParser
.
GetProtocol
()
);
...
...
@@ -132,7 +126,7 @@ namespace
//*****************************************************************************************************************
// XURLTransformer
//*****************************************************************************************************************
sal_Bool
SAL_CALL
URLTransformer
::
parseStrict
(
URL
&
aURL
)
throw
(
RuntimeException
)
sal_Bool
SAL_CALL
URLTransformer
::
parseStrict
(
css
::
util
::
URL
&
aURL
)
throw
(
css
::
uno
::
RuntimeException
)
{
// Safe impossible cases.
if
((
&
aURL
==
NULL
)
||
...
...
@@ -185,8 +179,8 @@ sal_Bool SAL_CALL URLTransformer::parseStrict( URL& aURL ) throw( RuntimeExcepti
//*****************************************************************************************************************
// XURLTransformer
//*****************************************************************************************************************
sal_Bool
SAL_CALL
URLTransformer
::
parseSmart
(
URL
&
aURL
,
const
OUString
&
sSmartProtocol
)
throw
(
RuntimeException
)
sal_Bool
SAL_CALL
URLTransformer
::
parseSmart
(
css
::
util
::
URL
&
aURL
,
const
OUString
&
sSmartProtocol
)
throw
(
css
::
uno
::
RuntimeException
)
{
// Safe impossible cases.
if
((
&
aURL
==
NULL
)
||
...
...
@@ -241,7 +235,7 @@ sal_Bool SAL_CALL URLTransformer::parseSmart( URL& aURL
//*****************************************************************************************************************
// XURLTransformer
//*****************************************************************************************************************
sal_Bool
SAL_CALL
URLTransformer
::
assemble
(
URL
&
aURL
)
throw
(
RuntimeException
)
sal_Bool
SAL_CALL
URLTransformer
::
assemble
(
css
::
util
::
URL
&
aURL
)
throw
(
css
::
uno
::
RuntimeException
)
{
// Safe impossible cases.
if
(
&
aURL
==
NULL
)
...
...
@@ -304,8 +298,8 @@ sal_Bool SAL_CALL URLTransformer::assemble( URL& aURL ) throw( RuntimeException
//*****************************************************************************************************************
// XURLTransformer
//*****************************************************************************************************************
OUString
SAL_CALL
URLTransformer
::
getPresentation
(
const
URL
&
aURL
,
sal_Bool
bWithPassword
)
throw
(
RuntimeException
)
OUString
SAL_CALL
URLTransformer
::
getPresentation
(
const
css
::
util
::
URL
&
aURL
,
sal_Bool
bWithPassword
)
throw
(
css
::
uno
::
RuntimeException
)
{
// Safe impossible cases.
if
((
&
aURL
==
NULL
)
||
...
...
@@ -317,7 +311,7 @@ OUString SAL_CALL URLTransformer::getPresentation( const URL& aURL
}
// Check given URL
URL
aTestURL
=
aURL
;
css
::
util
::
URL
aTestURL
=
aURL
;
sal_Bool
bParseResult
=
parseSmart
(
aTestURL
,
aTestURL
.
Protocol
);
if
(
bParseResult
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment