Sophie

Sophie

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

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

<html>
<head>
<title>Singleton OfficeResourceLoader</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="navimainnone">Use</td>
<td class="navimainnone">Devguide</td>
<td class="navimain"><a href="../../../../index-files/index-1.html" class="navimain">Index</a></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">resource</a> :: </p>
</td>
</tr>
<tr>
<td class="title"><table class="title-table" width="99%">
<tr>
<td width="25%" class="title2">unpublished </td>
<td width="50%" class="title">singleton OfficeResourceLoader</td>
<td width="*"/></tr>
</table>
</td>
</tr>
<tr>
<td><dl>
<dt><b>Supported Interface</b></dt>
<dd><a href="XResourceBundleLoader.html">XResourceBundleLoader</a></dd>
</dl>
</td>
</tr>
<tr>
<td><dl>
<dt><b>Description</b></dt>
<dd>describes a <a href="XResourceBundleLoader.html">XResourceBundleLoader</a> which provides access to the OpenOffice.org
 resource files.

 </dd>
<dd><p>An OpenOffice.org installation comes with a number of resource files in an proprietary
 format, located insisde the installation's program/resource directory. The ::OfficeResoureLoader
 singleton (available at a component context as value with the key
 <code>/singletons/com.sun.star.resource.OfficeResourceLoader</code>), provides access to some
 types of resources within those files.</p>

 <p>Clients have to specifiy the resource file base name in the call to
 <a href="XResourceBundleLoader.html">XResourceBundleLoader</a>::<a href="XResourceBundleLoader.html#loadBundle">loadBundle</a> resp. <a href="XResourceBundleLoader.html">XResourceBundleLoader</a>::<a href="XResourceBundleLoader.html#loadBundle_Default">loadBundle_Default</a>
 method. The loader will extent this base name so that the resulting name conforms to the OpenOffice.org
 resource file naming conventions, and look up the respective resource file, for the requested locale,
 in OpenOffice.org's installation.</p>

 <p>The lookup process uses the fallback mechanism as described at the <a href="XResourceBundle.html">XResourceBundle</a> interface,
 except that <code>Locale.getDefault()</code> is not used.</p>

 <p>Resource keys, as passed to the <a href="XResourceBundle.html">XResourceBundle</a>::<a href="XResourceBundle.html#getDirectElement">getDirectElement</a> or
 ::com::sun::star::<a href="../container/module-ix.html">container</a>::<a href="../container/XNameAccess.html">XNameAccess</a>::<a href="../container/XNameAccess.html#getByName">getByName</a>, have the following format:
 <code>&lt;resource_type&gt;:&lt;numeric_identifier&gt;</code>, where <code>&lt;resource_type&gt; specifies
 the type of the requested resource (see below) and <code>&lt;numeric_identifier&gt;</code> is the numeric
 identifier of the resource.</p>

 <p>The following resource types are currently supported:
 <ul>
 <li><em>string</em>: denotes a string resource</li>
 </ul>
 </p>

 <p>Since the numeric resource identifiers are highly build-dependent (e.g. can change with any next
 OpenOffice.org build), you are <strong>strongly</strong> discouraged from using the ::OfficeResoureLoader
 service in a component which targets more than one particular OpenOffice.org build.</p>

 </dd>
<dt><b>Since </b></dt>
<dd>OpenOffice 2.0.3</dd>
</dl>
</td>
</tr>
</table>
<hr>
<hr>
<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>