:: com :: sun :: star :: linguistic2 ::

interface XLinguServiceManager

Methods' Summary
getSpellChecker  
getHyphenator  
getThesaurus  
addLinguServiceManagerListener adds a listener to the list of event listeners.  
removeLinguServiceManagerListener removes a listener from the list of event listeners.  
getAvailableServices  
setConfiguredServices sets the list of service implementations to be used for a given service and language.  
getConfiguredServices queries the list of service implementations to be used for a given service and language.  
Methods' Details
getSpellChecker
XSpellChecker
getSpellChecker();

Returns
the XSpellChecker interface to be used for spell checking.
getHyphenator
XHyphenator
getHyphenator();

Returns
the XHyphenator interface to be used for hyphenation.
getThesaurus
XThesaurus
getThesaurus();

Returns
the XThesaurus interface to be used for thesaurus functionality.
addLinguServiceManagerListener
boolean
addLinguServiceManagerListener( [in] ::com::sun::star::lang::XEventListener  xListener );

Description
adds a listener to the list of event listeners.

The listeners may support one or both of XDictionaryEventListener and XLinguServiceEventListener interfaces.

Returns
true if the listener was successfully added, false otherwise.
Parameter xListener
the listener to be added.
removeLinguServiceManagerListener
boolean
removeLinguServiceManagerListener( [in] ::com::sun::star::lang::XEventListener  xListener );

Description
removes a listener from the list of event listeners.
Returns
true if the listener was successfully removed, false otherwise.
Parameter xListener
the listener to be removed.
getAvailableServices
sequence< string >
getAvailableServices( [in] string  aServiceName,
[in] ::com::sun::star::lang::Locale  aLocale );

Returns
the list of implementation names of the available services.
Parameter aServiceName
the name of the service requesting the list of available implementations.
Parameter aLocale
the language used to query the list of available implementations.
setConfiguredServices
void
setConfiguredServices( [in] string  aServiceName,
[in] ::com::sun::star::lang::Locale  aLocale,
[in] sequence< string >  aServiceImplNames );

Description
sets the list of service implementations to be used for a given service and language.
Parameter aServiceName
the name of the service to set the list of implementations to be used.
Parameter aLocale
the language to set the list.
Parameter aServiceImplNames
the name of the service to set the list.
getConfiguredServices
sequence< string >
getConfiguredServices( [in] string  aServiceName,
[in] ::com::sun::star::lang::Locale  aLocale );

Description
queries the list of service implementations to be used for a given service and language.
Returns
the list of implementation names of the services to be used.
Parameter aServiceName
the name of the service to get queried.
Parameter aLocale
the language to get queried.
Top of Page