1d1766043SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12d1766043SAndrew Rist *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19d1766043SAndrew Rist *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_i18n_NativeNumberMode_idl__
25cdf0e10cSrcweir#define __com_sun_star_i18n_NativeNumberMode_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir//=============================================================================
28cdf0e10cSrcweir
29cdf0e10cSrcweirmodule com { module sun { module star { module i18n {
30cdf0e10cSrcweir
31cdf0e10cSrcweir//=============================================================================
32cdf0e10cSrcweir
33cdf0e10cSrcweir/**
34cdf0e10cSrcweir    Constants to use with
35cdf0e10cSrcweir    <member>XExtendedCalendar::getDisplayString()</member> and the
36cdf0e10cSrcweir    <type>XNativeNumberSupplier</type> methods.
37cdf0e10cSrcweir
38cdf0e10cSrcweir    <p> The constants have different meanings if used with different
39cdf0e10cSrcweir    locales. However, <const>NATNUM1</const> always tries to convert to
40cdf0e10cSrcweir    a string matching the native number mode of the corresponding
41cdf0e10cSrcweir    locale. </p>
42cdf0e10cSrcweir
43cdf0e10cSrcweir    <p> Where available, the corresponding Microsoft Excel (tm) DBNum
44cdf0e10cSrcweir    number format code modifier is listed. </p>
45cdf0e10cSrcweir
46cdf0e10cSrcweir    <p> Modifiers supported by XExtendedCalendar::getDisplayString() are
47cdf0e10cSrcweir    marked with CAL: for the specific language and the corresponding
48cdf0e10cSrcweir    DBNum modifier and the NatNum values used for Y/M/D are listed </p>
49cdf0e10cSrcweir
50*d695a2a0SJürgen Schmidt	 @since OpenOffice 1.1.2
51cdf0e10cSrcweir */
52cdf0e10cSrcweir
53cdf0e10cSrcweirpublished constants NativeNumberMode
54cdf0e10cSrcweir{
55cdf0e10cSrcweir    /** Transliteration to ASCII Arabic digits.
56cdf0e10cSrcweir        Try to convert any native number string to ASCII.
57cdf0e10cSrcweir        If already ASCII it remains ASCII.
58cdf0e10cSrcweir     */
59cdf0e10cSrcweir    const short NATNUM0     = 0;
60cdf0e10cSrcweir
61cdf0e10cSrcweir    /** Transliteration in <br/>
62cdf0e10cSrcweir        Chinese:    Chinese lower case characters; CAL: 1/7/7 [DBNum1] <br/>
63cdf0e10cSrcweir        Japanese:   short Kanji characters [DBNum1]; CAL: 1/4/4 [DBNum1] <br/>
64cdf0e10cSrcweir        Korean:     Korean lower case characters [DBNum1]; CAL: 1/7/7 [DBNum1] <br/>
65cdf0e10cSrcweir        Thai:       Thai characters <br/>
66cdf0e10cSrcweir        Arabic:     Indic characters <br/>
67cdf0e10cSrcweir        Indic:      Indic characters
68cdf0e10cSrcweir     */
69cdf0e10cSrcweir    const short NATNUM1     = 1;
70cdf0e10cSrcweir
71cdf0e10cSrcweir    /** Transliteration in <br/>
72cdf0e10cSrcweir        Chinese:    Chinese upper case characters; CAL: 2/8/8 [DBNum2] <br/>
73cdf0e10cSrcweir        Japanese:   traditional Kanji characters; CAL: 2/5/5 [DBNum2] <br/>
74cdf0e10cSrcweir        Korean:     Korean upper case characters [DBNum2]; CAL: 2/8/8 [DBNum2]
75cdf0e10cSrcweir     */
76cdf0e10cSrcweir    const short NATNUM2     = 2;
77cdf0e10cSrcweir
78cdf0e10cSrcweir    /** Transliteration in <br/>
79cdf0e10cSrcweir        Chinese:    fullwidth Arabic digits; CAL: 3/3/3 [DBNum3] <br/>
80cdf0e10cSrcweir        Japanese:   fullwidth Arabic digits; CAL: 3/3/3 [DBNum3] <br/>
81cdf0e10cSrcweir        Korean:     fullwidth Arabic digits [DBNum3]; CAL: 3/3/3 [DBNum3]
82cdf0e10cSrcweir     */
83cdf0e10cSrcweir    const short NATNUM3     = 3;
84cdf0e10cSrcweir
85cdf0e10cSrcweir    /** Transliteration in <br/>
86cdf0e10cSrcweir        Chinese:    lower case text [DBNum1] <br/>
87cdf0e10cSrcweir        Japanese:   modern long Kanji text [DBNum2] <br/>
88cdf0e10cSrcweir        Korean:     formal lower case text
89cdf0e10cSrcweir     */
90cdf0e10cSrcweir    const short NATNUM4     = 4;
91cdf0e10cSrcweir
92cdf0e10cSrcweir    /** Transliteration in <br/>
93cdf0e10cSrcweir        Chinese:    Chinese upper case text [DBNum2] <br/>
94cdf0e10cSrcweir        Japanese:   traditional long Kanji text [DBNum3] <br/>
95cdf0e10cSrcweir        Korean:     formal upper case text
96cdf0e10cSrcweir     */
97cdf0e10cSrcweir    const short NATNUM5     = 5;
98cdf0e10cSrcweir
99cdf0e10cSrcweir    /** Transliteration in <br/>
100cdf0e10cSrcweir        Chinese:    fullwidth text [DBNum3] <br/>
101cdf0e10cSrcweir        Japanese:   fullwidth text <br/>
102cdf0e10cSrcweir        Korean:     fullwidth text
103cdf0e10cSrcweir     */
104cdf0e10cSrcweir    const short NATNUM6     = 6;
105cdf0e10cSrcweir
106cdf0e10cSrcweir    /** Transliteration in <br/>
107cdf0e10cSrcweir        Chinese:    short lower case text <br/>
108cdf0e10cSrcweir        Japanese:   modern short Kanji text <br/>
109cdf0e10cSrcweir        Korean:     informal lower case text
110cdf0e10cSrcweir     */
111cdf0e10cSrcweir    const short NATNUM7     = 7;
112cdf0e10cSrcweir
113cdf0e10cSrcweir    /** Transliteration in <br/>
114cdf0e10cSrcweir        Chinese:    short upper case text <br/>
115cdf0e10cSrcweir        Japanese:   traditional short Kanji text [DBNum4] <br/>
116cdf0e10cSrcweir        Korean:     informal upper case text
117cdf0e10cSrcweir     */
118cdf0e10cSrcweir    const short NATNUM8     = 8;
119cdf0e10cSrcweir
120cdf0e10cSrcweir    /** Transliteration in <br/>
121cdf0e10cSrcweir        Korean:     Hangul characters
122cdf0e10cSrcweir     */
123cdf0e10cSrcweir    const short NATNUM9     = 9;
124cdf0e10cSrcweir
125cdf0e10cSrcweir    /** Transliteration in <br/>
126cdf0e10cSrcweir        Korean:     formal Hangul text [DBNum4]; CAL: 9/11/11 [DBNum4]
127cdf0e10cSrcweir     */
128cdf0e10cSrcweir    const short NATNUM10    = 10;
129cdf0e10cSrcweir
130cdf0e10cSrcweir    /** Transliteration in <br/>
131cdf0e10cSrcweir        Korean:     informal Hangul text
132cdf0e10cSrcweir      */
133cdf0e10cSrcweir    const short NATNUM11    = 11;
134cdf0e10cSrcweir
135cdf0e10cSrcweir};
136cdf0e10cSrcweir
137cdf0e10cSrcweir//=============================================================================
138cdf0e10cSrcweir}; }; }; };
139cdf0e10cSrcweir
140cdf0e10cSrcweir#endif
141