(incubating) | The Free and Open Productivity Suite

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for OpenOffice.org version 3.3.

:: com :: sun :: star :: resource ::

unpublished service StringResourceWithStorage
Supported Interface
XStringResourceWithStorage
Usage Restrictions
not published
Description
specifies a service providing access to a resource string table implementing the XStringResourceWithStorage interface.


Constructors' Summary
create is used to initialize the object on its creation.  
Constructors' Details
create
create( [in] ::com::sun::star::embed::XStorage  Storage,
[in] boolean  ReadOnly,
[in] ::com::sun::star::lang::Locale  locale,
[in] string  BaseName,
[in] string  Comment )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
is used to initialize the object on its creation.
Parameter Storage
Specifies the storage 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 sceme. 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 re- sponsible that the passed string is a valid comment in a Java properties file, e.g. "# My strings". The string may be empty.
Throws
::com::sun::star::lang::IllegalArgumentException if a null interface is passed as Storage

 
Top of Page

Apache OpenOffice is an effort undergoing incubation at The Apache Software Foundation (ASF), sponsored by the Apache Incubator. Incubation is required of all newly accepted projects until a further review indicates that the infrastructure, communications, and decision making process have stabilized in a manner consistent with other successful ASF projects. While incubation status is not necessarily a reflection of the completeness or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.

Copyright & License
Apache and the Apache feather logos are trademarks of The Apache Software Foundation. OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.