public class LanguageToolSpellChecker
extends com.sun.star.lib.uno.helper.WeakBase
implements com.sun.star.lang.XServiceInfo, com.sun.star.lang.XServiceDisplayName, com.sun.star.linguistic2.XSpellChecker
| Constructor and Description |
|---|
LanguageToolSpellChecker(com.sun.star.uno.XComponentContext xContxt) |
| Modifier and Type | Method and Description |
|---|---|
static com.sun.star.lang.XSingleComponentFactory |
__getComponentFactory(String sImplName)
Get XSingleComponentFactory
Default method called by LO/OO extensions
|
static boolean |
__writeRegistryServiceInfo(com.sun.star.registry.XRegistryKey regKey)
Write keys to registry
Default method called by LO/OO extensions
|
String |
getImplementationName() |
com.sun.star.lang.Locale[] |
getLocales() |
String |
getServiceDisplayName(com.sun.star.lang.Locale locale) |
String[] |
getSupportedServiceNames()
Get the names of supported services
interface: XServiceInfo
|
boolean |
hasLocale(com.sun.star.lang.Locale locale) |
boolean |
isValid(String word,
com.sun.star.lang.Locale locale,
com.sun.star.beans.PropertyValue[] Properties) |
com.sun.star.linguistic2.XSpellAlternatives |
spell(String word,
com.sun.star.lang.Locale locale,
com.sun.star.beans.PropertyValue[] properties)
get alternatives for a non correct spelled word
|
boolean |
supportsService(String sServiceName)
Test if the service is supported by LT
interface: XServiceInfo
|
public LanguageToolSpellChecker(com.sun.star.uno.XComponentContext xContxt)
public static com.sun.star.lang.XSingleComponentFactory __getComponentFactory(String sImplName)
public static boolean __writeRegistryServiceInfo(com.sun.star.registry.XRegistryKey regKey)
public com.sun.star.lang.Locale[] getLocales()
getLocales in interface com.sun.star.linguistic2.XSupportedLocalespublic boolean hasLocale(com.sun.star.lang.Locale locale)
hasLocale in interface com.sun.star.linguistic2.XSupportedLocalespublic String getImplementationName()
getImplementationName in interface com.sun.star.lang.XServiceInfopublic String[] getSupportedServiceNames()
getSupportedServiceNames in interface com.sun.star.lang.XServiceInfopublic boolean supportsService(String sServiceName)
supportsService in interface com.sun.star.lang.XServiceInfopublic boolean isValid(String word, com.sun.star.lang.Locale locale, com.sun.star.beans.PropertyValue[] Properties) throws com.sun.star.lang.IllegalArgumentException
isValid in interface com.sun.star.linguistic2.XSpellCheckercom.sun.star.lang.IllegalArgumentExceptionpublic com.sun.star.linguistic2.XSpellAlternatives spell(String word, com.sun.star.lang.Locale locale, com.sun.star.beans.PropertyValue[] properties) throws com.sun.star.lang.IllegalArgumentException
spell in interface com.sun.star.linguistic2.XSpellCheckercom.sun.star.lang.IllegalArgumentExceptionpublic String getServiceDisplayName(com.sun.star.lang.Locale locale)
getServiceDisplayName in interface com.sun.star.lang.XServiceDisplayName