Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / linguistic2 / XHyphenatedWord.idl
blob0b03b11c57c0afe83f47b73764e6e9261bee1de7
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_linguistic2_XHyphenatedWord_idl__
20 #define __com_sun_star_linguistic2_XHyphenatedWord_idl__
22 #include <com/sun/star/uno/XInterface.idl>
23 #include <com/sun/star/lang/Locale.idl>
27 module com { module sun { module star { module linguistic2 {
29 /** gives information obtained by a successful hyphenation attempt.
31 <P>This interface is used as a return value for some of the hyphenator
32 functions.</P>
34 @see com::sun::star::linguistic2::XHyphenator
36 published interface XHyphenatedWord : com::sun::star::uno::XInterface
38 /**
39 @returns
40 the word that was hyphenated.
42 string getWord();
44 /**
45 @returns
46 the language of the hyphenated word.
48 @see com::sun::star::lang::Locale
50 com::sun::star::lang::Locale getLocale();
52 /**
53 @returns
54 the position where hyphenation was applied in the word.
56 <P>The value has to be in the range from 0 (after the first character)
57 to n-2 (before the last character) where n is the length of
58 the word.</P>
60 short getHyphenationPos();
62 /**
63 @returns
64 the hyphenated word as it should be written (without the hyphen
65 character).
67 string getHyphenatedWord();
69 /**
70 @returns
71 the position of the hyphen in the hyphenated word.
73 <P>The value has to be in the range from 0 (after the first character)
74 to m-2 (before the last character) where m is the length of
75 the hyphenated word.</P>
77 short getHyphenPos();
79 /** is used to query if the hyphenation result is an alternative spelling.
81 <p>A hyphenation result is an alternative spelling if the hyphenated
82 word is different from the word that was hyphenated.</p>
84 @returns
85 `TRUE` if it is an alternative spelling, `FALSE` otherwise.
87 boolean isAlternativeSpelling();
92 }; }; }; };
94 #endif
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */