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
552bebe6
Kaydet (Commit)
552bebe6
authored
May 22, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
When the caller specifies filter type, stick to it and don't overwrite it.
Change-Id: I35a3efc506bbcc33ea4c3d2466929f8227dae102
üst
e5ace9ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
typedetection.cxx
filter/source/config/cache/typedetection.cxx
+12
-7
No files found.
filter/source/config/cache/typedetection.cxx
Dosyayı görüntüle @
552bebe6
...
@@ -143,9 +143,18 @@ TypeDetection::~TypeDetection()
...
@@ -143,9 +143,18 @@ TypeDetection::~TypeDetection()
css
::
uno
::
Reference
<
css
::
util
::
XURLTransformer
>
xParser
(
m_xSMGR
->
createInstance
(
SERVICE_URLTRANSFORMER
),
css
::
uno
::
UNO_QUERY
);
css
::
uno
::
Reference
<
css
::
util
::
XURLTransformer
>
xParser
(
m_xSMGR
->
createInstance
(
SERVICE_URLTRANSFORMER
),
css
::
uno
::
UNO_QUERY
);
xParser
->
parseStrict
(
aURL
);
xParser
->
parseStrict
(
aURL
);
//*******************************************
rtl
::
OUString
aSelectedFilter
=
stlDescriptor
.
getUnpackedValueOrDefault
(
// preselected filter, type or document service?
comphelper
::
MediaDescriptor
::
PROP_FILTERNAME
(),
rtl
::
OUString
());
// use it as first "flat" detected type later!
if
(
!
aSelectedFilter
.
isEmpty
())
{
// Caller specified the filter type. Honor it. Just get the default
// type for that filter, and bail out.
if
(
impl_validateAndSetFilterOnDescriptor
(
stlDescriptor
,
aSelectedFilter
))
return
stlDescriptor
[
comphelper
::
MediaDescriptor
::
PROP_TYPENAME
()].
get
<
rtl
::
OUString
>
();
}
// preselected type or document service? use it as first "flat" detected
// type later!
FlatDetection
lFlatTypes
;
FlatDetection
lFlatTypes
;
impl_getPreselection
(
aURL
,
stlDescriptor
,
lFlatTypes
);
impl_getPreselection
(
aURL
,
stlDescriptor
,
lFlatTypes
);
...
@@ -682,10 +691,6 @@ void TypeDetection::impl_getPreselection(const css::util::URL& aP
...
@@ -682,10 +691,6 @@ void TypeDetection::impl_getPreselection(const css::util::URL& aP
if
(
!
sSelectedType
.
isEmpty
())
if
(
!
sSelectedType
.
isEmpty
())
impl_getPreselectionForType
(
sSelectedType
,
aParsedURL
,
rFlatTypes
);
impl_getPreselectionForType
(
sSelectedType
,
aParsedURL
,
rFlatTypes
);
::
rtl
::
OUString
sSelectedFilter
=
rDescriptor
.
getUnpackedValueOrDefault
(
::
comphelper
::
MediaDescriptor
::
PROP_FILTERNAME
(),
::
rtl
::
OUString
());
if
(
!
sSelectedFilter
.
isEmpty
())
impl_getPreselectionForFilter
(
sSelectedFilter
,
aParsedURL
,
rFlatTypes
);
::
rtl
::
OUString
sSelectedDoc
=
rDescriptor
.
getUnpackedValueOrDefault
(
::
comphelper
::
MediaDescriptor
::
PROP_DOCUMENTSERVICE
(),
::
rtl
::
OUString
());
::
rtl
::
OUString
sSelectedDoc
=
rDescriptor
.
getUnpackedValueOrDefault
(
::
comphelper
::
MediaDescriptor
::
PROP_DOCUMENTSERVICE
(),
::
rtl
::
OUString
());
if
(
!
sSelectedDoc
.
isEmpty
())
if
(
!
sSelectedDoc
.
isEmpty
())
impl_getPreselectionForDocumentService
(
sSelectedDoc
,
aParsedURL
,
rFlatTypes
);
impl_getPreselectionForDocumentService
(
sSelectedDoc
,
aParsedURL
,
rFlatTypes
);
...
...
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