1/************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27#ifndef __com_sun_star_i18n_TransliterationType_idl__ 28#define __com_sun_star_i18n_TransliterationType_idl__ 29 30//============================================================================= 31 32module com { module sun { module star { module i18n { 33 34//============================================================================= 35 36/** 37 Bitmask transliteration types used with 38 <member>XTransliteration::getType()</member> and 39 <member>XTransliteration::getAvailableModules()</member> methods. 40 41 <p> Non-IGNORE type modules provide 42 <member>XTransliteration::transliterate()</member>. <br/> 43 IGNORE type modules provide 44 <member>XTransliteration::equals()</member> and 45 <member>XTransliteration::transliterateRange()</member>. </p> 46 */ 47 48published constants TransliterationType 49{ 50 const short NONE = 0; 51 52 /** A transliteration module is ONE_TO_ONE if and only if it's 53 mapping between characters is one to one like a-z to A-Z. 54 Transliteration modules of this type can be used as choice in 55 regular expressions based search/replace. */ 56 const short ONE_TO_ONE = 1; 57 58 /** A transliteration module can have attribute NUMERIC if it 59 tranliterates numbers in different languages like chinese 60 numbers to arabic numbers and vice versa. This mapping need not 61 be one to one, it should be primarily used by number formatting 62 and parsing methods. */ 63 const short NUMERIC = 2; 64 65 /** A transliteration module is ONE_TO_ONE_NUMERIC if it offers 66 both one to one mapping and handles number also. */ 67 const short ONE_TO_ONE_NUMERIC = 3; 68 69 /** With a transliterator IGNORE case, the regular 70 expression A-Z can be transformed to a-z, for example. */ 71 const short IGNORE = 4; 72 73 /** If the transliteration is cascaded (uses more than one 74 algorithm). */ 75 const short CASCADE = 8; 76}; 77 78//============================================================================= 79}; }; }; }; 80 81#endif 82