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
28f3464a
Kaydet (Commit)
28f3464a
authored
Agu 18, 2015
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ConvertSystemPathToURL->getFileURLFromSystemPath
Change-Id: I1c60c60f9b5318626f42e33091920a4404fb6d1c
üst
75a8b1cf
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
7 additions
and
17 deletions
+7
-17
hldocntp.cxx
cui/source/dialogs/hldocntp.cxx
+1
-1
hldoctp.cxx
cui/source/dialogs/hldoctp.cxx
+1
-1
localfilehelper.hxx
include/unotools/localfilehelper.hxx
+0
-1
pptin.cxx
sd/source/filter/ppt/pptin.cxx
+2
-2
linkmgr2.cxx
sfx2/source/appl/linkmgr2.cxx
+2
-1
inettbc.cxx
svtools/source/control/inettbc.cxx
+1
-1
localfilehelper.cxx
unotools/source/ucbhelper/localfilehelper.cxx
+0
-10
No files found.
cui/source/dialogs/hldocntp.cxx
Dosyayı görüntüle @
28f3464a
...
@@ -408,7 +408,7 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl)
...
@@ -408,7 +408,7 @@ IMPL_LINK_NOARG(SvxHyperlinkNewDocTp, ClickNewHdl_Impl)
OUString
aStrURL
;
OUString
aStrURL
;
OUString
aTempStrURL
(
m_pCbbPath
->
GetText
()
);
OUString
aTempStrURL
(
m_pCbbPath
->
GetText
()
);
utl
::
LocalFileHelper
::
ConvertSystemPathToURL
(
aTempStrURL
,
aStrURL
);
osl
::
FileBase
::
getFileURLFromSystemPath
(
aTempStrURL
,
aStrURL
);
OUString
aStrPath
=
aStrURL
;
OUString
aStrPath
=
aStrURL
;
bool
bZeroPath
=
aStrPath
.
isEmpty
();
bool
bZeroPath
=
aStrPath
.
isEmpty
();
...
...
cui/source/dialogs/hldoctp.cxx
Dosyayı görüntüle @
28f3464a
...
@@ -127,7 +127,7 @@ OUString SvxHyperlinkDocTp::GetCurrentURL ()
...
@@ -127,7 +127,7 @@ OUString SvxHyperlinkDocTp::GetCurrentURL ()
if
(
aURL
.
GetProtocol
()
!=
INetProtocol
::
NotValid
)
// maybe the path is already a valid
if
(
aURL
.
GetProtocol
()
!=
INetProtocol
::
NotValid
)
// maybe the path is already a valid
aStrURL
=
aStrPath
;
// hyperlink, then we can use this path directly
aStrURL
=
aStrPath
;
// hyperlink, then we can use this path directly
else
else
utl
::
LocalFileHelper
::
ConvertSystemPathToURL
(
aStrPath
,
aStrURL
);
osl
::
FileBase
::
getFileURLFromSystemPath
(
aStrPath
,
aStrURL
);
//#105788# always create a URL even if it is not valid
//#105788# always create a URL even if it is not valid
if
(
aStrURL
==
aEmptyStr
)
if
(
aStrURL
==
aEmptyStr
)
...
...
include/unotools/localfilehelper.hxx
Dosyayı görüntüle @
28f3464a
...
@@ -35,7 +35,6 @@ namespace utl
...
@@ -35,7 +35,6 @@ namespace utl
Returning sal_True and an empty URL means that the URL doesn't point to a local file.
Returning sal_True and an empty URL means that the URL doesn't point to a local file.
*/
*/
static
bool
ConvertPhysicalNameToURL
(
const
OUString
&
rName
,
OUString
&
rReturn
);
static
bool
ConvertPhysicalNameToURL
(
const
OUString
&
rName
,
OUString
&
rReturn
);
static
bool
ConvertSystemPathToURL
(
const
OUString
&
rName
,
OUString
&
rReturn
);
/**
/**
Converts a "UCB compatible" URL into a "physical" file name.
Converts a "UCB compatible" URL into a "physical" file name.
...
...
sd/source/filter/ppt/pptin.cxx
Dosyayı görüntüle @
28f3464a
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
*/
*/
#include <editeng/numitem.hxx>
#include <editeng/numitem.hxx>
#include <osl/file.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <unotools/ucbstreamhelper.hxx>
#include <vcl/wrkwin.hxx>
#include <vcl/wrkwin.hxx>
#include <svl/urihelper.hxx>
#include <svl/urihelper.hxx>
...
@@ -2066,7 +2066,7 @@ void ImplSdPPTImport::FillSdAnimationInfo( SdAnimationInfo* pInfo, PptInteractiv
...
@@ -2066,7 +2066,7 @@ void ImplSdPPTImport::FillSdAnimationInfo( SdAnimationInfo* pInfo, PptInteractiv
OUString
aBookmarkURL
(
pInfo
->
GetBookmark
()
);
OUString
aBookmarkURL
(
pInfo
->
GetBookmark
()
);
INetURLObject
aURL
(
pPtr
->
aTarget
);
INetURLObject
aURL
(
pPtr
->
aTarget
);
if
(
INetProtocol
::
NotValid
==
aURL
.
GetProtocol
()
)
if
(
INetProtocol
::
NotValid
==
aURL
.
GetProtocol
()
)
utl
::
LocalFileHelper
::
ConvertSystemPathToURL
(
pPtr
->
aTarget
,
aBookmarkURL
);
osl
::
FileBase
::
getFileURLFromSystemPath
(
pPtr
->
aTarget
,
aBookmarkURL
);
if
(
aBookmarkURL
.
isEmpty
()
)
if
(
aBookmarkURL
.
isEmpty
()
)
aBookmarkURL
=
URIHelper
::
SmartRel2Abs
(
INetURLObject
(
aBaseURL
),
pPtr
->
aTarget
,
URIHelper
::
GetMaybeFileHdl
(),
true
);
aBookmarkURL
=
URIHelper
::
SmartRel2Abs
(
INetURLObject
(
aBaseURL
),
pPtr
->
aTarget
,
URIHelper
::
GetMaybeFileHdl
(),
true
);
pInfo
->
SetBookmark
(
aBookmarkURL
);
pInfo
->
SetBookmark
(
aBookmarkURL
);
...
...
sfx2/source/appl/linkmgr2.cxx
Dosyayı görüntüle @
28f3464a
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include <sfx2/linkmgr.hxx>
#include <sfx2/linkmgr.hxx>
#include <com/sun/star/document/UpdateDocMode.hpp>
#include <com/sun/star/document/UpdateDocMode.hpp>
#include <osl/file.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/objsh.hxx>
#include <svl/urihelper.hxx>
#include <svl/urihelper.hxx>
#include <sot/formats.hxx>
#include <sot/formats.hxx>
...
@@ -564,7 +565,7 @@ OUString lcl_DDE_RelToAbs( const OUString& rTopic, const OUString& rBaseURL )
...
@@ -564,7 +565,7 @@ OUString lcl_DDE_RelToAbs( const OUString& rTopic, const OUString& rBaseURL )
OUString
sRet
;
OUString
sRet
;
INetURLObject
aURL
(
rTopic
);
INetURLObject
aURL
(
rTopic
);
if
(
INetProtocol
::
NotValid
==
aURL
.
GetProtocol
()
)
if
(
INetProtocol
::
NotValid
==
aURL
.
GetProtocol
()
)
utl
::
LocalFileHelper
::
ConvertSystemPathToURL
(
rTopic
,
sRet
);
osl
::
FileBase
::
getFileURLFromSystemPath
(
rTopic
,
sRet
);
if
(
sRet
.
isEmpty
()
)
if
(
sRet
.
isEmpty
()
)
sRet
=
URIHelper
::
SmartRel2Abs
(
INetURLObject
(
rBaseURL
),
rTopic
,
URIHelper
::
GetMaybeFileHdl
(),
true
);
sRet
=
URIHelper
::
SmartRel2Abs
(
INetURLObject
(
rBaseURL
),
rTopic
,
URIHelper
::
GetMaybeFileHdl
(),
true
);
return
sRet
;
return
sRet
;
...
...
svtools/source/control/inettbc.cxx
Dosyayı görüntüle @
28f3464a
...
@@ -538,7 +538,7 @@ OUString SvtURLBox::ParseSmart( const OUString& _aText, const OUString& _aBaseUR
...
@@ -538,7 +538,7 @@ OUString SvtURLBox::ParseSmart( const OUString& _aText, const OUString& _aBaseUR
else
else
{
{
OUString
aTmpMatch
;
OUString
aTmpMatch
;
::
utl
::
LocalFileHelper
::
ConvertSystemPathToURL
(
aText
,
aTmpMatch
);
osl
::
FileBase
::
getFileURLFromSystemPath
(
aText
,
aTmpMatch
);
aMatch
=
aTmpMatch
;
aMatch
=
aTmpMatch
;
}
}
...
...
unotools/source/ucbhelper/localfilehelper.cxx
Dosyayı görüntüle @
28f3464a
...
@@ -36,16 +36,6 @@ using namespace ::com::sun::star::ucb;
...
@@ -36,16 +36,6 @@ using namespace ::com::sun::star::ucb;
namespace
utl
namespace
utl
{
{
bool
LocalFileHelper
::
ConvertSystemPathToURL
(
const
OUString
&
rName
,
OUString
&
rReturn
)
{
bool
ok
=
osl
::
FileBase
::
getFileURLFromSystemPath
(
rName
,
rReturn
)
==
osl
::
FileBase
::
E_None
;
if
(
!
ok
)
{
rReturn
.
clear
();
}
return
ok
;
}
bool
LocalFileHelper
::
ConvertPhysicalNameToURL
(
const
OUString
&
rName
,
OUString
&
rReturn
)
bool
LocalFileHelper
::
ConvertPhysicalNameToURL
(
const
OUString
&
rName
,
OUString
&
rReturn
)
{
{
bool
ok
=
osl
::
FileBase
::
getFileURLFromSystemPath
(
rName
,
rReturn
)
bool
ok
=
osl
::
FileBase
::
getFileURLFromSystemPath
(
rName
,
rReturn
)
...
...
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