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., 59 Temple Place - Suite 330,
19
Boston, MA 02111-1307, USA.
22
#ifndef _HTMLENGINE_EDIT_H
23
#define _HTMLENGINE_EDIT_H
27
#include "htmlengine.h"
28
#include "htmlclueflow.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,
48
gboolean html_engine_selection_stack_top_modify (HTMLEngine *e,
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,
59
void html_engine_spell_check_range (HTMLEngine *e,
62
void html_engine_set_data_by_type (HTMLEngine *e,
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,
71
HTMLObject *html_engine_new_link (HTMLEngine *e,
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,
84
gboolean html_engine_prev_cell (HTMLEngine *e);
85
void html_engine_set_title (HTMLEngine *e,
87
int html_engine_get_insert_level_for_object (HTMLEngine *e,
89
void html_engine_edit_set_direction (HTMLEngine *e,
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 */