LibreOffice: com/sun/star/i18n/XTransliteration.idl Source File

LibreOffice LibreOffice 5.1 SDK API Reference

XTransliteration.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19 #ifndef __com_sun_star_i18n_XTransliteration_idl__
20 #define __com_sun_star_i18n_XTransliteration_idl__
21
22 #include <com/sun/star/lang/Locale.idl>
23 #include <com/sun/star/uno/XInterface.idl>
24 #include <com/sun/star/i18n/TransliterationModules.idl>
25 #include <com/sun/star/i18n/TransliterationModulesNew.idl>
26
27
28 module com { module sun { module star { module i18n {
29
30
63 /* comment:
64 * 0.
65 * All the IGNORE-type functionalities (Range, equals) are based on mapping.
66 * except equals() method in IGNORE_CASE, which is based on Locale-independent
67 * case folding
68 * ( This second assumption is very complicated and may cause confusion of use)
69 *
70 * 1.
71 * We are assuming Upper to Lower mapping as one of transliteration.
72 * The mapping depends on Locale.
73 * Upper <-> Lower methods are just wrappers to provide equals() and Range()
74 *
75 * 2.
76 * equals() in IGNORE_CASE module is locale-independent and
77 * we don't provide locale-sensitive ones.
78 * The reason we provided locale-independent ones is that IGNORE_CASE is mainly
79 * dedicated to StarOffice internal code.
80 *
81 * 3.
82 * TransliterationModules is used just for convenience without calling
83 * getAvailableModule.
84 *
85 * 4.
86 * Implementation name in the methods below is not the same as
87 * the true implementation name registered.
88 * In particular, for generic modules:"UPPERCASE_LOWERCASE",
89 * "LOWERCASE_UPPERCASE", "IGNORE_CASE", there is no registered name.
90 */
91
92
93 published interface XTransliteration: com::sun::star::uno::XInterface
94 {
95
101 string getName();
102
109 short getType();
110
113 void loadModule( [in] TransliterationModules eModType,
114 [in] ::com::sun::star::lang::Locale aLocale );
115
119 void loadModuleNew( [in] sequence <TransliterationModulesNew> aModType,
120 [in] ::com::sun::star::lang::Locale aLocale );
121
141 void loadModuleByImplName( [in] string aImplName,
142 [in] ::com::sun::star::lang::Locale aLocale );
143
152 void loadModulesByImplNames( [in] sequence <string> aImplNameList,
153 [in] ::com::sun::star::lang::Locale aLocale );
154
162 sequence<string> getAvailableModules(
163 [in] ::com::sun::star::lang::Locale aLocale,
164 [in] short nType );
165
166
187 string transliterate( [in] string aInStr, [in] long nStartPos,
188 [in] long nCount, [out] sequence <long> rOffset );
189
194 string folding( [in] string aInStr, [in] long nStartPos,
195 [in] long nCount, [out] sequence <long> rOffset );
196
240 boolean equals( [in] string aStr1, [in] long nPos1, [in] long nCount1,
241 [out] long rMatch1,
242 [in] string aStr2, [in] long nPos2, [in] long nCount2,
243 [out] long rMatch2 );
244
262 sequence <string> transliterateRange( [in] string aStr1, [in] string aStr2 );
263
290 long compareSubstring( [in] string aStr1, [in] long nOff1, [in] long nLen1,
291 [in] string aStr2, [in] long nOff2, [in] long nLen2 );
292
301 long compareString( [in] string aStr1, [in] string aStr2 );
302
303 };
304
305 }; }; }; };
306
307 #endif
308
309 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
TransliterationModulesNew.idl
com
Definition: Ambiguous.idl:22
com::sun::star::lang::Locale
object represents a specific geographical, political, or cultural region.
Definition: Locale.idl:52
com::sun::star::i18n::XTransliteration
Character conversions like case folding or Hiragana to Katakana.
Definition: XTransliteration.idl:93
Locale.idl
XInterface.idl
com::sun::star::i18n::TransliterationModules
TransliterationModules
Old transliteration module enumeration.
Definition: TransliterationModules.idl:34
TransliterationModules.idl
com::sun::star::uno::XInterface
base interface of all UNO interfaces
Definition: XInterface.idl:47