Language
	
	Asturianu (ast) 
	Català (ca) 
	Čeština (cs) 
	Dansk (da) 
	Deutsch (de) 
	
	English [US] (en-US) 
	Español (es) 
	Esperanto (eo) 
	Eesti keel (et) 
	Euskara (eu) 
	Français (fr) 
	Gàidhlig (gd) 
	Galego (gl) 
	Italiano (it) 
	Lietuvių (lt) 
	Magyar (hu) 
	Nederlands (nl) 
	Norsk (no) 
	Polski (pl) 
	Português [do Brasil] (pt-BR) 
	Português [Europeu] (pt) 
	Română (ro) 
	Slovenčina (sk) 
	Slovenščina (sl) 
	Suomi (fi) 
	Svenska (sv) 
	Yкраїнська (uk) 
	Tiếng Việt (vi) 
	Türkçe (tr) 
	ኦሮሚኛ (om) 
	Հայերեն (hy) 
	Ελληνικά (el) 
	български език (bg) 
	Русский (ru) 
	Cрпски [ћирилицом] (sr) 
	
	עברית (he) 
	हिन्दी (hi) 
	ភាសាខ្មែរ (km) 
	தமிழ் (ta) 
	ภาษาไทย (th) 
	简体中文 (zh-CN) 
	正體中文 (zh-TW) 
	日本語 (ja) 
	한국어 (ko) 
	 
	
  
  
    
     The Free and Open Productivity Suite
   
      
      
  
 
::  com  :: sun  :: star  :: linguistic2  :: 
 
 
interface XLinguServiceManager 
 
 
Description  
the basic interface to be used to access linguistic functionality.
  
This interface is used to access spellchecker, 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 spellchecking and thesaurus, the order in the list defines the order
 of creation/usage of those services.
 That is, if the first spellchecker 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.
 
  
See also  
SpellChecker , Hyphenator , Thesaurus  
 
 
 
 
 
Methods' Details 
 
getSpellChecker 
 
Returns  
the XSpellChecker 
 interface to be used for spellchecking.
  
 
 
 
 
 
getHyphenator 
 
Returns  
the XHyphenator 
 interface to be used for hyphenation.
  
 
 
 
 
 
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 succesfully 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 succesfully 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 Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.