LibreOffice
LibreOffice 24.2 SDK API Reference
|
provides a "deep" filter detection More...
import"XExtendedFilterDetection.idl";
Public Member Functions | |
string | detect ([inout] sequence< com::sun::star::beans::PropertyValue > Descriptor) |
controls agreement of a "flat" TypeDetection with given URL or arguments More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
provides a "deep" filter detection
A "deep" filter detection means looking into the document stream to detect the format of it. Services of type ExtendedTypeDetection must support this interface to be called from generic load mechanism of the office for that.
string detect | ( | [inout] sequence< com::sun::star::beans::PropertyValue > | Descriptor | ) |
controls agreement of a "flat" TypeDetection with given URL or arguments
Registered services in configuration, which support this interface for different mime types, will be called automatically to look into the document stream and decide which format it represent. Add the collected information about detected documents in given MediaDescriptor Descriptor. The decision must be returned as any valid type name (which specifies the detected format) or an empty value for unknown formats.
Descriptor | represent a MediaDescriptor which can be used to get/set information about the detected document |