<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>Usage Restrictions</b></dt> <dd><i>not published</i></dd> <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 inside 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 specify 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><resource_type>:<numeric_identifier></code>, where <code><resource_type> specifies the type of the requested resource (see below) and <code><numeric_identifier></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>OOo 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 © 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved.</p><p class="copyright" align="center">LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.</p><p class="copyright" align="center">The Document Foundation acknowledges all community members, please find more info <a href="http://www.libreoffice.org/about-us/credits/" target="_blank">at our website</a>.<p> </p><p class="copyright" align="center"><a href="http://www.libreoffice.org/privacy" target="_blank">Privacy Policy</a> | <a href="http://www.libreoffice.org/imprint" target="_blank">Impressum (Legal Info)</a> | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (<a href="http://www.libreoffice.org/download/license/" target="_blank">LGPLv3</a>). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our <a href="http://wiki.documentfoundation.org/TradeMark_Policy" target="_blank">trademark policy</a>.</p> </div> <!-- id="adc-idlref" --> </body> </html>