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
f409daff
Kaydet (Commit)
f409daff
authored
Ara 13, 2016
tarafından
Tor Lillqvist
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:stringconstant
Change-Id: Ifc100e8ece6ea826b745919583beac315c41b100
üst
20cc8a45
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
46 deletions
+29
-46
UCBDeadPropertyValue.cxx
ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
+3
-3
webdavcontent.cxx
ucb/source/ucp/webdav/webdavcontent.cxx
+20
-33
webdavdatasupplier.cxx
ucb/source/ucp/webdav/webdavdatasupplier.cxx
+2
-6
webdavprovider.cxx
ucb/source/ucp/webdav/webdavprovider.cxx
+4
-4
No files found.
ucb/source/ucp/webdav/UCBDeadPropertyValue.cxx
Dosyayı görüntüle @
f409daff
...
@@ -176,11 +176,11 @@ static OUString encodeValue( const OUString & rValue )
...
@@ -176,11 +176,11 @@ static OUString encodeValue( const OUString & rValue )
const
sal_Unicode
c
=
pValue
[
n
];
const
sal_Unicode
c
=
pValue
[
n
];
if
(
'%'
==
c
)
if
(
'%'
==
c
)
aResult
.
append
Ascii
(
"%per;"
);
aResult
.
append
(
"%per;"
);
else
if
(
'<'
==
c
)
else
if
(
'<'
==
c
)
aResult
.
append
Ascii
(
"%lt;"
);
aResult
.
append
(
"%lt;"
);
else
if
(
'>'
==
c
)
else
if
(
'>'
==
c
)
aResult
.
append
Ascii
(
"%gt;"
);
aResult
.
append
(
"%gt;"
);
else
else
aResult
.
append
(
c
);
aResult
.
append
(
c
);
}
}
...
...
ucb/source/ucp/webdav/webdavcontent.cxx
Dosyayı görüntüle @
f409daff
...
@@ -296,8 +296,7 @@ uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
...
@@ -296,8 +296,7 @@ uno::Any SAL_CALL Content::queryInterface( const uno::Type & rType )
uno
::
Reference
<
beans
::
XPropertySet
>
const
xProps
(
uno
::
Reference
<
beans
::
XPropertySet
>
const
xProps
(
m_xContext
,
uno
::
UNO_QUERY_THROW
);
m_xContext
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
uno
::
XComponentContext
>
xCtx
;
uno
::
Reference
<
uno
::
XComponentContext
>
xCtx
;
xCtx
.
set
(
xProps
->
getPropertyValue
(
xCtx
.
set
(
xProps
->
getPropertyValue
(
"DefaultContext"
),
OUString
(
"DefaultContext"
)
),
uno
::
UNO_QUERY_THROW
);
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
task
::
XInteractionHandler
>
xIH
(
uno
::
Reference
<
task
::
XInteractionHandler
>
xIH
(
...
@@ -1120,8 +1119,7 @@ Content::queryCreatableContentsInfo()
...
@@ -1120,8 +1119,7 @@ Content::queryCreatableContentsInfo()
|
ucb
::
ContentInfoAttribute
::
KIND_DOCUMENT
;
|
ucb
::
ContentInfoAttribute
::
KIND_DOCUMENT
;
beans
::
Property
aProp
;
beans
::
Property
aProp
;
m_pProvider
->
getProperty
(
m_pProvider
->
getProperty
(
"Title"
,
aProp
);
OUString
(
"Title"
),
aProp
);
uno
::
Sequence
<
beans
::
Property
>
aDocProps
(
1
);
uno
::
Sequence
<
beans
::
Property
>
aDocProps
(
1
);
aDocProps
.
getArray
()[
0
]
=
aProp
;
aDocProps
.
getArray
()[
0
]
=
aProp
;
...
@@ -1563,7 +1561,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
...
@@ -1563,7 +1561,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
//xProps.reset(
//xProps.reset(
// new ContentProperties( aUnescapedTitle ) );
// new ContentProperties( aUnescapedTitle ) );
xProps
->
addProperty
(
xProps
->
addProperty
(
OUString
(
"Title"
)
,
"Title"
,
uno
::
makeAny
(
aUnescapedTitle
),
uno
::
makeAny
(
aUnescapedTitle
),
true
);
true
);
}
}
...
@@ -1573,20 +1571,20 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
...
@@ -1573,20 +1571,20 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
xProps
.
reset
(
new
ContentProperties
(
aUnescapedTitle
,
false
)
);
xProps
.
reset
(
new
ContentProperties
(
aUnescapedTitle
,
false
)
);
else
else
xProps
->
addProperty
(
xProps
->
addProperty
(
OUString
(
"Title"
)
,
"Title"
,
uno
::
makeAny
(
aUnescapedTitle
),
uno
::
makeAny
(
aUnescapedTitle
),
true
);
true
);
xProps
->
addProperty
(
xProps
->
addProperty
(
OUString
(
"IsFolder"
)
,
"IsFolder"
,
uno
::
makeAny
(
false
),
uno
::
makeAny
(
false
),
true
);
true
);
xProps
->
addProperty
(
xProps
->
addProperty
(
OUString
(
"IsDocument"
)
,
"IsDocument"
,
uno
::
makeAny
(
true
),
uno
::
makeAny
(
true
),
true
);
true
);
xProps
->
addProperty
(
xProps
->
addProperty
(
OUString
(
"ContentType"
)
,
"ContentType"
,
uno
::
makeAny
(
OUString
(
WEBDAV_CONTENT_TYPE
)
),
uno
::
makeAny
(
OUString
(
WEBDAV_CONTENT_TYPE
)
),
true
);
true
);
}
}
...
@@ -1608,7 +1606,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
...
@@ -1608,7 +1606,7 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
{
{
// Add BaseURI property, if requested.
// Add BaseURI property, if requested.
xProps
->
addProperty
(
xProps
->
addProperty
(
OUString
(
"BaseURI"
)
,
"BaseURI"
,
uno
::
makeAny
(
getBaseURI
(
xResAccess
)
),
uno
::
makeAny
(
getBaseURI
(
xResAccess
)
),
true
);
true
);
}
}
...
@@ -1616,11 +1614,10 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
...
@@ -1616,11 +1614,10 @@ uno::Reference< sdbc::XRow > Content::getPropertyValues(
{
{
// Add CreatableContentsInfo property, if requested.
// Add CreatableContentsInfo property, if requested.
bool
bFolder
=
false
;
bool
bFolder
=
false
;
xProps
->
getValue
(
xProps
->
getValue
(
"IsFolder"
)
OUString
(
"IsFolder"
)
)
>>=
bFolder
;
>>=
bFolder
;
xProps
->
addProperty
(
xProps
->
addProperty
(
OUString
(
"CreatableContentsInfo"
)
,
"CreatableContentsInfo"
,
uno
::
makeAny
(
bFolder
uno
::
makeAny
(
bFolder
?
queryCreatableContentsInfo
()
?
queryCreatableContentsInfo
()
:
uno
::
Sequence
<
ucb
::
ContentInfo
>
()
),
:
uno
::
Sequence
<
ucb
::
ContentInfo
>
()
),
...
@@ -2086,8 +2083,7 @@ uno::Any Content::open(
...
@@ -2086,8 +2083,7 @@ uno::Any Content::open(
// Error: Not a folder!
// Error: Not a folder!
OUStringBuffer
aMsg
;
OUStringBuffer
aMsg
;
aMsg
.
appendAscii
(
"Non-folder resource cannot be "
aMsg
.
append
(
"Non-folder resource cannot be opened as folder! Wrong Open Mode!"
);
"opened as folder! Wrong Open Mode!"
);
ucbhelper
::
cancelCommandExecution
(
ucbhelper
::
cancelCommandExecution
(
uno
::
makeAny
(
uno
::
makeAny
(
...
@@ -2637,23 +2633,19 @@ void Content::transfer(
...
@@ -2637,23 +2633,19 @@ void Content::transfer(
OUString
aScheme
=
sourceURI
.
GetScheme
().
toAsciiLowerCase
();
OUString
aScheme
=
sourceURI
.
GetScheme
().
toAsciiLowerCase
();
if
(
aScheme
==
WEBDAV_URL_SCHEME
)
if
(
aScheme
==
WEBDAV_URL_SCHEME
)
{
{
sourceURI
.
SetScheme
(
sourceURI
.
SetScheme
(
HTTP_URL_SCHEME
);
OUString
(
HTTP_URL_SCHEME
)
);
}
}
else
if
(
aScheme
==
WEBDAVS_URL_SCHEME
)
else
if
(
aScheme
==
WEBDAVS_URL_SCHEME
)
{
{
sourceURI
.
SetScheme
(
sourceURI
.
SetScheme
(
HTTPS_URL_SCHEME
);
OUString
(
HTTPS_URL_SCHEME
)
);
}
}
else
if
(
aScheme
==
DAV_URL_SCHEME
)
else
if
(
aScheme
==
DAV_URL_SCHEME
)
{
{
sourceURI
.
SetScheme
(
sourceURI
.
SetScheme
(
HTTP_URL_SCHEME
);
OUString
(
HTTP_URL_SCHEME
)
);
}
}
else
if
(
aScheme
==
DAVS_URL_SCHEME
)
else
if
(
aScheme
==
DAVS_URL_SCHEME
)
{
{
sourceURI
.
SetScheme
(
sourceURI
.
SetScheme
(
HTTPS_URL_SCHEME
);
OUString
(
HTTPS_URL_SCHEME
)
);
}
}
else
else
{
{
...
@@ -2671,17 +2663,13 @@ void Content::transfer(
...
@@ -2671,17 +2663,13 @@ void Content::transfer(
aScheme
=
targetURI
.
GetScheme
().
toAsciiLowerCase
();
aScheme
=
targetURI
.
GetScheme
().
toAsciiLowerCase
();
if
(
aScheme
==
WEBDAV_URL_SCHEME
)
if
(
aScheme
==
WEBDAV_URL_SCHEME
)
targetURI
.
SetScheme
(
targetURI
.
SetScheme
(
HTTP_URL_SCHEME
);
OUString
(
HTTP_URL_SCHEME
)
);
else
if
(
aScheme
==
WEBDAVS_URL_SCHEME
)
else
if
(
aScheme
==
WEBDAVS_URL_SCHEME
)
targetURI
.
SetScheme
(
targetURI
.
SetScheme
(
HTTPS_URL_SCHEME
);
OUString
(
HTTPS_URL_SCHEME
)
);
else
if
(
aScheme
==
DAV_URL_SCHEME
)
else
if
(
aScheme
==
DAV_URL_SCHEME
)
targetURI
.
SetScheme
(
targetURI
.
SetScheme
(
HTTP_URL_SCHEME
);
OUString
(
HTTP_URL_SCHEME
)
);
else
if
(
aScheme
==
DAVS_URL_SCHEME
)
else
if
(
aScheme
==
DAVS_URL_SCHEME
)
targetURI
.
SetScheme
(
targetURI
.
SetScheme
(
HTTPS_URL_SCHEME
);
OUString
(
HTTPS_URL_SCHEME
)
);
// @@@ This implementation of 'transfer' only works
// @@@ This implementation of 'transfer' only works
// if the source and target are located at same host.
// if the source and target are located at same host.
...
@@ -3286,8 +3274,7 @@ Content::getBaseURI( const std::unique_ptr< DAVResourceAccess > & rResAccess )
...
@@ -3286,8 +3274,7 @@ Content::getBaseURI( const std::unique_ptr< DAVResourceAccess > & rResAccess )
if
(
m_xCachedProps
.
get
()
)
if
(
m_xCachedProps
.
get
()
)
{
{
OUString
aLocation
;
OUString
aLocation
;
m_xCachedProps
->
getValue
(
OUString
(
m_xCachedProps
->
getValue
(
"Content-Location"
)
>>=
aLocation
;
"Content-Location"
)
)
>>=
aLocation
;
if
(
aLocation
.
getLength
()
)
if
(
aLocation
.
getLength
()
)
{
{
try
try
...
...
ucb/source/ucp/webdav/webdavdatasupplier.cxx
Dosyayı görüntüle @
f409daff
...
@@ -426,9 +426,7 @@ bool DataSupplier::getData()
...
@@ -426,9 +426,7 @@ bool DataSupplier::getData()
bool
bFolder
=
false
;
bool
bFolder
=
false
;
const
uno
::
Any
&
rValue
const
uno
::
Any
&
rValue
=
pContentProperties
->
getValue
(
=
pContentProperties
->
getValue
(
"IsFolder"
);
OUString
(
"IsFolder"
)
);
rValue
>>=
bFolder
;
rValue
>>=
bFolder
;
if
(
!
bFolder
)
if
(
!
bFolder
)
...
@@ -442,9 +440,7 @@ bool DataSupplier::getData()
...
@@ -442,9 +440,7 @@ bool DataSupplier::getData()
bool
bDocument
=
false
;
bool
bDocument
=
false
;
const
uno
::
Any
&
rValue
const
uno
::
Any
&
rValue
=
pContentProperties
->
getValue
(
=
pContentProperties
->
getValue
(
"IsDocument"
);
OUString
(
"IsDocument"
)
);
rValue
>>=
bDocument
;
rValue
>>=
bDocument
;
if
(
!
bDocument
)
if
(
!
bDocument
)
...
...
ucb/source/ucp/webdav/webdavprovider.cxx
Dosyayı görüntüle @
f409daff
...
@@ -134,28 +134,28 @@ ContentProvider::queryContent(
...
@@ -134,28 +134,28 @@ ContentProvider::queryContent(
{
{
aURL
=
aURL
.
replaceAt
(
0
,
aURL
=
aURL
.
replaceAt
(
0
,
WEBDAV_URL_SCHEME_LENGTH
,
WEBDAV_URL_SCHEME_LENGTH
,
OUString
(
HTTP_URL_SCHEME
)
);
HTTP_URL_SCHEME
);
bNewId
=
true
;
bNewId
=
true
;
}
}
else
if
(
aScheme
==
WEBDAVS_URL_SCHEME
)
else
if
(
aScheme
==
WEBDAVS_URL_SCHEME
)
{
{
aURL
=
aURL
.
replaceAt
(
0
,
aURL
=
aURL
.
replaceAt
(
0
,
WEBDAVS_URL_SCHEME_LENGTH
,
WEBDAVS_URL_SCHEME_LENGTH
,
OUString
(
HTTPS_URL_SCHEME
)
);
HTTPS_URL_SCHEME
);
bNewId
=
true
;
bNewId
=
true
;
}
}
else
if
(
aScheme
==
DAV_URL_SCHEME
)
else
if
(
aScheme
==
DAV_URL_SCHEME
)
{
{
aURL
=
aURL
.
replaceAt
(
0
,
aURL
=
aURL
.
replaceAt
(
0
,
DAV_URL_SCHEME_LENGTH
,
DAV_URL_SCHEME_LENGTH
,
OUString
(
HTTP_URL_SCHEME
)
);
HTTP_URL_SCHEME
);
bNewId
=
true
;
bNewId
=
true
;
}
}
else
if
(
aScheme
==
DAVS_URL_SCHEME
)
else
if
(
aScheme
==
DAVS_URL_SCHEME
)
{
{
aURL
=
aURL
.
replaceAt
(
0
,
aURL
=
aURL
.
replaceAt
(
0
,
DAVS_URL_SCHEME_LENGTH
,
DAVS_URL_SCHEME_LENGTH
,
OUString
(
HTTPS_URL_SCHEME
)
);
HTTPS_URL_SCHEME
);
bNewId
=
true
;
bNewId
=
true
;
}
}
...
...
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