broadcasts each modification made on the date data of the object which
supports this interface.
Description
Interface to access strings in a resource.
The interface is derived from
::com::sun::star::util::XModifyBroadcaster
All registered ::com::sun::star::util::XModifyListener
interfaces will be notified if either the current locale changes or if
a string is added, changed or removed. This usually will only happen if
the implementing object also supports the interface
XStringResourceManager
and is used in the design mode of a Dialog or String table editor.
But also changing the locale at runtime can be supported in this way.
Resolves the passed ResoureID for the current locale. This
locale is set during initalisation of the object implementing
this interface or - in case that also the interface
XStringResourceManager
is supported - by using the XStringResourceManager::setLocale
method.
Resolves the passed ResoureID for a specific locale.
It's not recommended to use this method to get the best
performance as the implementation may be optimized for
the use of the current locale.
Checks if the resource contains an entry for the given ResourceID and locale.
It's not recommended to use this method to get the best
performance as the implementation may be optimized for
the use of the current locale.
Returns a sequence of all valid Resource IDs for a specific locale
It's not recommended to use this method to get the best
performance as the implementation may be optimized for
the use of the current locale.
Resolves the passed ResoureID for the current locale. This
locale is set during initalisation of the object implementing
this interface or - in case that also the interface
XStringResourceManager
is supported - by using the XStringResourceManager::setLocale
method.
Parameter ResourceID
ID to specify the string inside the resource.
The ID can - but not needs to - be a hierarchical
name like "foo.nothing.invalid".
Returns
the localized string for the specified ID
Throws
::com::sun::star::resource::MissingResourceException
if no entry exists for the given ResourceID
Resolves the passed ResoureID for a specific locale.
It's not recommended to use this method to get the best
performance as the implementation may be optimized for
the use of the current locale.
Parameter ResourceID
ID to specify the string inside the resource.
The ID can - but not needs to - be a hierarchical
name like "foo.nothing.invalid".
Parameter locale
The locale the string should be resolved for.
The locale has to match exactly with one of the locales provided by
getLocales. A closest match search is not supported.
Returns
the localized string for the specified ID and Locale
Checks if the resource contains an entry for the given ResourceID and locale.
It's not recommended to use this method to get the best
performance as the implementation may be optimized for
the use of the current locale.
Parameter ResourceID
ID to specify the string inside the resource.
Parameter locale
The locale the entry should be checked for.
The locale has to match exactly with one of the locales provided by
getLocales. A closest match search is not supported.
Returns a sequence of all valid Resource IDs for a specific locale
It's not recommended to use this method to get the best
performance as the implementation may be optimized for
the use of the current locale.
Parameter locale
The locale the ResourceIDs should be returned for.
The locale has to match exactly with one of the locales provided by
getLocales. A closest match search is not supported.