Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > media > main-testing > by-pkgid > 2c50825dd66d0497b96a67f7fab2ee84 > files > 2392

openoffice.org64-devel-doc-2.4.1.10-1mdv2008.1.x86_64.rpm

<html>
<head>
<title>Service TypeDetection</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../idl.css">
</head>
<body>
<div id="adc-idlref">

<a name="_top_"> </a><table class="navimain" border="0" cellpadding="3">
<tr>
<td class="navimain"><a href="../module-ix.html" class="navimain">Overview</a></td>
<td class="navimain"><a href="module-ix.html" class="navimain">Module</a></td>
<td class="navimain"><a href="TypeDetection-xref.html" class="navimain">Use</a></td>
<td class="navimain"><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Integrating_Import_and_Export_Filters" class="navimain">Devguide</a></td>
<td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></td>
</tr>
</table>
<table class="navisub" border="0" cellpadding="0">
<tr>
<td class="navisub">Included Services</td>
<td class="navisub"><a href="#ExportedInterfaces" class="navisub">Exported Interfaces</a></td>
<td class="navisub">Properties' Summary</td>
<td class="navisub">Properties' Details</td>
</tr>
</table>
<hr>
<table border="0" width="100%" cellpadding="5" cellspacing="3" class="title-table" style="margin-bottom:6pt;">
<tr>
<td><p class="namechain"><a href="../../../../module-ix.html" class="namechain">::</a> <a href="../../../module-ix.html" class="namechain">com</a> :: <a href="../../module-ix.html" class="namechain">sun</a> :: <a href="../module-ix.html" class="namechain">star</a> :: <a href="module-ix.html" class="namechain">document</a> :: </p>
</td>
</tr>
<tr>
<td class="title">service TypeDetection</td>
</tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>capsulate a type detection service and provide read/write access on it's configuration data.

 </dd>
<dd><p>
 It's possible to make a "flat" detection wich may use internal configuration
 data only - or a "deep" detection which use special <a href="ExtendedTypeDetection.html">ExtendedTypeDetection</a>
 services to look into the document stream. Last mode can be supressed to perform the operation.
 Of course the results can't be guaranteed then. (e.g. in case the extension was changed)
 </p>
 </dd>
</dl>
<a name="devmanual"> </a><dl>
<dt><b>Developers Guide</b></dt>
<dd><a href="http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Integrating_Import_and_Export_Filters">OfficeDev - Integrating Import and Export Filters</a></dd>
</dl>
</td>
</tr>
</table>
<hr>
<a name="ExportedInterfaces"/><table border="1" width="100%" cellpadding="5" cellspacing="0" class="subtitle">
<tr>
<td class="subtitle" colspan="2">Exported Interfaces</td>
</tr>
<tr>
<td class="imsum_left"><a href="XTypeDetection.html">XTypeDetection</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>can be used to make a flat or deep type detection.

 </dd>
<dd><p>
 Use this interface to get information about the type of the given resource.
 Return value will be always an internal name of a registered document type.
 It can be used may on other services (e.g. ::com::sun::star::<a href="../frame/module-ix.html">frame</a>::<a href="../frame/FrameLoaderFactory.html">FrameLoaderFactory</a>)
 to do further things, which base on it (e.g. to load it into a frame).
 </p>
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XNameAccess.html">XNameAccess</a></td>
<td class="imsum_right"><dl>
<dt><b>Description</b></dt>
<dd>provides read access to the complete set of type configuration data.

 </dd>
