module com { module sun { module star { module i18n {
//! Do NOT insert any new values! //! Locale data number format creation must match these values! //! Number formatter internals must match these values!
/** Numberformatindicestobepassedastheindexargumentto XNumberFormatCode::getFormatCode() or ::com::sun::star::util::XNumberFormatTypes::getFormatIndex().
</dl> </p>
*/
published constants NumberFormatIndex
{ /// Start of simple numerical formats (first format) constshort NUMBER_START = 0; /// The "General" standard format <br/> formatindex="0" constshort NUMBER_STANDARD = NUMBER_START; /// 0 <br/>Integer number <br/> formatindex="1" constshort NUMBER_INT = NUMBER_START+1; /// 0.00 <br/>Decimal number with 2 decimals <br/> formatindex="2" constshort NUMBER_DEC2 = NUMBER_START+2; /// #,##0 <br/>Integer number with group separator <br/> formatindex="3" constshort NUMBER_1000INT = NUMBER_START+3; /// #,##0.00 <br/>Decimal number with group separator <br/> formatindex="4" constshort NUMBER_1000DEC2 = NUMBER_START+4; /// #,##0.00 <br/> In SO5/Win this format was retrieved from the Regional Settings <br/> formatindex="5" constshort NUMBER_SYSTEM = NUMBER_START+5; /// End of simple numerical formats (last format) constshort NUMBER_END = NUMBER_SYSTEM ;
/// Start of Scientific formats (first format) constshort SCIENTIFIC_START = NUMBER_END+1; /// 0.00E+000 <br/>Number in scientific notation with exponent in 3 digit placeholders <br/> formatindex="6" constshort SCIENTIFIC_000E000 = SCIENTIFIC_START; /// 0.00E+00 <br/>Number in scientific notation with exponent in 2 digit placeholders <br/> formatindex="7" constshort SCIENTIFIC_000E00 = SCIENTIFIC_START+1; /// End of Scientific formats (last format) constshort SCIENTIFIC_END = SCIENTIFIC_000E00;
/// Start of Percent formats (first format) constshort PERCENT_START = SCIENTIFIC_END+1; /// 0% <br/>Percentage format, rounded to integer <br/> formatindex="8" constshort PERCENT_INT = PERCENT_START; /// 0.00% <br/>Percentage format, rounded to 2 decimals <br/> formatindex="9" constshort PERCENT_DEC2 = PERCENT_START+1; /// End of Percent formats (last format) constshort PERCENT_END = PERCENT_DEC2;
/// Start of Fraction formats (first format) constshort FRACTION_START = PERCENT_END+1; /// # ?/? <br/>Number with decimal in fraction in 1 digit placeholder <br/> formatindex="10" constshort FRACTION_1 = FRACTION_START; /// # ??/?? <br/>Number with decimal in fraction in 2 digit placeholders <br/> formatindex="11" constshort FRACTION_2 = FRACTION_START+1; /// End of Fraction formats (last format) constshort FRACTION_END = FRACTION_2;
/// Start of Currency formats (first format) constshort CURRENCY_START = FRACTION_END+1; /// #,##0 DM <br/>Integer currency format with group separator <br/> formatindex="12" constshort CURRENCY_1000INT = CURRENCY_START; /// #,##0.00 DM <br/>Decimal currency format with group separator <br/> formatindex="13" constshort CURRENCY_1000DEC2 = CURRENCY_START+1; /// #,##0 DM <br/>Integer currency format with negative in red <br/> formatindex="14" constshort CURRENCY_1000INT_RED = CURRENCY_START+2; /// #,##0.00 DM <br/>Decimal currency format with negative in red <br/> formatindex="15" constshort CURRENCY_1000DEC2_RED = CURRENCY_START+3; /// #,##0.00 DEM <br/>Currency in ISO-4217 abbreviation format <br/> formatindex="16" constshort CURRENCY_1000DEC2_CCC = CURRENCY_START+4; /// #,##0.-- DM <br/>Currency format with dash representing 0 in decimals <br/> formatindex="17" constshort CURRENCY_1000DEC2_DASHED = CURRENCY_START+5; /// End of Currency formats (last format) constshort CURRENCY_END = CURRENCY_1000DEC2_DASHED;
/// Start of Date formats (first format) constshort DATE_START = CURRENCY_END+1; /// 08.10.97 <br/> see also DATE_SYSTEM_... <a href="#SYSTEM">explanation</a> <br/> formatindex="18" constshort DATE_SYSTEM_SHORT = DATE_START; /** Wednesday, 8. October 1997 <br/> see also DATE_SYSTEM_... <a href="#SYSTEM">explanation</a>
<br/> formatindex="19" */ constshort DATE_SYSTEM_LONG = DATE_START+1; /// 08.10.97 <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/> formatindex="20" constshort DATE_SYS_DDMMYY = DATE_START+2; /** 08.10.1997 <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/><b>Note:</b>Wheneditingalreadyexistingdatedatathis formatisforcedinordertoalwayseditthefullcentury.
<br/> formatindex="21" */ constshort DATE_SYS_DDMMYYYY = DATE_START+3; /// 8. Oct 97 <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/> formatindex="22" constshort DATE_SYS_DMMMYY = DATE_START+4; /// 8. Oct 1997 <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/> formatindex="23" constshort DATE_SYS_DMMMYYYY = DATE_START+5; /// 8. Oct. 1997 <br/> DIN/EN <br/> formatindex="24" constshort DATE_DIN_DMMMYYYY = DATE_START+6; /// 8. October 1997 <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/> formatindex="25" constshort DATE_SYS_DMMMMYYYY = DATE_START+7; /// 8. October 1997 <br/> DIN/EN <br/> formatindex="26" constshort DATE_DIN_DMMMMYYYY = DATE_START+8; /// Wed, 8. Oct 97 <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/> formatindex="27" constshort DATE_SYS_NNDMMMYY = DATE_START+9; /// Wed 08.Oct 97 <br/> see also DATE_DEF_... <a href="#DEF">explanation</a> <br/> formatindex="28" constshort DATE_DEF_NNDDMMMYY = DATE_START+10; /// Wed, 8. October 1997 <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/> formatindex="29" constshort DATE_SYS_NNDMMMMYYYY = DATE_START+11; /// Wednesday, 8. October 1997 <br/> formatindex="30" constshort DATE_SYS_NNNNDMMMMYYYY = DATE_START+12; /// 10-08 <br/> DIN/EN <br/> formatindex="31" constshort DATE_DIN_MMDD = DATE_START+13; /// 97-10-08 <br/> DIN/EN <br/> formatindex="32" constshort DATE_DIN_YYMMDD = DATE_START+14; /// 1997-10-08 <br/> DIN/EN/ISO <br/> formatindex="33" constshort DATE_DIN_YYYYMMDD = DATE_START+15; /// 10.97 <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/> formatindex="34" constshort DATE_SYS_MMYY = DATE_START+16; /// 08.Oct <br/> see also DATE_SYS_... <a href="#SYS">explanation</a> <br/> formatindex="35" constshort DATE_SYS_DDMMM = DATE_START+17; /// October <br/> formatindex="36" constshort DATE_MMMM = DATE_START+18; /// 4th quarter 97 <br/> formatindex="37" constshort DATE_QQJJ = DATE_START+19; /// week of year <br/> formatindex="38" constshort DATE_WW = DATE_START+20; /// End of Date formats (last format) constshort DATE_END = DATE_WW;
/// Start of Time formats (first format) constshort TIME_START = DATE_END+1; /// HH:MM <br/>Time format with hour and minute <br/> formatindex="39" constshort TIME_HHMM = TIME_START; /// HH:MM:SS <br/>Time format with hour, minute and second <br/> formatindex="40" constshort TIME_HHMMSS = TIME_START+1; /// HH:MM AM/PM <br/>Time format with hour, minute and morning/afternoon notation <br/> formatindex="41" constshort TIME_HHMMAMPM = TIME_START+2; /// HH:MM:SS AM/PM <br/>Time format with hour, minute, second and morning/afternoon notation <br/> formatindex="42" constshort TIME_HHMMSSAMPM = TIME_START+3; /// [HH]:MM:SS <br/>Time format with amount of hours <br/> formatindex="43" constshort TIME_HH_MMSS = TIME_START+4; /// MM:SS,00 <br/>Time format with second in fraction <br/> formatindex="44" constshort TIME_MMSS00 = TIME_START+5; /// [HH]:MM:SS,00 <br/>Time format with amount of hours and seconds with fraction <br/> formatindex="45" constshort TIME_HH_MMSS00 = TIME_START+6; /// End of Time formats (last format) constshort TIME_END = TIME_HH_MMSS00;
/// Start of DateTime formats (first format) constshort DATETIME_START = TIME_END + 1; /// 08.10.97 01:23 Date/time format <br/> formatindex="46" constshort DATETIME_SYSTEM_SHORT_HHMM = DATETIME_START; /** 08.10.1997 01:23:45 Date/time format with second <br/><b>Note:</b>Wheneditingalreadyexistingdate/timedatathis formatisforcedinordertoalwayseditthefullcentury.
<br/> formatindex="47" */ constshort DATETIME_SYS_DDMMYYYY_HHMMSS= DATETIME_START+1; /// End of DateTime formats (last format) constshort DATETIME_END = DATETIME_SYS_DDMMYYYY_HHMMSS;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.