Bump for 3.6-28
[LibreOffice.git] / offapi / com / sun / star / linguistic2 / XPossibleHyphens.idl
blobcb0477e5a845156afa0d4930030431937dac116c
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
28 #ifndef __com_sun_star_linguistic2_XPossibleHyphens_idl__
29 #define __com_sun_star_linguistic2_XPossibleHyphens_idl__
31 #include <com/sun/star/uno/XInterface.idl>
32 #include <com/sun/star/lang/Locale.idl>
35 //=============================================================================
37 module com { module sun { module star { module linguistic2 {
39 //=============================================================================
40 /** Gives information about a word's possible hyphenation points.
42 <P>Example: In German pre-spelling-reform you may have the following:
43 getWord: Dampfschiffahrt
44 getPossibleHyphens: Dampf=schiff=fahrt
45 getOrigHyphensPositions: 4, 9
46 That is "Dampfschiffahrt" can be hyphenated after the "pf" (4) and
47 between the double "ff" (9). And if you are going to hyphenate it at
48 position 9 you will get an additional "f" before the hyphen
49 character.</P>
51 @see <type scope="com::sun::star::linguistic2">XHyphenator</type>
53 published interface XPossibleHyphens : com::sun::star::uno::XInterface
55 //-------------------------------------------------------------------------
56 /**
57 @returns
58 the word for which the information of possible hyphenation
59 points was obtained.
61 string getWord();
63 //-------------------------------------------------------------------------
64 /** @returns
65 the language of the hyphenated word.
67 @see <type scope="com::sun::star::lang">Locale</type>
69 com::sun::star::lang::Locale getLocale();
71 //-------------------------------------------------------------------------
72 /**
73 @returns
74 a string depicting the word with all hyphen positions
75 which are represented by "=" characters.
76 If there are any alternative spellings, the word will be altered
77 accordingly.
79 string getPossibleHyphens();
81 //-------------------------------------------------------------------------
82 /**
83 @returns
84 an ascending sequence of numbers where each number is an offset
85 within the original word which denotes a hyphenation
86 position corresponding to one of the hyphens in the
87 string returned by
88 <member scope="com::sun::star::linguistic2">XPossibleHyphens::getPossibleHyphens</member>.
90 sequence<short> getHyphenationPositions();
94 //=============================================================================
96 }; }; }; };
98 #endif
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */