1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
22 module com
{ module sun
{ module star
{ module i18n
{
25 /** Method to convert text from one type to another
29 published
interface XTextConversion
: ::com
::sun
::star
::uno
::XInterface
31 /** Method to search dictionaries for the conversion candidates.
34 Text string to be converted.
36 The start position in aText for the conversion
38 The length of the portion in aText for the conversion
40 Locale the conversion is referring to.
41 @param nTextConversionType
42 One of TextConversionType values.
43 @param nTextConversionOptions
44 Combination of TextConversionOption values.
48 @throws NoSupportException
49 when <var>nConversionDictionaryType</var> is not known by the implementation,
50 or when the locale is not supported.
52 TextConversionResult getConversions
(
56 [in] ::com
::sun
::star
::lang
::Locale Locale
,
57 [in] short nTextConversionType
,
58 [in] long nTextConversionOptions
)
59 raises
( com
::sun
::star
::lang
::IllegalArgumentException
,
60 com
::sun
::star
::lang
::NoSupportException
);
62 /** Method to search dictionaries for the conversion candidate, if there
63 are multiple candidates, it will return first one. This is for the
64 conversion in non-interactive mode.
67 Text string to be converted.
69 The start position in aText for the conversion
71 The length of the portion in aText for the conversion
73 Locale the conversion is referring to.
74 @param nTextConversionType
75 One of TextConversionType values.
76 @param nTextConversionOptions
77 Combination of TextConversionOption values.
81 @throws NoSupportException
82 when <var>nConversionDictionaryType</var> is not known by the implementation,
83 or when the locale is not supported.
89 [in] ::com
::sun
::star
::lang
::Locale Locale
,
90 [in] short nTextConversionType
,
91 [in] long nTextConversionOptions
)
92 raises
( com
::sun
::star
::lang
::IllegalArgumentException
,
93 com
::sun
::star
::lang
::NoSupportException
);
95 /** Method to query if the conversion type should be interactive or
99 Locale the conversion is referring to.
100 @param nTextConversionType
101 One of TextConversionType values.
102 @param nTextConversionOptions
103 Combination of TextConversionOption values.
105 `TRUE` if the entry is a valid entry for the dictionary
108 @throws NoSupportException
109 when <var>nConversionDictionaryType</var> is not known by the implementation,
110 or when the locale is not supported.
112 boolean interactiveConversion
(
113 [in] ::com
::sun
::star
::lang
::Locale Locale
,
114 [in] short nTextConversionType
,
115 [in] long nTextConversionOptions
)
116 raises
( com
::sun
::star
::lang
::IllegalArgumentException
,
117 com
::sun
::star
::lang
::NoSupportException
);
124 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */