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
bb997c00
Kaydet (Commit)
bb997c00
authored
Kas 18, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
implEnsureURLExtension just returns the first argument, remove it
üst
ca02d728
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
filedlghelper.cxx
sfx2/source/dialog/filedlghelper.cxx
+3
-11
filedlgimpl.hxx
sfx2/source/dialog/filedlgimpl.hxx
+0
-2
No files found.
sfx2/source/dialog/filedlghelper.cxx
Dosyayı görüntüle @
bb997c00
...
...
@@ -1343,14 +1343,6 @@ void FileDialogHelper_Impl::implStartExecute()
}
}
// ------------------------------------------------------------------------
String
FileDialogHelper_Impl
::
implEnsureURLExtension
(
const
String
&
sURL
,
const
String
&
/*sExtension*/
)
{
return
sURL
;
}
// ------------------------------------------------------------------------
void
lcl_saveLastURLs
(
SvStringsDtor
*&
rpURLList
,
::
comphelper
::
SequenceAsVector
<
::
rtl
::
OUString
>&
lLastURLs
)
...
...
@@ -1386,7 +1378,7 @@ void FileDialogHelper_Impl::implGetAndCacheFiles(const uno::Reference< XInterfac
::
sal_Int32
nFiles
=
lFiles
.
getLength
();
for
(
::
sal_Int32
i
=
0
;
i
<
nFiles
;
i
++
)
{
String
*
pURL
=
new
String
(
implEnsureURLExtension
(
lFiles
[
i
],
sExtension
)
);
String
*
pURL
=
new
String
(
lFiles
[
i
]
);
rpURLList
->
Insert
(
pURL
,
rpURLList
->
Count
()
);
}
}
...
...
@@ -1400,7 +1392,7 @@ void FileDialogHelper_Impl::implGetAndCacheFiles(const uno::Reference< XInterfac
if
(
nFiles
==
1
)
{
rpURLList
=
new
SvStringsDtor
;
String
*
pURL
=
new
String
(
implEnsureURLExtension
(
lFiles
[
0
],
sExtension
)
);
String
*
pURL
=
new
String
(
lFiles
[
0
]
);
rpURLList
->
Insert
(
pURL
,
0
);
}
else
...
...
@@ -1418,7 +1410,7 @@ void FileDialogHelper_Impl::implGetAndCacheFiles(const uno::Reference< XInterfac
else
aPath
.
setName
(
lFiles
[
i
]
);
String
*
pURL
=
new
String
(
implEnsureURLExtension
(
aPath
.
GetMainURL
(
INetURLObject
::
NO_DECODE
),
sExtension
)
);
String
*
pURL
=
new
String
(
aPath
.
GetMainURL
(
INetURLObject
::
NO_DECODE
)
);
rpURLList
->
Insert
(
pURL
,
rpURLList
->
Count
()
);
}
}
...
...
sfx2/source/dialog/filedlgimpl.hxx
Dosyayı görüntüle @
bb997c00
...
...
@@ -159,8 +159,6 @@ namespace sfx2
void
implGetAndCacheFiles
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
XInterface
>&
xPicker
,
SvStringsDtor
*&
rpURLList
,
const
SfxFilter
*
pFilter
);
String
implEnsureURLExtension
(
const
String
&
sURL
,
const
String
&
sExtension
);
DECL_LINK
(
TimeOutHdl_Impl
,
Timer
*
);
DECL_LINK
(
HandleEvent
,
FileDialogHelper
*
);
...
...
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