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

service TypeDetection
Description
capsulate a type detection service and supports access on taht configuration

It's possible to make a "flat" detection wich may use internal configuration data only - or a "deep" detection which use special ExtendedTypeDetection s to look into the document to specify it unambigous. Last mode can be supressed to perform.

Developers Guide
6.2.4 Office Development - Common Application Features - Integrating Import and Export Filters

Exported Interfaces
XTypeDetection
Description
detect resource

Use this interface to get information about type of given document. Return value will be always an internal name of a registered document type. It can be used may on other services (e.g. FilterFactory ) for further things (especialy to get the default filter for it).

::com::sun::star::container::XNameAccess
Description
provides access to complete type configuration

This configuration is organized as a collection of flat data structures. The representation of such data structures will pe represented by the type sequence . Follow properties will be supported:
property name Value type description
UIName [string] localized name of type to show at UI elements
MediaType [string] MIME or content type
ClipboardFormat [string] name of supported clipboard format
URLPattern [sequence< string > ] a list of URL patterns which identify this type
Extensions [sequence< string > ] a list of file extensions which identify this type
DocumentIconID [integer] an ID which present the number of corresponding icon

Note:
All elements of this container will be adressed by his internal type name. This must be an unambigous name.


 
Top of Page