|
Packit |
aa0600 |
/*
|
|
Packit |
aa0600 |
* This file is part of gspell, a spell-checking library.
|
|
Packit |
aa0600 |
*
|
|
Packit |
aa0600 |
* Copyright 2016 - Sébastien Wilmet
|
|
Packit |
aa0600 |
*
|
|
Packit |
aa0600 |
* This library is free software; you can redistribute it and/or
|
|
Packit |
aa0600 |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
aa0600 |
* License as published by the Free Software Foundation; either
|
|
Packit |
aa0600 |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
aa0600 |
*
|
|
Packit |
aa0600 |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
aa0600 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
aa0600 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
aa0600 |
* Lesser General Public License for more details.
|
|
Packit |
aa0600 |
*
|
|
Packit |
aa0600 |
* You should have received a copy of the GNU Lesser General Public License
|
|
Packit |
aa0600 |
* along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
aa0600 |
*/
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
#ifndef GSPELL_CURRENT_WORD_POLICY_H
|
|
Packit |
aa0600 |
#define GSPELL_CURRENT_WORD_POLICY_H
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
#include <glib-object.h>
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_BEGIN_DECLS
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
#define GSPELL_TYPE_CURRENT_WORD_POLICY (_gspell_current_word_policy_get_type ())
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
G_DECLARE_DERIVABLE_TYPE (GspellCurrentWordPolicy, _gspell_current_word_policy,
|
|
Packit |
aa0600 |
GSPELL, CURRENT_WORD_POLICY,
|
|
Packit |
aa0600 |
GObject)
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
struct _GspellCurrentWordPolicyClass
|
|
Packit |
aa0600 |
{
|
|
Packit |
aa0600 |
GObjectClass parent_class;
|
|
Packit |
aa0600 |
};
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
GspellCurrentWordPolicy *
|
|
Packit |
aa0600 |
_gspell_current_word_policy_new (void);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
gboolean _gspell_current_word_policy_get_check_current_word (GspellCurrentWordPolicy *policy);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
void _gspell_current_word_policy_set_check_current_word (GspellCurrentWordPolicy *policy,
|
|
Packit |
aa0600 |
gboolean check_current_word);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
void _gspell_current_word_policy_session_cleared (GspellCurrentWordPolicy *policy);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
void _gspell_current_word_policy_language_changed (GspellCurrentWordPolicy *policy);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
void _gspell_current_word_policy_checker_changed (GspellCurrentWordPolicy *policy);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
void _gspell_current_word_policy_cursor_moved (GspellCurrentWordPolicy *policy);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
void _gspell_current_word_policy_several_chars_inserted (GspellCurrentWordPolicy *policy);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
void _gspell_current_word_policy_single_char_inserted (GspellCurrentWordPolicy *policy,
|
|
Packit |
aa0600 |
gunichar ch,
|
|
Packit |
aa0600 |
gboolean empty_selection,
|
|
Packit |
aa0600 |
gboolean at_cursor_pos);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_GNUC_INTERNAL
|
|
Packit |
aa0600 |
void _gspell_current_word_policy_text_deleted (GspellCurrentWordPolicy *policy,
|
|
Packit |
aa0600 |
gboolean empty_selection,
|
|
Packit |
aa0600 |
gboolean spans_several_lines,
|
|
Packit |
aa0600 |
gboolean several_chars,
|
|
Packit |
aa0600 |
gboolean cursor_pos_at_start,
|
|
Packit |
aa0600 |
gboolean cursor_pos_at_end,
|
|
Packit |
aa0600 |
gboolean start_is_inside_word,
|
|
Packit |
aa0600 |
gboolean start_ends_word,
|
|
Packit |
aa0600 |
gboolean end_is_inside_word,
|
|
Packit |
aa0600 |
gboolean end_ends_word);
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
G_END_DECLS
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
#endif /* GSPELL_CURRENT_WORD_POLICY_H */
|
|
Packit |
aa0600 |
|
|
Packit |
aa0600 |
/* ex:set ts=8 noet: */
|