]> git.lyx.org Git - lyx.git/blobdiff - src/support/AppleSpeller.h
Implement LFUN_SPELLING_REMOVE (patch from switt)
[lyx.git] / src / support / AppleSpeller.h
index 3ff3ea19adc7cfee1bc8be7a786967eaee265fe0..3012249410b93f0f5fcc939c4fe42137b41d451a 100644 (file)
 extern "C" {
 #endif
 
+typedef enum SpellCheckResult {
+       SPELL_CHECK_FAILED,
+       SPELL_CHECK_OK,
+       SPELL_CHECK_IGNORED,
+       SPELL_CHECK_LEARNED
+} SpellCheckResult ;
+
 typedef struct AppleSpellerRec * AppleSpeller ;
 
 AppleSpeller newAppleSpeller(void);
 void freeAppleSpeller(AppleSpeller speller);
 
-int checkAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
+SpellCheckResult checkAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
 void ignoreAppleSpeller(AppleSpeller speller, const char * word);
 size_t makeSuggestionAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
 const char * getSuggestionAppleSpeller(AppleSpeller speller, size_t pos);
 void learnAppleSpeller(AppleSpeller speller, const char * word);
+void unlearnAppleSpeller(AppleSpeller speller, const char * word);
 int hasLanguageAppleSpeller(AppleSpeller speller, const char * lang);
 
 #ifdef __cplusplus