1d1766043SAndrew Rist/**************************************************************
2*90ed883bSmseidel *
3d1766043SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4d1766043SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5d1766043SAndrew Rist * distributed with this work for additional information
6d1766043SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7d1766043SAndrew Rist * to you under the Apache License, Version 2.0 (the
8d1766043SAndrew Rist * "License"); you may not use this file except in compliance
9d1766043SAndrew Rist * with the License.  You may obtain a copy of the License at
10*90ed883bSmseidel *
11d1766043SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*90ed883bSmseidel *
13d1766043SAndrew Rist * Unless required by applicable law or agreed to in writing,
14d1766043SAndrew Rist * software distributed under the License is distributed on an
15d1766043SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16d1766043SAndrew Rist * KIND, either express or implied.  See the License for the
17d1766043SAndrew Rist * specific language governing permissions and limitations
18d1766043SAndrew Rist * under the License.
19*90ed883bSmseidel *
20d1766043SAndrew Rist *************************************************************/
21d1766043SAndrew Rist
22d1766043SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#ifndef __com_sun_star_i18n_XExtendedTransliteration_idl__
25cdf0e10cSrcweir#define __com_sun_star_i18n_XExtendedTransliteration_idl__
26cdf0e10cSrcweir
27cdf0e10cSrcweir#include <com/sun/star/i18n/XTransliteration.idl>
28cdf0e10cSrcweir#include <MultipleCharsOutputException.idl>
29cdf0e10cSrcweir
30cdf0e10cSrcweir//=============================================================================
31cdf0e10cSrcweir
32cdf0e10cSrcweirmodule com { module sun { module star { module i18n {
33cdf0e10cSrcweir
34cdf0e10cSrcweir//=============================================================================
35cdf0e10cSrcweir
36cdf0e10cSrcweir
37cdf0e10cSrcweir/**
38cdf0e10cSrcweir    This interface provides character conversions like case folding or
39cdf0e10cSrcweir    Hiragana to Katakana.
40cdf0e10cSrcweir
41cdf0e10cSrcweir    <p> It is derived from
42cdf0e10cSrcweir    <type scope="::com::sun::star::i18n">XTransliteration</type> and provides
43cdf0e10cSrcweir    additional functionality for character to character and
44cdf0e10cSrcweir    string to string without offset parameter transliteration. These
45cdf0e10cSrcweir    should be used for performance reason if their full-blown
46*90ed883bSmseidel    counterparts aren't needed. </p>
47cdf0e10cSrcweir
48d695a2a0SJürgen Schmidt	 @since OpenOffice 1.1.2
49cdf0e10cSrcweir */
50cdf0e10cSrcweirpublished interface XExtendedTransliteration : ::com::sun::star::i18n::XTransliteration
51cdf0e10cSrcweir{
52cdf0e10cSrcweir    //------------------------------------------------------------------------
53cdf0e10cSrcweir    /** Transliterate a substring. The functionality is the same as
54cdf0e10cSrcweir        <member scope="::com::sun::star::i18n">XTransliteration::transliterate()</member>
55*90ed883bSmseidel        but omits the offset parameter to improve performance.
56cdf0e10cSrcweir
57cdf0e10cSrcweir        @param aStr
58cdf0e10cSrcweir            The input string.
59cdf0e10cSrcweir
60cdf0e10cSrcweir        @param nStartPos
61cdf0e10cSrcweir            Start position within aStr from where transliteration starts.
62cdf0e10cSrcweir
63cdf0e10cSrcweir        @param nCount
64cdf0e10cSrcweir            Number of codepoints to be transliterated.
65cdf0e10cSrcweir
66cdf0e10cSrcweir     */
67cdf0e10cSrcweir    string  transliterateString2String( [in] string aStr,
68cdf0e10cSrcweir            [in] long nStartPos, [in] long nCount );
69cdf0e10cSrcweir
70cdf0e10cSrcweir
71cdf0e10cSrcweir    //------------------------------------------------------------------------
72cdf0e10cSrcweir    /** Transliterate a character to a string.
73cdf0e10cSrcweir
74cdf0e10cSrcweir        @param cChar
75cdf0e10cSrcweir            The input character.
76cdf0e10cSrcweir     */
77cdf0e10cSrcweir    string  transliterateChar2String( [in] char cChar );
78cdf0e10cSrcweir
79cdf0e10cSrcweir    //------------------------------------------------------------------------
80cdf0e10cSrcweir    /** Transliterate a character to a character.
81cdf0e10cSrcweir
82cdf0e10cSrcweir        <p> If the output contains multiple characters, for example when
83cdf0e10cSrcweir        transliterating German sharp 's' (the one that looks like a
84cdf0e10cSrcweir        Greek Beta) to upper case "SS", MultipleCharsOutputException
85cdf0e10cSrcweir        will be thrown, the caller must catch the exception and then
86cdf0e10cSrcweir        call
87cdf0e10cSrcweir        <method>XTransliteration::transliterateChar2String()</method> to
88cdf0e10cSrcweir        obtain the correct result. </p>
89cdf0e10cSrcweir
90cdf0e10cSrcweir        @param cChar
91cdf0e10cSrcweir            The input character.
92cdf0e10cSrcweir     */
93cdf0e10cSrcweir    char    transliterateChar2Char( [in] char cChar )
94cdf0e10cSrcweir                raises( MultipleCharsOutputException );
95cdf0e10cSrcweir
96cdf0e10cSrcweir};
97cdf0e10cSrcweir
98cdf0e10cSrcweir//=============================================================================
99*90ed883bSmseidel
100cdf0e10cSrcweir}; }; }; };
101cdf0e10cSrcweir
102cdf0e10cSrcweir#endif
103