View | Details | Raw Unified | Return to issue 93503
Collapse All | Expand All

(-)OOO320m19-ori/svtools/source/numbers/zformat.cxx (-8 / +28 lines)
Lines 4128-4141 String SvNumberformat::GetMappedFormatst Link Here
4128
        }
4128
        }
4129
4129
4130
        const SvNumberNatNum& rNum = NumFor[n].GetNatNum();
4130
        const SvNumberNatNum& rNum = NumFor[n].GetNatNum();
4131
        // The Thai T NatNum modifier during Xcl export.
4132
        if (rNum.IsSet() && rNum.GetNatNum() == 1 &&
4133
                rKeywords[NF_KEY_THAI_T].EqualsAscii( "T") &&
4134
                MsLangId::getRealLanguage( rNum.GetLang()) ==
4135
                LANGUAGE_THAI)
4136
        {
4137
            aPrefix += 't';     // must be lowercase, otherwise taken as literal
4138
        }
4139
4131
4140
        USHORT nAnz = NumFor[n].GetnAnz();
4132
        USHORT nAnz = NumFor[n].GetnAnz();
4141
        if ( nSem && (nAnz || aPrefix.Len()) )
4133
        if ( nSem && (nAnz || aPrefix.Len()) )
Lines 4195-4200 String SvNumberformat::GetMappedFormatst Link Here
4195
                                aStr += '"';
4187
                                aStr += '"';
4196
                            }
4188
                            }
4197
                            break;
4189
                            break;
4190
                        case NF_SYMBOLTYPE_CALDEL :
4191
                            if ( pStr[j].EqualsAscii("[~") )
4192
                            {
4193
                                if ( pStr[j+1].EqualsAscii("buddhist") )
4194
                                {
4195
                                    aStr.InsertAscii( "[$-", aStr.Len() );
4196
                                    if ( rNum.IsSet() && rNum.GetNatNum() == 1 &&
4197
                                            MsLangId::getRealLanguage( rNum.GetLang() ) ==
4198
                                            LANGUAGE_THAI )
4199
                                    {
4200
                                        aStr.InsertAscii( "0D07041E", aStr.Len() );
4201
                                    }
4202
                                    else
4203
                                    {
4204
                                        aStr.InsertAscii( "0107041E", aStr.Len() );
4205
                                    }
4206
                                }
4207
                                else  // ignore other calendar
4208
                                {
4209
                                    j++;  // step to skip "]"
4210
                                }
4211
                                j++;
4212
                            }
4213
                            else
4214
                            {
4215
                                aStr += pStr[j];
4216
                            }
4217
                        break;
4198
                        default:
4218
                        default:
4199
                            aStr += pStr[j];
4219
                            aStr += pStr[j];
4200
                    }
4220
                    }

Return to issue 93503