1*cdf0e10cSrcweir/************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir#ifndef __com_sun_star_i18n_NativeNumberMode_idl__ 29*cdf0e10cSrcweir#define __com_sun_star_i18n_NativeNumberMode_idl__ 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir//============================================================================= 32*cdf0e10cSrcweir 33*cdf0e10cSrcweirmodule com { module sun { module star { module i18n { 34*cdf0e10cSrcweir 35*cdf0e10cSrcweir//============================================================================= 36*cdf0e10cSrcweir 37*cdf0e10cSrcweir/** 38*cdf0e10cSrcweir Constants to use with 39*cdf0e10cSrcweir <member>XExtendedCalendar::getDisplayString()</member> and the 40*cdf0e10cSrcweir <type>XNativeNumberSupplier</type> methods. 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir <p> The constants have different meanings if used with different 43*cdf0e10cSrcweir locales. However, <const>NATNUM1</const> always tries to convert to 44*cdf0e10cSrcweir a string matching the native number mode of the corresponding 45*cdf0e10cSrcweir locale. </p> 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir <p> Where available, the corresponding Microsoft Excel (tm) DBNum 48*cdf0e10cSrcweir number format code modifier is listed. </p> 49*cdf0e10cSrcweir 50*cdf0e10cSrcweir <p> Modifiers supported by XExtendedCalendar::getDisplayString() are 51*cdf0e10cSrcweir marked with CAL: for the specific language and the corresponding 52*cdf0e10cSrcweir DBNum modifier and the NatNum values used for Y/M/D are listed </p> 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir @since OOo 1.1.2 55*cdf0e10cSrcweir */ 56*cdf0e10cSrcweir 57*cdf0e10cSrcweirpublished constants NativeNumberMode 58*cdf0e10cSrcweir{ 59*cdf0e10cSrcweir /** Transliteration to ASCII Arabic digits. 60*cdf0e10cSrcweir Try to convert any native number string to ASCII. 61*cdf0e10cSrcweir If already ASCII it remains ASCII. 62*cdf0e10cSrcweir */ 63*cdf0e10cSrcweir const short NATNUM0 = 0; 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir /** Transliteration in <br/> 66*cdf0e10cSrcweir Chinese: Chinese lower case characters; CAL: 1/7/7 [DBNum1] <br/> 67*cdf0e10cSrcweir Japanese: short Kanji characters [DBNum1]; CAL: 1/4/4 [DBNum1] <br/> 68*cdf0e10cSrcweir Korean: Korean lower case characters [DBNum1]; CAL: 1/7/7 [DBNum1] <br/> 69*cdf0e10cSrcweir Thai: Thai characters <br/> 70*cdf0e10cSrcweir Arabic: Indic characters <br/> 71*cdf0e10cSrcweir Indic: Indic characters 72*cdf0e10cSrcweir */ 73*cdf0e10cSrcweir const short NATNUM1 = 1; 74*cdf0e10cSrcweir 75*cdf0e10cSrcweir /** Transliteration in <br/> 76*cdf0e10cSrcweir Chinese: Chinese upper case characters; CAL: 2/8/8 [DBNum2] <br/> 77*cdf0e10cSrcweir Japanese: traditional Kanji characters; CAL: 2/5/5 [DBNum2] <br/> 78*cdf0e10cSrcweir Korean: Korean upper case characters [DBNum2]; CAL: 2/8/8 [DBNum2] 79*cdf0e10cSrcweir */ 80*cdf0e10cSrcweir const short NATNUM2 = 2; 81*cdf0e10cSrcweir 82*cdf0e10cSrcweir /** Transliteration in <br/> 83*cdf0e10cSrcweir Chinese: fullwidth Arabic digits; CAL: 3/3/3 [DBNum3] <br/> 84*cdf0e10cSrcweir Japanese: fullwidth Arabic digits; CAL: 3/3/3 [DBNum3] <br/> 85*cdf0e10cSrcweir Korean: fullwidth Arabic digits [DBNum3]; CAL: 3/3/3 [DBNum3] 86*cdf0e10cSrcweir */ 87*cdf0e10cSrcweir const short NATNUM3 = 3; 88*cdf0e10cSrcweir 89*cdf0e10cSrcweir /** Transliteration in <br/> 90*cdf0e10cSrcweir Chinese: lower case text [DBNum1] <br/> 91*cdf0e10cSrcweir Japanese: modern long Kanji text [DBNum2] <br/> 92*cdf0e10cSrcweir Korean: formal lower case text 93*cdf0e10cSrcweir */ 94*cdf0e10cSrcweir const short NATNUM4 = 4; 95*cdf0e10cSrcweir 96*cdf0e10cSrcweir /** Transliteration in <br/> 97*cdf0e10cSrcweir Chinese: Chinese upper case text [DBNum2] <br/> 98*cdf0e10cSrcweir Japanese: traditional long Kanji text [DBNum3] <br/> 99*cdf0e10cSrcweir Korean: formal upper case text 100*cdf0e10cSrcweir */ 101*cdf0e10cSrcweir const short NATNUM5 = 5; 102*cdf0e10cSrcweir 103*cdf0e10cSrcweir /** Transliteration in <br/> 104*cdf0e10cSrcweir Chinese: fullwidth text [DBNum3] <br/> 105*cdf0e10cSrcweir Japanese: fullwidth text <br/> 106*cdf0e10cSrcweir Korean: fullwidth text 107*cdf0e10cSrcweir */ 108*cdf0e10cSrcweir const short NATNUM6 = 6; 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir /** Transliteration in <br/> 111*cdf0e10cSrcweir Chinese: short lower case text <br/> 112*cdf0e10cSrcweir Japanese: modern short Kanji text <br/> 113*cdf0e10cSrcweir Korean: informal lower case text 114*cdf0e10cSrcweir */ 115*cdf0e10cSrcweir const short NATNUM7 = 7; 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir /** Transliteration in <br/> 118*cdf0e10cSrcweir Chinese: short upper case text <br/> 119*cdf0e10cSrcweir Japanese: traditional short Kanji text [DBNum4] <br/> 120*cdf0e10cSrcweir Korean: informal upper case text 121*cdf0e10cSrcweir */ 122*cdf0e10cSrcweir const short NATNUM8 = 8; 123*cdf0e10cSrcweir 124*cdf0e10cSrcweir /** Transliteration in <br/> 125*cdf0e10cSrcweir Korean: Hangul characters 126*cdf0e10cSrcweir */ 127*cdf0e10cSrcweir const short NATNUM9 = 9; 128*cdf0e10cSrcweir 129*cdf0e10cSrcweir /** Transliteration in <br/> 130*cdf0e10cSrcweir Korean: formal Hangul text [DBNum4]; CAL: 9/11/11 [DBNum4] 131*cdf0e10cSrcweir */ 132*cdf0e10cSrcweir const short NATNUM10 = 10; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir /** Transliteration in <br/> 135*cdf0e10cSrcweir Korean: informal Hangul text 136*cdf0e10cSrcweir */ 137*cdf0e10cSrcweir const short NATNUM11 = 11; 138*cdf0e10cSrcweir 139*cdf0e10cSrcweir}; 140*cdf0e10cSrcweir 141*cdf0e10cSrcweir//============================================================================= 142*cdf0e10cSrcweir}; }; }; }; 143*cdf0e10cSrcweir 144*cdf0e10cSrcweir#endif 145