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
75833fdb
Kaydet (Commit)
75833fdb
authored
Mar 06, 2013
tarafından
Ariel Constenla-Haile
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i121857 - Presentation Minimizer: fix filter naming
üst
ef84b27a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
fileopendialog.cxx
sdext/source/minimizer/fileopendialog.cxx
+20
-1
No files found.
sdext/source/minimizer/fileopendialog.cxx
Dosyayı görüntüle @
75833fdb
...
...
@@ -55,6 +55,7 @@
#include <com/sun/star/view/XControlAccess.hpp>
#include <com/sun/star/ucb/InteractiveAugmentedIOException.hpp>
#include <rtl/ustrbuf.hxx>
using
namespace
::
rtl
;
using
namespace
::
com
::
sun
::
star
::
uno
;
...
...
@@ -138,6 +139,13 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxMSF ) :
// mxFilePicker->setDefaultName( );
const
char
filter
[]
=
"*."
;
// the filter title must be formed in the same it is currently done
// in the internal implementation: "UIName (.<extension>)"
rtl
::
OUStringBuffer
aUIName
;
// the filter must be in the form "*.<extension>"
rtl
::
OUStringBuffer
aFilter
;
rtl
::
OUString
aExtension
;
Reference
<
XFilterManager
>
xFilterManager
(
mxFilePicker
,
UNO_QUERY_THROW
);
std
::
vector
<
FilterEntry
>::
iterator
aIter
(
aFilterEntryList
.
begin
()
);
while
(
aIter
!=
aFilterEntryList
.
end
()
)
...
...
@@ -158,7 +166,18 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxMSF ) :
}
if
(
aExtensions
.
getLength
()
)
{
xFilterManager
->
appendFilter
(
aIter
->
maUIName
,
aExtensions
[
0
]
);
aExtension
=
aExtensions
[
0
];
// form the title: "<UIName> (.<extension)"
aUIName
.
append
(
aIter
->
maUIName
);
aUIName
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
" (."
));
aUIName
.
append
(
aExtension
);
aUIName
.
append
(
sal_Unicode
(
')'
)
);
// form the filter: "(*.<extension>)"
aFilter
.
appendAscii
(
RTL_CONSTASCII_STRINGPARAM
(
filter
)
);
aFilter
.
append
(
aExtensions
[
0
]
);
xFilterManager
->
appendFilter
(
aUIName
.
makeStringAndClear
(),
aFilter
.
makeStringAndClear
()
);
if
(
aIter
->
maFlags
&
0x100
)
xFilterManager
->
setCurrentFilter
(
aIter
->
maUIName
);
}
...
...
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