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_CharType_idl__ 28#define __com_sun_star_i18n_CharType_idl__ 29 30//============================================================================= 31 32module com { module sun { module star { module i18n { 33 34//============================================================================= 35 36/** 37 Constants to specify the character type that starts a character block. 38 Character type is Unicode type defined in <type>UnicodeType</type> 39 40 <p> Used with <member>XBreakIterator::beginOfCharBlock()</member>, 41 <member>XBreakIterator::endOfCharBlock()</member>, 42 <member>XBreakIterator::nextCharBlock()</member>, 43 <member>XBreakIterator::previousCharBlock()</member> </p> 44 */ 45published constants CharType 46{ 47 /// all alpha characters allowed 48 const short ANY_CHAR = 0; 49 50 const short UPPERCASE_LETTER = 1; 51 const short LOWERCASE_LETTER = 2; 52 const short TITLECASE_LETTER = 3; 53 const short MODIFIER_LETTER = 4; 54 const short OTHER_LETTER = 5; 55 const short NON_SPACING_MARK = 6; 56 const short ENCLOSING_MARK = 7; 57 const short COMBINING_SPACING_MARK = 8; 58 const short DECIMAL_DIGIT_NUMBER = 9; 59 const short LETTER_NUMBER = 10; 60 const short OTHER_NUMBER = 11; 61 const short SPACE_SEPARATOR = 12; 62 const short LINE_SEPARATOR = 13; 63 const short PARAGRAPH_SEPARATOR = 14; 64 const short CONTROL = 15; 65 const short FORMAT = 16; 66 const short PRIVATE_USE = 17; 67 const short SURROGATE = 18; 68 const short DASH_PUNCTUATION = 19; 69 const short START_PUNCTUATION = 20; 70 const short END_PUNCTUATION = 21; 71 const short CONNECTOR_PUNCTUATION = 22; 72 const short OTHER_PUNCTUATION = 23; 73 const short MATH_SYMBOL = 24; 74 const short CURRENCY_SYMBOL = 25; 75 const short MODIFIER_SYMBOL = 26; 76 const short OTHER_SYMBOL = 27; 77 const short INITIAL_PUNCTUATION = 28; 78 const short FINAL_PUNCTUATION = 29; 79 const short GENERAL_TYPES_COUNT = 30; 80}; 81 82//============================================================================= 83}; }; }; }; 84 85#endif 86