Updated Esperanto translation
[gtkhtml.git] / gtkhtml / htmlengine-edit.h
blob69b7894b3f59017a6333e72f3e5399cda281726b
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.
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.
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.
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., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef _HTMLENGINE_EDIT_H
23 #define _HTMLENGINE_EDIT_H
25 #include <glib.h>
27 #include "htmlengine.h"
28 #include "htmlclueflow.h"
29 #include "gtkhtml.h"
31 void html_engine_undo (HTMLEngine *e);
32 void html_engine_redo (HTMLEngine *e);
33 void html_engine_set_mark (HTMLEngine *e);
34 void html_engine_select_spell_word_editable (HTMLEngine *e);
35 void html_engine_select_word_editable (HTMLEngine *e);
36 void html_engine_select_line_editable (HTMLEngine *e);
37 void html_engine_select_paragraph_editable (HTMLEngine *e);
38 void html_engine_select_paragraph_extended (HTMLEngine *e);
39 void html_engine_select_all_editable (HTMLEngine *e);
40 void html_engine_clipboard_push (HTMLEngine *e);
41 void html_engine_clipboard_pop (HTMLEngine *e);
42 void html_engine_clipboard_clear (HTMLEngine *e);
43 void html_engine_selection_push (HTMLEngine *e);
44 void html_engine_selection_pop (HTMLEngine *e);
45 gboolean html_engine_selection_stack_top (HTMLEngine *e,
46 gint *cpos,
47 gint *mpos);
48 gboolean html_engine_selection_stack_top_modify (HTMLEngine *e,
49 gint delta);
50 void html_engine_cut_and_paste_begin (HTMLEngine *e,
51 const gchar *undo_op_name,
52 const gchar *redo_op_name);
53 void html_engine_cut_and_paste_end (HTMLEngine *e);
54 void html_engine_cut_and_paste (HTMLEngine *e,
55 const gchar *undo_op_name,
56 const gchar *redo_op_name,
57 HTMLObjectForallFunc iterator,
58 gpointer data);
59 void html_engine_spell_check_range (HTMLEngine *e,
60 HTMLCursor *begin,
61 HTMLCursor *end);
62 void html_engine_set_data_by_type (HTMLEngine *e,
63 HTMLType object_type,
64 const gchar *key,
65 const gchar *value);
66 void html_engine_ensure_editable (HTMLEngine *e);
67 HTMLObject *html_engine_new_text_empty (HTMLEngine *e);
68 HTMLObject *html_engine_new_text (HTMLEngine *e,
69 const gchar *text,
70 gint len);
71 HTMLObject *html_engine_new_link (HTMLEngine *e,
72 const gchar *text,
73 gint len,
74 gchar *url);
75 gboolean html_engine_cursor_on_bop (HTMLEngine *e);
76 guint html_engine_get_indent (HTMLEngine *e);
77 void html_engine_indent_paragraph (HTMLEngine *e);
78 void html_engine_indent_pre_line (HTMLEngine *e);
79 void html_engine_fill_pre_line (HTMLEngine *e);
80 void html_engine_space_and_fill_line (HTMLEngine *e);
81 void html_engine_break_and_fill_line (HTMLEngine *e);
82 gboolean html_engine_next_cell (HTMLEngine *e,
83 gboolean create);
84 gboolean html_engine_prev_cell (HTMLEngine *e);
85 void html_engine_set_title (HTMLEngine *e,
86 const gchar *title);
87 gint html_engine_get_insert_level_for_object (HTMLEngine *e,
88 HTMLObject *o);
89 void html_engine_edit_set_direction (HTMLEngine *e,
90 HTMLDirection dir);
92 static (non instance) methods
94 gboolean html_is_in_word (gunichar uc);
95 HTMLHAlignType paragraph_alignment_to_html (GtkHTMLParagraphAlignment alignment);
96 void paragraph_style_to_clueflow_style (GtkHTMLParagraphStyle style,
97 HTMLClueFlowStyle *flow_style,
98 HTMLListType *item_type);
99 GtkHTMLParagraphAlignment html_alignment_to_paragraph (HTMLHAlignType alignment);
100 GtkHTMLParagraphStyle clueflow_style_to_paragraph_style (HTMLClueFlowStyle style,
101 HTMLListType item_type);
103 #endif /* _HTMLENGINE_EDIT_H */