LibreOffice
LibreOffice 24.2 SDK API Reference
|
is used to manage and maintain a list of dictionaries. More...
import"XDictionaryList.idl";
Public Member Functions | |
short | getCount () |
sequence< com::sun::star::linguistic2::XDictionary > | getDictionaries () |
com::sun::star::linguistic2::XDictionary | getDictionaryByName ([in] string aDictionaryName) |
searches the list for a dictionary with a given name. More... | |
boolean | addDictionary ([in] com::sun::star::linguistic2::XDictionary xDictionary) |
adds a dictionary to the list. More... | |
boolean | removeDictionary ([in] com::sun::star::linguistic2::XDictionary xDictionary) |
removes a single dictionary from the list. More... | |
boolean | addDictionaryListEventListener ([in] com::sun::star::linguistic2::XDictionaryListEventListener xListener, [in] boolean bReceiveVerbose) |
adds an entry to the list of dictionary-list event listeners. More... | |
boolean | removeDictionaryListEventListener ([in] com::sun::star::linguistic2::XDictionaryListEventListener xListener) |
removes an entry from the list of dictionary-list event listeners. More... | |
short | beginCollectEvents () |
increases request level for event buffering by one. More... | |
short | endCollectEvents () |
flushes the event buffer and decreases the request level for event buffering by one. More... | |
short | flushEvents () |
notifies the listeners of all buffered events and then clears that buffer. More... | |
com::sun::star::linguistic2::XDictionary | createDictionary ([in] string aName, [in] com::sun::star::lang::Locale aLocale, [in] com::sun::star::linguistic2::DictionaryType eDicType, [in] string aURL) |
creates a new dictionary. 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... | |
is used to manage and maintain a list of dictionaries.
A dictionary-list may be given to a spell checker or hyphenator service implementation on their creation in order to supply a set of dictionaries and additional information to be used for those purposes.
boolean addDictionary | ( | [in] com::sun::star::linguistic2::XDictionary | xDictionary | ) |
adds a dictionary to the list.
Additionally, the dictionary-list will add itself to the list of dictionary event listeners of that dictionary.
TRUE
if the dictionary was added successfully, FALSE
otherwise.xDictionary | the dictionary to be added. |
boolean addDictionaryListEventListener | ( | [in] com::sun::star::linguistic2::XDictionaryListEventListener | xListener, |
[in] boolean | bReceiveVerbose | ||
) |
adds an entry to the list of dictionary-list event listeners.
On dictionary-list events, each entry in the listener list will be notified via a call to com::sun::star::linguistic2::XDictionaryListEventListener::processDictionaryListEvent().
TRUE
if the entry was made, FALSE
otherwise. If com::sun::star::lang::XEventListener::disposing() was called before, it will always fail.xListener | the object to be notified of dictionary-list events. |
bReceiveVerbose | TRUE if the listener requires more detailed event notification than usual. |
short beginCollectEvents | ( | ) |
increases request level for event buffering by one.
The request level for event buffering is an integer counter that is initially set to 0. As long as the request level is not 0, events will be buffered until the next flushing of the buffer.
com::sun::star::linguistic2::XDictionary createDictionary | ( | [in] string | aName, |
[in] com::sun::star::lang::Locale | aLocale, | ||
[in] com::sun::star::linguistic2::DictionaryType | eDicType, | ||
[in] string | aURL | ||
) |
creates a new dictionary.
NULL
on failure.aName | is the name of the dictionary (should be unique). |
aLocale | defines the language of the dictionary. Use an empty aLocale for dictionaries which may contain entries of all languages. |
eDicType | specifies the type of the dictionary. |
aURL | is the URL of the location where the dictionary is persistent, if the XStorable interface is supported. It may be empty, which means the dictionary will not be persistent. |
short endCollectEvents | ( | ) |
flushes the event buffer and decreases the request level for event buffering by one.
There should be one matching endCollectEvents call for every beginCollectEvents call. Usually you will group these around some code where you do not wish to get notified of every single event.
short flushEvents | ( | ) |
notifies the listeners of all buffered events and then clears that buffer.
short getCount | ( | ) |
sequence<com::sun::star::linguistic2::XDictionary> getDictionaries | ( | ) |
com::sun::star::linguistic2::XDictionary getDictionaryByName | ( | [in] string | aDictionaryName | ) |
searches the list for a dictionary with a given name.
NULL
will be returned.aDictionaryName | specifies the name of the dictionary to look for. |
boolean removeDictionary | ( | [in] com::sun::star::linguistic2::XDictionary | xDictionary | ) |
removes a single dictionary from the list.
If the dictionary is still active, it will be deactivated first. The dictionary-list will remove itself from the list of dictionary event listeners of the dictionary.
TRUE
if the dictionary was removed successfully, FALSE
otherwise.xDictionary | dictionary to be removed from the list of dictionaries. |
boolean removeDictionaryListEventListener | ( | [in] com::sun::star::linguistic2::XDictionaryListEventListener | xListener | ) |
removes an entry from the list of dictionary-list event listeners.
TRUE
if the object to be removed was found and removed, FALSE
otherwise.xListener | the object to be removed from the listener list. |