|
Syntax
- boolean isValid
(
- string aWord,
- com::sun::star::lang::Locale aLocale,
- com::sun::star::beans::PropertyValues aProperties )
- raises ( com::sun::star::lang::IllegalArgumentException );
Description
checks if a word is spelled correctly in a given language.
Returns
-
true
if the word is spelled correctly using
the specified language, false
otherwise.
Parameter aWord
-
the word to be checked.
Parameter aLocale
-
the Locale (language) to be used.
If the Locale is empty, the word is spelled correctly by
definition.
If aLocale is not supported an
IllegalArgumentException exception is raised.
Parameter aProperties
-
provides property values to be used for this function call only.
It is usually empty in order to use the default values supplied with
the property set.
See also
- XSupportedLocales
-
See also
- Locale
-
Syntax
- com::sun::star::linguistic2::XSpellAlternatives spell
(
- string aWord,
- com::sun::star::lang::Locale aLocale,
- com::sun::star::beans::PropertyValues aProperties )
- raises ( com::sun::star::lang::IllegalArgumentException );
Description
This method checks if a word is spelled correctly in a given
language.
Returns
-
NULL
if aWord is spelled correctly using
aLocale . Otherwise, an XSpellAlternatives
object with information about the reason of failure and, if available,
proposals for spelling alternatives will be returned.
Parameter aWord
-
the word to be checked.
Parameter aLocale
-
the language to be used.
If the language is not supported an IllegalArgumentException exception is raised.
Parameter aProperties
-
provides property values to be used for this function call only.
It is usually empty in order to use the default values supplied with
the property set.
exception is raised.
See also
- XSupportedLocales
-
See also
- XSpellAlternatives
-
See also
- Locale
-
|