1 /* 2 * speller.h - this file is part of Spellcheck, a Geany plugin 3 * 4 * Copyright 2008-2011 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de> 5 * Copyright 2008-2010 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 20 * MA 02110-1301, USA. 21 * 22 * $Id$ 23 */ 24 25 26 #ifndef SC_SPELLER_H 27 #define SC_SPELLER_H 1 28 29 30 gint sc_speller_process_line(GeanyDocument *doc, gint line_number); 31 32 void sc_speller_check_document(GeanyDocument *doc); 33 34 void sc_speller_reinit_enchant_dict(void); 35 36 gchar *sc_speller_get_default_lang(void); 37 38 void sc_speller_dict_free_string_list(gchar **tmp_suggs); 39 40 void sc_speller_add_word(const gchar *word); 41 42 gboolean sc_speller_dict_check(const gchar *word); 43 44 gchar **sc_speller_dict_suggest(const gchar *word, gsize *n_suggs); 45 46 gboolean sc_speller_is_text(GeanyDocument *doc, gint pos); 47 48 void sc_speller_add_word_to_session(const gchar *word); 49 50 void sc_speller_store_replacement(const gchar *old_word, const gchar *new_word); 51 52 void sc_speller_init(void); 53 54 void sc_speller_free(void); 55 56 #endif 57