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.XSupportedLocales
public boolean hasLocale(com.sun.star.lang.Locale locale)
hasLocale
in interface com.sun.star.linguistic2.XSupportedLocales
public String getImplementationName()
getImplementationName
in interface com.sun.star.lang.XServiceInfo
public String[] getSupportedServiceNames()
getSupportedServiceNames
in interface com.sun.star.lang.XServiceInfo
public boolean supportsService(String sServiceName)
supportsService
in interface com.sun.star.lang.XServiceInfo
public 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.XSpellChecker
com.sun.star.lang.IllegalArgumentException
public 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.XSpellChecker
com.sun.star.lang.IllegalArgumentException
public String getServiceDisplayName(com.sun.star.lang.Locale locale)
getServiceDisplayName
in interface com.sun.star.lang.XServiceDisplayName