Allows the user to access a conversion dictionary.
More...
import"XConversionDictionary.idl";
Allows the user to access a conversion dictionary.
The dictionary consists of entries (pairs) of the form ( aLeftText, aRightText ). Those pairs can be added and removed. Also it can be looked for all entries where the left text or the right text matches a given text. Thus it can be used for conversions in both directions.
Restrictions to what has to be the left and right text are usually given by specific services implementing this interface.
- See also
- com::sun::star::linguistic2::ConversionDictionary
-
com::sun::star::linguistic2::HangulHanjaConversionDictionary
- Since
- OOo 1.1.2
◆ addEntry()
is used to add a conversion pair to the dictionary.
- Parameters
-
aLeftText | the left text of the pair to be added. |
aRightText | the right text of the pair to be added. |
- Exceptions
-
◆ clear()
removes all entries from the dictionary.
◆ getConversionEntries()
- Returns
- a list of all left or right parts of the dictionaries entries.
- Parameters
-
eDirection | specifies if all left or all right parts of the entries should be returned. |
◆ getConversions()
searches for entries or conversions that match the given text.
The exact string to be looked for is the substring from the aText parameter that starts at position nStartPos and has the length nLength.
- Returns
- the list of conversions found for the supplied text. If no nothing was found, it is empty.
- Parameters
-
aText | the text where the substring to be looked for will be taken from. Depending on the conversion direction parameter it specifies either the left text or the right text to look for. |
nStartPos | the starting pos of the substring to be looked for. |
nLength | the length of the substring to be looked for. |
eDirection | specifies the direction of the conversion to look for. It is one of com::sun::star::linguistic2::ConversionDirection. |
nTextConversionOptions | Combination of com::sun::star::i18n::TextConversionOption values. |
- Exceptions
-
◆ getConversionType()
short getConversionType |
( |
| ) |
|
◆ getLocale()
◆ getMaxCharCount()
◆ getName()
- Returns
- the name of the dictionary.
◆ isActive()
- Returns
TRUE
if the dictionary is active, FALSE
otherwise.
◆ removeEntry()
removes a conversion pair from the dictionary.
- Parameters
-
aLeftText | the left text of the pair to be removed. |
aRightText | the right text of the pair to be removed. |
- Exceptions
-
◆ setActive()
void setActive |
( |
[in] boolean |
bActivate | ) |
|
specifies whether the dictionary should be used or not .
- Parameters
-
bActivate | TRUE if the dictionary should be used, FALSE otherwise. |
The documentation for this interface was generated from the following file: