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_accessibility_AccessibleTextType_idl__ 25#define __com_sun_star_accessibility_AccessibleTextType_idl__ 26 27module com { module sun { module star { module accessibility { 28 29 30/** Collection of types of text portions. 31 32 <p>This collection describes the types of text portions that can be 33 accessed with the help of the methods of the 34 <type>XAccessibleText</type> interface.</p> 35 36 @since OpenOffice 1.1.2 37*/ 38published constants AccessibleTextType 39{ 40 /** Single character. 41 42 <p>Indicates that single (multibyte) characters are used.</p> 43 */ 44 const short CHARACTER = 1; 45 46 /** Single word. 47 48 <p>Indicates that single words are used. The definition of what a 49 word is is implementation and language/locale dependent. While in 50 english a word is ended by a space or a special character like a 51 comma or a period, this is not necessarily true in other 52 languages.</p> 53 */ 54 const short WORD = 2; 55 56 /** Single sentence. 57 58 <p>Indicates that single sentences are used. The definition of what 59 a sentence is is implementation and language/locale dependent. 60 While in english a sentence is ended by a period, this is not 61 necessarily true in other languages.</p> 62 */ 63 const short SENTENCE = 3; 64 65 /** Single paragraph. 66 67 <p>Indicates that single paragraphs are used. The definition of 68 what a paragraph is is implementation and language/locale 69 dependent.</p> 70 */ 71 const short PARAGRAPH = 4; 72 73 /** Single line. 74 75 <p>Indicates that single lines, as displayed on the screen, are 76 used. In contrast to the constants <const>CHARACTER</const>, 77 <const>WORD</const>, <const>SENTENCE</const>, and 78 <const>PARAGRAPH</const> which are content oriented this constant is 79 view oriented. It can be used to retrieve hyphenation 80 information.</p> 81 */ 82 const short LINE = 5; 83 84 /** Single glyph. 85 86 <p>Glyphs are runs of one or more (multibyte) characters which are 87 displayed as one symbol.</p> 88 */ 89 const short GLYPH = 6; 90 91 /** Attribute run. 92 93 <p>Each attribute run is a character run of maximal length where all 94 characters have the same attributes set.</p> 95 */ 96 const short ATTRIBUTE_RUN = 7; 97}; 98 99}; }; }; }; 100 101#endif 102