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
a83b3b5d
Kaydet (Commit)
a83b3b5d
authored
Eki 15, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minimizer: *.mini was saved w/o .odp etc. extension (and clean up)
Change-Id: I4626794f7816ae455a392cdc0acbac42c866fff4
üst
4fa1fa93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
24 deletions
+7
-24
fileopendialog.cxx
sdext/source/minimizer/fileopendialog.cxx
+7
-24
No files found.
sdext/source/minimizer/fileopendialog.cxx
Dosyayı görüntüle @
a83b3b5d
...
@@ -46,8 +46,6 @@
...
@@ -46,8 +46,6 @@
#include <com/sun/star/view/XControlAccess.hpp>
#include <com/sun/star/view/XControlAccess.hpp>
#include <com/sun/star/ucb/InteractiveAugmentedIOException.hpp>
#include <com/sun/star/ucb/InteractiveAugmentedIOException.hpp>
#include <rtl/ustrbuf.hxx>
using
namespace
::
rtl
;
using
namespace
::
rtl
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
uno
;
using
namespace
::
com
::
sun
::
star
::
lang
;
using
namespace
::
com
::
sun
::
star
::
lang
;
...
@@ -140,29 +138,14 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxContext
...
@@ -140,29 +138,14 @@ FileOpenDialog::FileOpenDialog( const Reference< XComponentContext >& rxContext
}
}
if
(
aExtensions
.
getLength
()
)
if
(
aExtensions
.
getLength
()
)
{
{
OUString
aExtension
=
aExtensions
[
0
];
// The filter title must be formed in the same way it is
// currently done in the internal implementation:
const
char
filter
[]
=
"*."
;
OUString
aTitle
(
// the filter title must be formed in the same it is currently done
aIter
->
maUIName
+
" (."
+
aExtensions
[
0
]
+
")"
);
// in the internal implementation: "UIName (.<extension>)"
OUString
aFilter
(
"*."
+
aExtensions
[
0
]);
OUStringBuffer
aUIName
;
mxFilePicker
->
appendFilter
(
aTitle
,
aFilter
);
// the filter must be in the form "*.<extension>"
OUStringBuffer
aFilter
;
// 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
]
);
mxFilePicker
->
appendFilter
(
aUIName
.
makeStringAndClear
(),
aFilter
.
makeStringAndClear
()
);
if
(
aIter
->
maFlags
&
0x100
)
if
(
aIter
->
maFlags
&
0x100
)
mxFilePicker
->
setCurrentFilter
(
aIter
->
maUIName
);
mxFilePicker
->
setCurrentFilter
(
aTitle
);
}
}
}
}
}
}
...
...
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