--- offapi/com/sun/star/style/NumberingType.idl.orig 2009-08-26 10:47:04.000000000 +0100 +++ offapi/com/sun/star/style/NumberingType.idl 2009-08-26 11:00:21.000000000 +0100 @@ -464,6 +464,14 @@ */ const short CHARS_CYRILLIC_LOWER_LETTER_N_SR = 51; + //------------------------------------------------------------------------- + /** Numbering in New Tai Lü digits + + @since OOo 3.2 + */ + + const short NUMBER_NEW_TAI_LUE_TAI = 52; + }; //============================================================================= --- i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx.orig 2009-08-26 10:37:51.000000000 +0100 +++ i18npool/source/defaultnumberingprovider/defaultnumberingprovider.cxx 2009-08-26 11:56:19.000000000 +0100 @@ -666,6 +666,11 @@ lcl_formatChars(table_Alphabet_fa, sizeof(table_Alphabet_fa) / sizeof(sal_Unicode), number - 1, result); break; + case NUMBER_NEW_TAI_LUE_TAI: + natNum = NativeNumberMode::NATNUM1; + locale.Language = OUString::createFromAscii("tai"); + break; + default: assert(0); throw IllegalArgumentException(); @@ -753,6 +759,7 @@ {style::NumberingType::CHARS_CYRILLIC_UPPER_LETTER_N_SR, C_CYR_A ", " C_CYR_B ", .., " C_CYR_A S_CYR_A ", " C_CYR_B S_CYR_B ", ... (sr)", LANG_ALL}, {style::NumberingType::CHARS_CYRILLIC_LOWER_LETTER_N_SR, S_CYR_A ", " S_CYR_B ", .., " S_CYR_A S_CYR_A ", " S_CYR_B S_CYR_B ", ... (sr)", LANG_ALL}, {style::NumberingType::CHARS_PERSIAN, NULL, LANG_CTL}, + {style::NumberingType::NUMBER_NEW_TAI_LUE_TAI, NULL, LANG_CTL} }; static const sal_Int32 nSupported_NumberingTypes = sizeof(aSupportedTypes) / sizeof(Supported_NumberingType); /* -----------------------------21.02.01 15:57-------------------------------- --- i18npool/source/nativenumber/nativenumbersupplier.cxx.orig 2009-08-26 10:44:23.000000000 +0100 +++ i18npool/source/nativenumber/nativenumbersupplier.cxx 2009-08-26 12:04:02.000000000 +0100 @@ -466,7 +466,8 @@ "mn", "ne", "dz", - "fa" + "fa", + "tai" }; static sal_Int16 nbOfLocale = sizeof(natnum1Locales)/sizeof(natnum1Locales[0]); @@ -497,7 +498,8 @@ NumberChar_mn, NumberChar_ne, NumberChar_dz, - NumberChar_EastIndic_ar + NumberChar_EastIndic_ar, + NumberChar_tai }; static sal_Int16 sizeof_natnum1 = sizeof(natnum1)/sizeof(natnum1[0]); @@ -512,8 +514,8 @@ }; static sal_Int16 sizeof_natnum2 = sizeof(natnum2)/sizeof(natnum2[0]); -#define isLang(lang) rLocale.Language.equalsAsciiL(lang, 2) -#define isCtry(ctry) rLocale.Country.equalsAsciiL(ctry, 2) +#define isLang(lang) rLocale.Language.equalsAscii(lang) +#define isCtry(ctry) rLocale.Country.equalsAscii(ctry) static sal_Int16 SAL_CALL getLanguageNumber( const Locale& rLocale) { --- i18npool/source/nativenumber/data/numberchar.h.orig 2009-08-26 10:58:03.000000000 +0100 +++ i18npool/source/nativenumber/data/numberchar.h 2009-08-26 11:03:25.000000000 +0100 @@ -63,7 +63,8 @@ static const sal_Int16 NumberChar_he = 28; static const sal_Int16 NumberChar_ne = 29; static const sal_Int16 NumberChar_dz = 30; -static const sal_Int16 NumberChar_Count = 31; +static const sal_Int16 NumberChar_tai = 31; +static const sal_Int16 NumberChar_Count = 32; static sal_Unicode NumberChar[][10] = { // 0 1 2 3 4 5 6 7 8 9 @@ -98,6 +99,7 @@ { 0x0020, 0x05D0, 0x05D1, 0x05D2, 0x05D3, 0x05D4, 0x05D5, 0x05D6, 0x05D7, 0x05D8 }, // Hebrew { 0x0966, 0x0967, 0x0968, 0x0969, 0x096A, 0x096B, 0x096C, 0x096D, 0x096E, 0x096F }, // Nepali { 0x0F20, 0x0F21, 0x0F22, 0x0F23, 0x0F24, 0x0F25, 0x0F26, 0x0F27, 0x0F28, 0x0F29 }, // Dzongkha + { 0x19D0, 0x19D1, 0x19D2, 0x19D3, 0x19D4, 0x19D5, 0x19D6, 0x19D7, 0x19D8, 0x19D9 } // Tai Lü }; static sal_Unicode DecimalChar[] = { @@ -132,6 +134,7 @@ 0x0000, // Hebrew 0x0000, // Nepali 0x0000, // Dzongkha + 0x0000 // Tai Lü }; static sal_Unicode MinusChar[] = { @@ -166,6 +169,7 @@ 0x0000, // Hebrew 0x0000, // Nepali 0x0000, // Dzongkha + 0x0000 // Tai Lü }; static sal_uInt16 SeparatorChar[] = { @@ -200,6 +204,7 @@ 0x0000, // Hebrew 0x0000, // Nepali 0x0000, // Dzongkha + 0x0000 // Tai Lü }; #define NUMBER_ZERO NumberChar[NumberChar_HalfWidth][0] // 0x0030