1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* This file is part of the GtkHTML library. |
---|
3 | |
---|
4 | Copyright (C) 2000, 2001 Helix Code, Inc. |
---|
5 | Authors: Radek Doulik (rodo@helixcode.com) |
---|
6 | |
---|
7 | This library is free software; you can redistribute it and/or |
---|
8 | modify it under the terms of the GNU Library General Public |
---|
9 | License as published by the Free Software Foundation; either |
---|
10 | version 2 of the License, or (at your option) any later version. |
---|
11 | |
---|
12 | This library is distributed in the hope that it will be useful, |
---|
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
15 | Library General Public License for more details. |
---|
16 | |
---|
17 | You should have received a copy of the GNU Library General Public License |
---|
18 | along with this library; see the file COPYING.LIB. If not, write to |
---|
19 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
20 | Boston, MA 02111-1307, USA. |
---|
21 | |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef HTML_ENGINE_EDIT_CUT_AND_PASTE |
---|
25 | #define HTML_ENGINE_EDIT_CUT_AND_PASTE |
---|
26 | |
---|
27 | #include "htmltypes.h" |
---|
28 | |
---|
29 | void html_engine_copy (HTMLEngine *e); |
---|
30 | void html_engine_copy_object (HTMLEngine *e, |
---|
31 | HTMLObject **o, |
---|
32 | guint *len); |
---|
33 | gint html_engine_cut (HTMLEngine *e); |
---|
34 | void html_engine_cut_line (HTMLEngine *e); |
---|
35 | void html_engine_delete (HTMLEngine *e); |
---|
36 | void html_engine_paste (HTMLEngine *e); |
---|
37 | void html_engine_paste_object (HTMLEngine *e, |
---|
38 | HTMLObject *o, |
---|
39 | guint len); |
---|
40 | void html_engine_paste_text (HTMLEngine *e, |
---|
41 | const gchar *text, |
---|
42 | guint len); |
---|
43 | void html_engine_paste_text_with_extra_attributes (HTMLEngine *e, |
---|
44 | const gchar *text, |
---|
45 | guint len, |
---|
46 | PangoAttrList *attrs); |
---|
47 | void html_engine_paste_link (HTMLEngine *e, |
---|
48 | const char *text, |
---|
49 | int len, |
---|
50 | const char *complete_url); |
---|
51 | void html_engine_insert_text (HTMLEngine *e, |
---|
52 | const gchar *text, |
---|
53 | guint len); |
---|
54 | void html_engine_insert_text_with_extra_attributes (HTMLEngine *e, |
---|
55 | const gchar *text, |
---|
56 | guint len, |
---|
57 | PangoAttrList *attrs); |
---|
58 | void html_engine_insert_object (HTMLEngine *e, |
---|
59 | HTMLObject *o, |
---|
60 | guint len, |
---|
61 | gint level); |
---|
62 | void html_engine_append_object (HTMLEngine *e, |
---|
63 | HTMLObject *o, |
---|
64 | guint len); |
---|
65 | void html_engine_append_flow (HTMLEngine *e, |
---|
66 | HTMLObject *o, |
---|
67 | guint len); |
---|
68 | void html_engine_edit_set_link (HTMLEngine *e, |
---|
69 | const gchar *url, |
---|
70 | const gchar *target); |
---|
71 | void html_engine_insert_empty_paragraph (HTMLEngine *e); |
---|
72 | void html_engine_delete_n (HTMLEngine *e, |
---|
73 | guint len, |
---|
74 | gboolean forward); |
---|
75 | void html_engine_delete_container (HTMLEngine *e); |
---|
76 | void html_engine_set_insertion_link (HTMLEngine *e, |
---|
77 | const gchar *url, |
---|
78 | const gchar *target); |
---|
79 | #endif |
---|