LibreOffice
LibreOffice 25.8 SDK API Reference
|
This interface allows for spell checking. More...
import "XSpellChecker.idl";
Public Member Functions | |
boolean | isValid ([in] string aWord, [in] com::sun::star::lang::Locale aLocale, [in] com::sun::star::beans::PropertyValues aProperties) raises ( com::sun::star::lang::IllegalArgumentException ) |
checks if a word is spelled correctly in a given language. | |
com::sun::star::linguistic2::XSpellAlternatives | spell ([in] string aWord, [in] com::sun::star::lang::Locale aLocale, [in] com::sun::star::beans::PropertyValues aProperties) raises ( com::sun::star::lang::IllegalArgumentException ) |
This method checks if a word is spelled correctly in a given language. | |
Public Member Functions inherited from XSupportedLocales | |
sequence< com::sun::star::lang::Locale > | getLocales () |
boolean | hasLocale ([in] com::sun::star::lang::Locale aLocale) |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. | |
void | acquire () |
increases the reference counter by one. | |
void | release () |
decreases the reference counter by one. |
This interface allows for spell checking.
It is possible to simply check if a word, in a specified language, is correct or additionally, if it was misspelled, some proposals how it might be correctly written.
boolean isValid | ( | [in] string | aWord, | |||
[in] com::sun::star::lang::Locale | aLocale, | |||||
[in] com::sun::star::beans::PropertyValues | aProperties ) | |||||
raises | ( | com::sun::star::lang::IllegalArgumentException ) |
checks if a word is spelled correctly in a given language.
aWord | the word to be checked. |
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.
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. |
com::sun::star::linguistic2::XSpellAlternatives spell | ( | [in] string | aWord, | |||
[in] com::sun::star::lang::Locale | aLocale, | |||||
[in] com::sun::star::beans::PropertyValues | aProperties ) | |||||
raises | ( | com::sun::star::lang::IllegalArgumentException ) |
This method checks if a word is spelled correctly in a given language.
aWord | the word to be checked. |
aLocale | the language to be used. |
If the language is not supported an IllegalArgumentException exception is raised.
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. |