Overview | Module | Use | Devguide | Index

Constructors' Summary | Constructors' Details

:: com :: sun :: star :: resource ::
unpublished | service StringResourceWithLocation |
Supported Interface XStringResourceWithLocation
Usage Restrictions not published Description specifies a service providing access to a resource string table implementing the XStringResourceWithLocation interface.

Constructors' Summary
create | is used to initialize the object on its creation.

Constructors' Details
create
create( | [in] string | URL,
| [in] boolean | ReadOnly,
| [in] ::com::sun::star::lang::Locale | locale,
| [in] string | BaseName,
| [in] string | Comment,
| [in] ::com::sun::star::task::XInteractionHandler | Handler )
raises( | ::com::sun::star::lang::IllegalArgumentException );
Description is used to initialize the object on its creation. Parameter URL Specifies the location used to load and store - if the ReadOnly state allows it - the string table data. Parameter ReadOnly Specifies if the resource should be read only, see `XStringResourceManager::isReadOnly` Parameter locale Specifies if the locale first to be used as current locale. Internally the `XStringResourceManager::setCurrentLocale` method is called with FindClosestMatch=true. see `XStringResourceManager::setCurrentLocale` Parameter BaseName Base string for the file names used to store the locale data. The locale data is stored in Java properties files also following the corresponding naming scheme. The files will be named like this: "[BaseName]_[Language]_[Country].properties", e.g. "MyBaseName_en_US.properties" If an empty string is passed for BaseName, "strings" will be used as BaseName. Parameter Comment Comment stored first in each properties file followed by a line feed character. The line feed character is added automatically and hasn't to be part of the comment string. The caller is responsible that the passed string is a valid comment in a Java properties file, e.g. "# My strings". The string may be empty. Parameter Handler a ::com::sun::star::task::XInteractionHandler to be passed to ucb. This may be a null interface. Throws ::com::sun::star::lang::IllegalArgumentException if no string or an empty string is passed as URL

Top of Page

Copyright © 2000, 2013 LibreOffice contributors and/or their affiliates. All rights reserved.

LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.

The Document Foundation acknowledges all community members, please find more info at our website.

Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "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 trademark policy.