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
dbcad280
Kaydet (Commit)
dbcad280
authored
Mar 07, 2013
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Renamed the method to something more appropriate...
Change-Id: I4a0a6ab0998f41ce238d0570fba2133b79c8f19e
üst
e4003b67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
26 deletions
+7
-26
typedetection.cxx
filter/source/config/cache/typedetection.cxx
+2
-2
typedetection.hxx
filter/source/config/cache/typedetection.hxx
+5
-24
No files found.
filter/source/config/cache/typedetection.cxx
Dosyayı görüntüle @
dbcad280
...
@@ -400,7 +400,7 @@ void printFlatDetectionList(const char* caption, const FlatDetection& types)
...
@@ -400,7 +400,7 @@ void printFlatDetectionList(const char* caption, const FlatDetection& types)
}
}
FlatDetection
lFlatTypes
;
FlatDetection
lFlatTypes
;
impl_get
Preselection
(
aURL
,
stlDescriptor
,
lFlatTypes
);
impl_get
AllFormatTypes
(
aURL
,
stlDescriptor
,
lFlatTypes
);
aLock
.
clear
();
aLock
.
clear
();
// <- SAFE ----------------------------------
// <- SAFE ----------------------------------
...
@@ -790,7 +790,7 @@ OUString TypeDetection::impl_getTypeFromFilter(const OUString& rFilterName)
...
@@ -790,7 +790,7 @@ OUString TypeDetection::impl_getTypeFromFilter(const OUString& rFilterName)
return
aType
;
return
aType
;
}
}
void
TypeDetection
::
impl_get
Preselection
(
void
TypeDetection
::
impl_get
AllFormatTypes
(
const
util
::
URL
&
aParsedURL
,
comphelper
::
MediaDescriptor
&
rDescriptor
,
FlatDetection
&
rFlatTypes
)
const
util
::
URL
&
aParsedURL
,
comphelper
::
MediaDescriptor
&
rDescriptor
,
FlatDetection
&
rFlatTypes
)
{
{
rFlatTypes
.
clear
();
rFlatTypes
.
clear
();
...
...
filter/source/config/cache/typedetection.hxx
Dosyayı görüntüle @
dbcad280
...
@@ -73,31 +73,12 @@ private:
...
@@ -73,31 +73,12 @@ private:
OUString
impl_getTypeFromFilter
(
const
OUString
&
rFilterName
);
OUString
impl_getTypeFromFilter
(
const
OUString
&
rFilterName
);
/** @short check if a filter or a type was preselected inside the given
/**
MediaDescriptor and validate this information.
* Get all format types that we handle.
@descr Only in case the preselected filter exists and its type registration
seems to be usefully, it would be used realy as valid type detection
result. This method doesnt make any deep detection here. It checks only
if the preselection match to the URL by an URLPattern.
This information has to be added to the given rFlatTypes list too.
The outside code can use it to supress a deep detection then in general.
Because pattern are defined as non detectable at all!
@param pDescriptor
provides any easy-to-use stl interface to the MediaDescriptor.
Note : Its content will be adapted to returned result of this method.
Means: The type/filter entries of it will be actualized or removed.
@param rFlatTypes
the preselected type (or the registered type of a preselected filter)
will be added here as first(!) element. Further we have to provide the
information, if this type match to the given URL by its URLPattern
registration.
*/
*/
void
impl_get
Preselection
(
const
css
::
util
::
URL
&
aParsedURL
,
void
impl_get
AllFormatTypes
(
::
comphelper
::
MediaDescriptor
&
rDescriptor
,
const
com
::
sun
::
star
::
util
::
URL
&
aParsedURL
,
comphelper
::
MediaDescriptor
&
rDescriptor
,
FlatDetection
&
rFlatTypes
);
FlatDetection
&
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