~ubuntu-branches/ubuntu/trusty/gtkhtml3.14/trusty-proposed

« back to all changes in this revision

Viewing changes to src/htmlengine-edit.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-03-13 11:26:39 UTC
  • Revision ID: james.westby@ubuntu.com-20070313112639-5calgv5774i4f95v
Tags: upstream-3.14.0
ImportĀ upstreamĀ versionĀ 3.14.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
27
#include "htmlengine.h"
 
28
#include "htmlclueflow.h"
 
29
#include "gtkhtml.h"
 
30
 
 
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
int                        html_engine_get_insert_level_for_object (HTMLEngine                *e,
 
88
                                                                    HTMLObject                *o);
 
89
void html_engine_edit_set_direction (HTMLEngine *e,
 
90
                                     HTMLDirection dir);
 
91
/*
 
92
  static (non instance) methods
 
93
*/
 
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);
 
102
 
 
103
#endif /* _HTMLENGINE_EDIT_H */