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