4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef LYX_SUPPORT_SPELLCHECK_H
13 #define LYX_SUPPORT_SPELLCHECK_H
19 typedef enum SpellCheckResult {
26 typedef struct AppleSpellerRec * AppleSpeller ;
28 AppleSpeller newAppleSpeller(void);
29 void freeAppleSpeller(AppleSpeller speller);
31 SpellCheckResult checkAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
32 void ignoreAppleSpeller(AppleSpeller speller, const char * word);
33 size_t makeSuggestionAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
34 const char * getSuggestionAppleSpeller(AppleSpeller speller, size_t pos);
35 void learnAppleSpeller(AppleSpeller speller, const char * word);
36 void unlearnAppleSpeller(AppleSpeller speller, const char * word);
37 int hasLanguageAppleSpeller(AppleSpeller speller, const char * lang);