]> git.lyx.org Git - lyx.git/blob - src/support/AppleSpeller.h
8f433955ee067aaf9c10802103083c5dda4b0151
[lyx.git] / src / support / AppleSpeller.h
1 // -*- C++ -*-
2 /**
3  * \file AppleSpeller.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Stephan Witt
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef LYX_SUPPORT_SPELLCHECK_H
13 #define LYX_SUPPORT_SPELLCHECK_H
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 typedef struct AppleSpellerRec * AppleSpeller ;
20
21 AppleSpeller newAppleSpeller(void);
22 void freeAppleSpeller(AppleSpeller speller);
23
24 int checkAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
25 void ignoreAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
26 size_t makeSuggestionAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
27 const char * getSuggestionAppleSpeller(AppleSpeller speller, size_t pos);
28 void learnAppleSpeller(AppleSpeller speller, const char * word, const char * lang);
29 int hasLanguageAppleSpeller(AppleSpeller speller, const char * lang);
30
31 #ifdef __cplusplus
32 } // extern "C"
33 #endif
34
35 #endif