LibreOffice
LibreOffice 24.2 SDK API Reference
|
the basic interface to be used to access linguistic functionality. More...
import"XLinguServiceManager.idl";
Public Member Functions | |
com::sun::star::linguistic2::XSpellChecker | getSpellChecker () |
com::sun::star::linguistic2::XHyphenator | getHyphenator () |
com::sun::star::linguistic2::XThesaurus | getThesaurus () |
boolean | addLinguServiceManagerListener ([in] com::sun::star::lang::XEventListener xListener) |
adds a listener to the list of event listeners. More... | |
boolean | removeLinguServiceManagerListener ([in] com::sun::star::lang::XEventListener xListener) |
removes a listener from the list of event listeners. More... | |
sequence< string > | getAvailableServices ([in] string aServiceName, [in] com::sun::star::lang::Locale aLocale) |
void | setConfiguredServices ([in] string aServiceName, [in] com::sun::star::lang::Locale aLocale, [in] sequence< string > aServiceImplNames) |
sets the list of service implementations to be used for a given service and language. More... | |
sequence< string > | getConfiguredServices ([in] string aServiceName, [in] com::sun::star::lang::Locale aLocale) |
queries the list of service implementations to be used for a given service and language. More... | |
Public Member Functions inherited from XInterface | |
any | queryInterface ([in] type aType) |
queries for a new interface to an existing UNO object. More... | |
void | acquire () |
increases the reference counter by one. More... | |
void | release () |
decreases the reference counter by one. More... | |
the basic interface to be used to access linguistic functionality.
This interface is used to access spell checker, hyphenator, and thesaurus functionality. Additionally, it can query what implementations of those services are available (for specific languages or in general). It can select and query which of those implementations should be used for a specific language.
For spell checking and thesaurus, the order in the list defines the order of creation/usage of those services. That is, if the first spell checker implementation does not recognize the given word as correct, the second service implementation for that language is created and gets queried. If that one fails, the third one gets created and queried and so on. This chain stops if an implementation reports the word as correct or the end of the list is reached, in which case the word is reported as incorrect.
For the thesaurus, the behavior is the same when no meaning was found.
boolean addLinguServiceManagerListener | ( | [in] com::sun::star::lang::XEventListener | xListener | ) |
adds a listener to the list of event listeners.
The listeners may support one or both of com::sun::star::linguistic2::XDictionaryEventListener and com::sun::star::linguistic2::XLinguServiceEventListener interfaces.
TRUE
if the listener was successfully added, FALSE
otherwise.xListener | the listener to be added. |
sequence< string > getAvailableServices | ( | [in] string | aServiceName, |
[in] com::sun::star::lang::Locale | aLocale | ||
) |
aServiceName | the name of the service requesting the list of available implementations. |
aLocale | the language used to query the list of available implementations. |
sequence< string > getConfiguredServices | ( | [in] string | aServiceName, |
[in] com::sun::star::lang::Locale | aLocale | ||
) |
queries the list of service implementations to be used for a given service and language.
aServiceName | the name of the service to get queried. |
aLocale | the language to get queried. |
com::sun::star::linguistic2::XHyphenator getHyphenator | ( | ) |
com::sun::star::linguistic2::XSpellChecker getSpellChecker | ( | ) |
com::sun::star::linguistic2::XThesaurus getThesaurus | ( | ) |
boolean removeLinguServiceManagerListener | ( | [in] com::sun::star::lang::XEventListener | xListener | ) |
removes a listener from the list of event listeners.
TRUE
if the listener was successfully removed, FALSE
otherwise.xListener | the listener to be removed. |
void setConfiguredServices | ( | [in] string | aServiceName, |
[in] com::sun::star::lang::Locale | aLocale, | ||
[in] sequence< string > | aServiceImplNames | ||
) |
sets the list of service implementations to be used for a given service and language.
aServiceName | the name of the service to set the list of implementations to be used. |
aLocale | the language to set the list. |
aServiceImplNames | the name of the service to set the list. |