Implementing a Thesaurus

From Apache OpenOffice Wiki
< Documentation‎ | DevGuide
Revision as of 12:02, 3 January 2021 by DiGro (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

A sample implementation of a thesaurus is found in the examples for linguistic.

The thesaurus implements the following interfaces:


For the implementation of the thesaurus, modify the sample thesaurus by following the same procedure as for the spell checker and thesaurus:

Choose a different implementation name for the service and modify the

  public Locale[] getLocales()


  public boolean hasLocale(...)


The only function to be modified at the stated position to implement the interface is

  public XMeaning[] queryMeanings(...)

Look in the constructor

  public SampleThesaurus()

to see if there are properties you do not require.

Registration and activation is the same as for the spell checker and hyphenator.

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages