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