interface XTypeDetection in module com::sun::star::document::

(Global Index)

Syntax

interface XTypeDetection : com::sun::star::uno::XInterface ;

Description

support "flat" and "deep" type detection of a given document.

Method Summary

queryTypeByURL return internal type name which is suitable to given URL

queryTypeByDescriptor return internal type name which is suitable to given document properties by a MediaDescriptor

Known Services Which Export this Interface

com::sun::star::document::TypeDetection

Method Details



queryTypeByURL

Syntax

string queryTypeByURL (
string sURL );

Description

return internal type name which is suitable to given URL

We make a "flat" type detection only.


queryTypeByDescriptor

Syntax

string queryTypeByDescriptor (
sequence< com::sun::star::beans::PropertyValue > aDescriptor,
boolean bDeep );

Description

return internal type name which is suitable to given document properties by a MediaDescriptor

These do the same as "queryTypeByURL()" before. As an additional feature, you can specify more document properties and select the detection mode. Available modes are "flat" (bDeep=FALSE) and "deep" (bDeep=TRUE) detection.

Top of Page