merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / i18n / XExtendedTextConversion.idl
blob9c6c5ee43fce9c8c99c18fe81a4e0a29270e4ab5
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
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.
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).
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.
26 ************************************************************************/
28 #ifndef __com_sun_star_i18n_XExtendedTextConversion_idl__
29 #define __com_sun_star_i18n_XExtendedTextConversion_idl__
31 #include <com/sun/star/i18n/XTextConversion.idl>
33 //=============================================================================
35 module com { module sun { module star { module i18n {
37 //=============================================================================
40 /**
41 This interface provides Text Conversion service.
43 <p> It is derived from
44 <type scope="::com::sun::star::i18n">XTextConversion</type> and provides
45 a new conversion function containing position map (offset) between original
46 and conveted string. </p>
48 @since OOo 2.0
50 published interface XExtendedTextConversion : ::com::sun::star::i18n::XTextConversion
52 //-------------------------------------------------------------------------
53 /**
54 The functionality of this method is same as
55 <member scope="::com::sun::star::i18n">XTextConversion::getConversion()</member>,
56 except an additional output parameter rOffset.
58 @param rOffset
59 To find the grapheme of input string corresponding to the
60 grapheme of output string, rOffset provides the offset array
61 whose index is the offset of output string, the element
62 containing the position within the input string.
63 When the graphemes of input and output strings are simple
64 one to one mapping, to improve the performance, returned
65 rOffset will be a zero length array.
67 string getConversionWithOffset(
68 [in] string aText,
69 [in] long nStartPos,
70 [in] long nLength,
71 [in] ::com::sun::star::lang::Locale aLocale,
72 [in] short nTextConversionType,
73 [in] long nTextConversionOptions,
74 [out] sequence <long> rOffset )
75 raises( com::sun::star::lang::IllegalArgumentException,
76 com::sun::star::lang::NoSupportException );
79 //=============================================================================
80 }; }; }; };
82 #endif