1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* This file is part of the GtkHTML library. |
---|
3 | Copyright (C) 1999, 2000 Helix Code, Inc. |
---|
4 | Copyright (C) 2001 Ximian, Inc. |
---|
5 | |
---|
6 | This library is free software; you can redistribute it and/or |
---|
7 | modify it under the terms of the GNU Library General Public |
---|
8 | License as published by the Free Software Foundation; either |
---|
9 | version 2 of the License, or (at your option) any later version. |
---|
10 | |
---|
11 | This library is distributed in the hope that it will be useful, |
---|
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
14 | Library General Public License for more details. |
---|
15 | |
---|
16 | You should have received a copy of the GNU Library General Public License |
---|
17 | along with this library; see the file COPYING.LIB. If not, write to |
---|
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
19 | Boston, MA 02111-1307, USA. |
---|
20 | */ |
---|
21 | |
---|
22 | #ifndef _HTMLENGINE_EDIT_H |
---|
23 | #define _HTMLENGINE_EDIT_H |
---|
24 | |
---|
25 | #include <glib.h> |
---|
26 | #include <gal/unicode/gunicode.h> |
---|
27 | |
---|
28 | #include "htmlengine.h" |
---|
29 | #include "htmlclueflow.h" |
---|
30 | #include "gtkhtml.h" |
---|
31 | |
---|
32 | void html_engine_undo (HTMLEngine *e); |
---|
33 | void html_engine_redo (HTMLEngine *e); |
---|
34 | void html_engine_set_mark (HTMLEngine *e); |
---|
35 | void html_engine_select_spell_word_editable (HTMLEngine *e); |
---|
36 | void html_engine_select_word_editable (HTMLEngine *e); |
---|
37 | void html_engine_select_line_editable (HTMLEngine *e); |
---|
38 | void html_engine_select_paragraph_editable (HTMLEngine *e); |
---|
39 | void html_engine_select_paragraph_extended (HTMLEngine *e); |
---|
40 | void html_engine_select_all_editable (HTMLEngine *e); |
---|
41 | void html_engine_clipboard_push (HTMLEngine *e); |
---|
42 | void html_engine_clipboard_pop (HTMLEngine *e); |
---|
43 | void html_engine_clipboard_clear (HTMLEngine *e); |
---|
44 | void html_engine_selection_push (HTMLEngine *e); |
---|
45 | void html_engine_selection_pop (HTMLEngine *e); |
---|
46 | void html_engine_cut_and_paste_begin (HTMLEngine *e, |
---|
47 | const gchar *undo_op_name, |
---|
48 | const gchar *redo_op_name); |
---|
49 | void html_engine_cut_and_paste_end (HTMLEngine *e); |
---|
50 | void html_engine_cut_and_paste (HTMLEngine *e, |
---|
51 | const gchar *undo_op_name, |
---|
52 | const gchar *redo_op_name, |
---|
53 | HTMLObjectForallFunc iterator, |
---|
54 | gpointer data); |
---|
55 | void html_engine_spell_check_range (HTMLEngine *e, |
---|
56 | HTMLCursor *begin, |
---|
57 | HTMLCursor *end); |
---|
58 | void html_engine_set_data_by_type (HTMLEngine *e, |
---|
59 | HTMLType object_type, |
---|
60 | const gchar *key, |
---|
61 | const gchar *value); |
---|
62 | void html_engine_ensure_editable (HTMLEngine *e); |
---|
63 | HTMLObject *html_engine_new_text_empty (HTMLEngine *e); |
---|
64 | HTMLObject *html_engine_new_text (HTMLEngine *e, |
---|
65 | const gchar *text, |
---|
66 | gint len); |
---|
67 | HTMLObject * html_engine_new_link (HTMLEngine *e, |
---|
68 | const gchar *text, |
---|
69 | gint len, |
---|
70 | gchar *url); |
---|
71 | gboolean html_engine_cursor_on_bop (HTMLEngine *e); |
---|
72 | guint html_engine_get_indent (HTMLEngine *e); |
---|
73 | void html_engine_indent_paragraph (HTMLEngine *e); |
---|
74 | void html_engine_indent_pre_line (HTMLEngine *e); |
---|
75 | void html_engine_fill_pre_line (HTMLEngine *e); |
---|
76 | void html_engine_space_and_fill_line (HTMLEngine *e); |
---|
77 | void html_engine_break_and_fill_line (HTMLEngine *e); |
---|
78 | gboolean html_engine_next_cell (HTMLEngine *e, |
---|
79 | gboolean create); |
---|
80 | gboolean html_engine_prev_cell (HTMLEngine *e); |
---|
81 | void html_engine_set_title (HTMLEngine *e, |
---|
82 | const gchar *title); |
---|
83 | /* |
---|
84 | static (non instance) methods |
---|
85 | */ |
---|
86 | gboolean html_is_in_word (gunichar uc); |
---|
87 | HTMLHAlignType paragraph_alignment_to_html (GtkHTMLParagraphAlignment alignment); |
---|
88 | void paragraph_style_to_clueflow_style (GtkHTMLParagraphStyle style, |
---|
89 | HTMLClueFlowStyle *flow_style, |
---|
90 | HTMLListType *item_type); |
---|
91 | GtkHTMLParagraphAlignment html_alignment_to_paragraph (HTMLHAlignType alignment); |
---|
92 | GtkHTMLParagraphStyle clueflow_style_to_paragraph_style (HTMLClueFlowStyle style, |
---|
93 | HTMLListType item_type); |
---|
94 | |
---|
95 | #endif /* _HTMLENGINE_EDIT_H */ |
---|