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 AppleSpeller_check(AppleSpeller speller, const char * word, const char * lang);
32 void AppleSpeller_ignore(AppleSpeller speller, const char * word);
33 size_t AppleSpeller_makeSuggestion(AppleSpeller speller, const char * word, const char * lang);
34 const char * AppleSpeller_getSuggestion(AppleSpeller speller, size_t pos);
35 void AppleSpeller_learn(AppleSpeller speller, const char * word);
36 void AppleSpeller_unlearn(AppleSpeller speller, const char * word);
37 int AppleSpeller_hasLanguage(AppleSpeller speller, const char * lang);
38 int AppleSpeller_numMisspelledWords(AppleSpeller speller);
39 void AppleSpeller_misspelledWord(AppleSpeller speller, int index, int * start, int * length);