1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef __com_sun_star_i18n_NativeNumberMode_idl__
21 #define __com_sun_star_i18n_NativeNumberMode_idl__
24 module com
{ module sun
{ module star
{ module i18n
{
29 XExtendedCalendar::getDisplayString() and the
30 XNativeNumberSupplier methods.
32 <p> The constants have different meanings if used with different
33 locales. However, NATNUM1 always tries to convert to
34 a string matching the native number mode of the corresponding
37 <p> Where available, the corresponding Microsoft Excel (tm) DBNum
38 number format code modifier is listed. </p>
40 <p> Modifiers supported by XExtendedCalendar::getDisplayString() are
41 marked with CAL: for the specific language and the corresponding
42 DBNum modifier and the NatNum values used for Y/M/D are listed </p>
47 published constants NativeNumberMode
49 /** Transliteration to ASCII Arabic digits.
50 Try to convert any native number string to ASCII.
51 If already ASCII it remains ASCII.
53 const short NATNUM0
= 0;
55 /** Transliteration in <br/>
56 Chinese: Chinese lower case characters; CAL: 1/7/7 [DBNum1] <br/>
57 Japanese: short Kanji characters [DBNum1]; CAL: 1/4/4 [DBNum1] <br/>
58 Korean: Korean lower case characters [DBNum1]; CAL: 1/7/7 [DBNum1] <br/>
59 Thai: Thai characters <br/>
60 Arabic: Indic characters <br/>
61 Indic: Indic characters
63 const short NATNUM1
= 1;
65 /** Transliteration in <br/>
66 Chinese: Chinese upper case characters; CAL: 2/8/8 [DBNum2] <br/>
67 Japanese: traditional Kanji characters; CAL: 2/5/5 [DBNum2] <br/>
68 Korean: Korean upper case characters [DBNum2]; CAL: 2/8/8 [DBNum2]
70 const short NATNUM2
= 2;
72 /** Transliteration in <br/>
73 Chinese: fullwidth Arabic digits; CAL: 3/3/3 [DBNum3] <br/>
74 Japanese: fullwidth Arabic digits; CAL: 3/3/3 [DBNum3] <br/>
75 Korean: fullwidth Arabic digits [DBNum3]; CAL: 3/3/3 [DBNum3]
77 const short NATNUM3
= 3;
79 /** Transliteration in <br/>
80 Chinese: lower case text [DBNum1] <br/>
81 Japanese: modern long Kanji text [DBNum2] <br/>
82 Korean: formal lower case text
84 const short NATNUM4
= 4;
86 /** Transliteration in <br/>
87 Chinese: Chinese upper case text [DBNum2] <br/>
88 Japanese: traditional long Kanji text [DBNum3] <br/>
89 Korean: formal upper case text
91 const short NATNUM5
= 5;
93 /** Transliteration in <br/>
94 Chinese: fullwidth text [DBNum3] <br/>
95 Japanese: fullwidth text <br/>
96 Korean: fullwidth text
98 const short NATNUM6
= 6;
100 /** Transliteration in <br/>
101 Chinese: short lower case text <br/>
102 Japanese: modern short Kanji text <br/>
103 Korean: informal lower case text
105 const short NATNUM7
= 7;
107 /** Transliteration in <br/>
108 Chinese: short upper case text <br/>
109 Japanese: traditional short Kanji text [DBNum4] <br/>
110 Korean: informal upper case text
112 const short NATNUM8
= 8;
114 /** Transliteration in <br/>
115 Korean: Hangul characters
117 const short NATNUM9
= 9;
119 /** Transliteration in <br/>
120 Korean: formal Hangul text [DBNum4]; CAL: 9/11/11 [DBNum4]
122 const short NATNUM10
= 10;
124 /** Transliteration in <br/>
125 Korean: informal Hangul text
127 const short NATNUM11
= 11;
135 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */