Kaydet (Commit) dbcad280 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Renamed the method to something more appropriate...

Change-Id: I4a0a6ab0998f41ce238d0570fba2133b79c8f19e
üst e4003b67
...@@ -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_getPreselection(aURL, stlDescriptor, lFlatTypes); impl_getAllFormatTypes(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_getPreselection( void TypeDetection::impl_getAllFormatTypes(
const util::URL& aParsedURL, comphelper::MediaDescriptor& rDescriptor, FlatDetection& rFlatTypes) const util::URL& aParsedURL, comphelper::MediaDescriptor& rDescriptor, FlatDetection& rFlatTypes)
{ {
rFlatTypes.clear(); rFlatTypes.clear();
......
...@@ -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_getPreselection(const css::util::URL& aParsedURL , void impl_getAllFormatTypes(
::comphelper::MediaDescriptor& rDescriptor, const com::sun::star::util::URL& aParsedURL, comphelper::MediaDescriptor& rDescriptor,
FlatDetection& rFlatTypes ); FlatDetection& rFlatTypes);
//--------------------------------------- //---------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment