struct Currency in module com::sun::star::i18n::

(Global Index)

Syntax

struct Currency;

Description

Symbols and names of a specific currency.

Returned by XLocaleData::getAllCurrencies() .

Field Summary

ID identifier, for example, dollar .

Symbol currency symbol, for example, $ .

BankSymbol currency abbreviation used by banks and in money exchange, for example, USD .

Name name of the currency, for example, US Dollar .

Default if this currency is the default currency for a given locale.

UsedInCompatibleFormatCodes if this currency is the one used in compatible number format codes with FormatElement::formatIndex values in the range 12..17. Those format codes are used to generate some old style currency format codes for compatibility with StarOffice5 and StarOffice4.

DecimalPlaces the number of decimal places, for example, 2 for US Dollar or 0 for Italian Lira.

Field Details



ID

Syntax

string ID;

Description

identifier, for example, dollar .


Symbol

Syntax

string Symbol;

Description

currency symbol, for example, $ .


BankSymbol

Syntax

string BankSymbol;

Description

currency abbreviation used by banks and in money exchange, for example, USD .


Name

Syntax

string Name;

Description

name of the currency, for example, US Dollar .


Default

Syntax

boolean Default;

Description

if this currency is the default currency for a given locale.


UsedInCompatibleFormatCodes

Syntax

boolean UsedInCompatibleFormatCodes;

Description

if this currency is the one used in compatible number format codes with FormatElement::formatIndex values in the range 12..17. Those format codes are used to generate some old style currency format codes for compatibility with StarOffice5 and StarOffice4.


DecimalPlaces

Syntax

short DecimalPlaces;

Description

the number of decimal places, for example, 2 for US Dollar or 0 for Italian Lira.

Top of Page