Method to convert text from one type to another.
More...
import"XTextConversion.idl";
|
TextConversionResult | getConversions ([in] string aText, [in] long nStartPos, [in] long nLength, [in] ::com::sun::star::lang::Locale Locale, [in] short nTextConversionType, [in] long nTextConversionOptions) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::NoSupportException ) |
| Method to search dictionaries for the conversion candidates. More...
|
|
string | getConversion ([in] string aText, [in] long nStartPos, [in] long nLength, [in] ::com::sun::star::lang::Locale Locale, [in] short nTextConversionType, [in] long nTextConversionOptions) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::NoSupportException ) |
| Method to search dictionaries for the conversion candidate, if there are multiple candidates, it will return first one. More...
|
|
boolean | interactiveConversion ([in] ::com::sun::star::lang::Locale Locale, [in] short nTextConversionType, [in] long nTextConversionOptions) raises ( com::sun::star::lang::IllegalArgumentException, com::sun::star::lang::NoSupportException ) |
| Method to query if the conversion type should be interactive or non-interactive mode. More...
|
|
any | queryInterface ([in] type aType) |
| queries for a new interface to an existing UNO object. More...
|
|
void | acquire () |
| increases the reference counter by one. More...
|
|
void | release () |
| decreases the reference counter by one. More...
|
|
◆ getConversion()
Method to search dictionaries for the conversion candidate, if there are multiple candidates, it will return first one.
This is for the conversion in non-interactive mode.
- Parameters
-
aText | Text string to be converted. |
nStartPos | The start position in aText for the conversion |
nLength | The length of the portion in aText for the conversion |
Locale | Locale the conversion is referring to. |
nTextConversionType | One of TextConversionType values. |
nTextConversionOptions | Combination of TextConversionOption values. |
- Returns
- Converted text
- Exceptions
-
NoSupportException | when nConversionDictionaryType is not known by the implementation, or when the locale is not supported. |
◆ getConversions()
Method to search dictionaries for the conversion candidates.
- Parameters
-
aText | Text string to be converted. |
nStartPos | The start position in aText for the conversion |
nLength | The length of the portion in aText for the conversion |
Locale | Locale the conversion is referring to. |
nTextConversionType | One of TextConversionType values. |
nTextConversionOptions | Combination of TextConversionOption values. |
- Returns
- TextConversionResult
- Exceptions
-
NoSupportException | when nConversionDictionaryType is not known by the implementation, or when the locale is not supported. |
◆ interactiveConversion()
Method to query if the conversion type should be interactive or non-interactive mode.
- Parameters
-
- Returns
TRUE
if the entry is a valid entry for the dictionary FALSE
otherwise.
- Exceptions
-
NoSupportException | when nConversionDictionaryType is not known by the implementation, or when the locale is not supported. |
The documentation for this interface was generated from the following file: