| Type | info |
| Title | i18n Currency2 struct and XLocaleData2 interface |
| Posted by | [EMAIL PROTECTED] |
| Affected | ,i18npool,svtools,unotools |
| Effective from | CWS numbers203 |
Summary
module com { module sun { module star { module i18n {
published service LocaleData
{
+ [optional] interface com::sun::star::i18n::XLocaleData2;
};
+published interface XLocaleData2 : com::sun::star::i18n::XLocaleData
+{
+ sequence< Currency2 > getAllCurrencies2( [in] com::sun::star::lang::Locale aLocale );
+};
+published struct Currency2 : com::sun::star::i18n::Currency
+{
+ boolean LegacyOnly;
+};
}; }; }; };
i18npool/source/localedata/data/locale.dtd:
- <!ATTLIST Locale versionDTD CDATA #FIXED "2.0">
+ <!ATTLIST Locale versionDTD CDATA #FIXED "2.0.3">
<!ELEMENT Currency ...>
+ <!ATTLIST Currency legacyOnly (true|false) #IMPLIED >
<!-- If this Currency element exists only to be able to correctly load legacy
documents and is not selectable in the UI otherwise. Defaults to "false"
if not specified. If this attribute is "true", 'default' and
'usedInCompatibleFormatCodes' must both be "false".
-->
Description
To be able to "know" currencies if loaded from already existing
dopcuments but not offer them in the dialogs anymore, for example if the
currency symbol was wrong, additional currency information was needed.
/**
Access locale specific data.
<p> Derived from
<type scope="::com::sun::star::i18n">XLocaleData</type> and provides
an additional method to return a sequence of all
<type scope="::com::sun::star::i18n">Currency2</type> elements
available for that locale.
@since OOo 2.0.3
*/
published interface XLocaleData2 : com::sun::star::i18n::XLocaleData
{
/** returns all LC_CURRENCY currencies for a locale.
*/
sequence< Currency2 > getAllCurrencies2(
[in] com::sun::star::lang::Locale
aLocale );
};
/**
Symbols, names, and attributes of a specific currency, returned in
a sequence by <member>XLocaleData2::getAllCurrencies2()</member>.
<p> It is derived from
<type scope="::com::sun::star::i18n">Currency</type> and provides an
additional flag for currency entries that are available only for
legacy reasons in context of loaded documents that use them, but
otherwise should not be offered to the user to be selectable.
@see XLocaleData
for links to DTD of XML locale data files.
*/
published struct Currency2 : com::sun::star::i18n::Currency
{
/** If set, the currency and/or its symbol is only to be used in
legacy context.
@since OOo 2.0.3
*/
boolean LegacyOnly;
};
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