<dd><p>
 Every container item is specified as a set of properties and will be
 represented by a sequence< <type scope="com::sun::star::beans">PropertyValue > structure.
 Follow properties are supported:
 (But note: not all of them must be present everytimes!)

 <table border=1>
 <tr>
 <td><strong>Property Name</strong></td>
 <td><strong>Value Type</strong></td>
 <td><strong>Description</strong></td>
 </tr>
 <tr>
 <td><em>Name</em></td>
 <td>[string]</td>
 <td>The internal name is the only value, which makes a container item unique.</td>
 </tr>
 <tr>
 <td><em>UIName</em></td>
 <td>[string]</td>
 <td>It contains the localized name for this type for the current locale.</td>
 </tr>
 <tr>
 <td><em>UINames</em></td>
 <td>[sequence< string >]</td>
 <td>It contains all available localized names for this type. The are organized
 in pairs and represented as a structure of sequence< <type scope="com::sun::star::beans">PropertyValue >.
 The name of such property must be interpreted as locale; it's value as the localized
 type name corresponding to this locale.</td>
 </tr>
 <tr>
 <td><em>MediaType</em></td>
 <td>[string]</td>
 <td>It contains the MIME or content type descriptor. The differences between a MIME type and
 an internal type name was made, to resolve existing ambigities.</td>
 </tr>
 <tr>
 <td><em>ClipboardFormat</em><strong>deprecated!</strong></td>
 <td>[string]</td>
 <td>It was interepreted as an identifier inside clipboard.
 Please use new property ContentFormat instead of this now.</td>
 </tr>
 <tr>
 <td><em>ContentFormat</em></td>
 <td>[string]</td>
 <td>It's and identifier, which is used for a deep format detection.
 An <a href="ExtendedTypeDetection.html">ExtendedTypeDetection</a> use this value to match
 a given content to this type. e.g. It's interpreted as the doc type
 of an XML stream or as an identifier inside a file header.
 </td>
 </tr>
 <tr>
 <td><em>URLPattern</em></td>
 <td>[sequence< string >]</td>
 <td>This list contains different URL patterns, which identify this type.
 E.g. data base contents can be described by an new defined protocol like "sql://select*".
 In combination with a sutable ::com::sun::star::<a href="../frame/module-ix.html">frame</a>::<a href="../frame/FrameLoader.html">FrameLoader</a> or
 <a href="ImportFilter.html">ImportFilter</a>/<a href="ExportFilter.html">ExportFilter</a> it woul be possible then, to
 layout a sql query output into an office frame.</td>
 </tr>
 <tr>
 <td><em>Extensions</em></td>
 <td>[sequence< string >]</td>
 <td>It contains a list of file extensions, which match this type.
 They must be specified as pure extension, without any special signs.
 E.g.: "doc", "html" ... but not ".doc".
 Using of wildcards is allowed but not very usefull. The may resulting
 ambigities with other type registrations can't be resolved anytimes.</td>
 </tr>
 <tr>
 <td><em>DocumentIconID</em></td>
 <td>[integer]</td>
 <td>It's an ID, which present the number of a corresponding icon.</td>
 </tr>
 </table>
 </p>

 <p>
 Note:<br>
 All elements of this container will be adressed by his internal name,
 and it must be an unambigous value.
 </p>
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XNameContainer.html">XNameContainer</a></td>
<td class="imsum_right"><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>optional</i></dd>
<dt><b>Description</b></dt>
<dd>provides a write access to the configuration data.
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XContainerQuery.html">XContainerQuery</a></td>
<td class="imsum_right"><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>optional</i></dd>
<dt><b>Description</b></dt>
<dd>provides search on the configuration data set.

 </dd>
<dd><p>
 Against simple property search it provides some complex algorithms too.
 For further informations please read the SDK documentation.
 </p>
 </dd>
</dl>
</td>
</tr>
<tr>
<td class="imsum_left">::com::sun::star::<a href="../util/module-ix.html">util</a>::<a href="../util/XFlushable.html">XFlushable</a></td>
<td class="imsum_right"><dl>
<dt><b>Usage Restrictions</b></dt>
<dd><i>optional</i></dd>
<dt><b>Description</b></dt>
<dd>can be used to perform container changes.

 </dd>
<dd><p>
 Because the complexness of such configuration set can be very high,
 it seams not very usefull to update the undelying configuration layer
 on every container change request immediatly. Another strategy can be to
 make all changes (adding/changing/removing of items) and call flush at the end.
 That will validate the whole container and reject inconsistent data sets.
 Only in case all made changes was correct, they will be written back to the
 configuration. Further this interface provides the possibelity, that interested
 changes listener can be registered too.
 </p>
 </dd>
</dl>
</td>
</tr>
</table>
<br>&nbsp;<a href="#_top_">Top of Page</a><hr size="3"><p class="copyright" align="center">Copyright &copy; 2008 Sun Microsystems, Inc.</p>

</div> <!-- id="adc-idlref" -->
</body>

</html>