diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 17:44:12 +0000 |
commit | 8ccb487c21368a7fdc8c7c72315325bf0aa06147 (patch) | |
tree | b2056fae01d325924508a41731edfbd4c3cddd23 /src/editor/spell.h | |
parent | Initial commit. (diff) | |
download | mc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.tar.xz mc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.zip |
Adding upstream version 3:4.8.29.upstream/3%4.8.29upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/editor/spell.h')
-rw-r--r-- | src/editor/spell.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/editor/spell.h b/src/editor/spell.h new file mode 100644 index 0000000..2b704f2 --- /dev/null +++ b/src/editor/spell.h @@ -0,0 +1,36 @@ +#ifndef MC__EDIT_ASPELL_H +#define MC__EDIT_ASPELL_H + +#include "lib/global.h" /* include <glib.h> */ + +/*** typedefs(not structures) and defined constants **********************************************/ + +/*** enums ***************************************************************************************/ + +/*** structures declarations (and typedefs of structures)*****************************************/ + +/*** global variables defined in .c file *********************************************************/ + +/*** declarations of public functions ************************************************************/ + +void aspell_init (void); +void aspell_clean (void); +gboolean aspell_check (const char *word, const int word_size); +unsigned int aspell_suggest (GArray * suggest, const char *word, const int word_size); +void aspell_array_clean (GArray * array); +unsigned int aspell_get_lang_list (GArray * lang_list); +const char *aspell_get_lang (void); +gboolean aspell_set_lang (const char *lang); +gboolean aspell_add_to_dict (const char *word, const int word_size); + +int edit_suggest_current_word (WEdit * edit); +void edit_spellcheck_file (WEdit * edit); +void edit_set_spell_lang (void); + +int spell_dialog_spell_suggest_show (WEdit * edit, const char *word, char **new_word, + GArray * suggest); +char *spell_dialog_lang_list_show (GArray * languages); + +/*** inline functions ****************************************************************************/ + +#endif /* MC__EDIT_ASPELL_H */ |