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 Helix Code, Inc. |
---|
5 | Copyright (C) 2001 Ximian, Inc. |
---|
6 | Authors: Radek Doulik |
---|
7 | |
---|
8 | This library is free software; you can redistribute it and/or |
---|
9 | modify it under the terms of the GNU Library General Public |
---|
10 | License as published by the Free Software Foundation; either |
---|
11 | version 2 of the License, or (at your option) any later version. |
---|
12 | |
---|
13 | This library is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | Library General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU Library General Public License |
---|
19 | along with this library; see the file COPYING.LIB. If not, write to |
---|
20 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
---|
21 | Boston, MA 02111-1307, USA. |
---|
22 | */ |
---|
23 | |
---|
24 | #ifndef _HTMLENGINE_EDIT_TABLES_H |
---|
25 | #define _HTMLENGINE_EDIT_TABLES_H |
---|
26 | |
---|
27 | #include "htmltypes.h" |
---|
28 | #include "htmlenums.h" |
---|
29 | |
---|
30 | void html_engine_insert_table (HTMLEngine *e, |
---|
31 | gint cols, |
---|
32 | gint rows, |
---|
33 | gint width, |
---|
34 | gint percent, |
---|
35 | gint padding, |
---|
36 | gint spacing, |
---|
37 | gint border); |
---|
38 | void html_engine_insert_table_1_1 (HTMLEngine *e); |
---|
39 | void html_engine_insert_table_column (HTMLEngine *e, |
---|
40 | gboolean after); |
---|
41 | void html_engine_delete_table_column (HTMLEngine *e); |
---|
42 | void html_engine_insert_table_row (HTMLEngine *e, |
---|
43 | gboolean after); |
---|
44 | void html_engine_delete_table_row (HTMLEngine *e); |
---|
45 | void html_engine_table_set_border_width (HTMLEngine *e, |
---|
46 | HTMLTable *t, |
---|
47 | gint border_width, |
---|
48 | gboolean relative); |
---|
49 | void html_engine_table_set_bg_color (HTMLEngine *e, |
---|
50 | HTMLTable *t, |
---|
51 | GdkColor *c); |
---|
52 | void html_engine_table_set_bg_pixmap (HTMLEngine *e, |
---|
53 | HTMLTable *t, |
---|
54 | gchar *url); |
---|
55 | void html_engine_table_set_spacing (HTMLEngine *e, |
---|
56 | HTMLTable *t, |
---|
57 | gint spacing, |
---|
58 | gboolean relative); |
---|
59 | void html_engine_table_set_padding (HTMLEngine *e, |
---|
60 | HTMLTable *t, |
---|
61 | gint padding, |
---|
62 | gboolean relative); |
---|
63 | void html_engine_table_set_align (HTMLEngine *e, |
---|
64 | HTMLTable *t, |
---|
65 | HTMLHAlignType align); |
---|
66 | void html_engine_table_set_width (HTMLEngine *e, |
---|
67 | HTMLTable *t, |
---|
68 | gint width, |
---|
69 | gboolean percent); |
---|
70 | void html_engine_table_set_cols (HTMLEngine *e, |
---|
71 | gint cols); |
---|
72 | void html_engine_table_set_rows (HTMLEngine *e, |
---|
73 | gint rows); |
---|
74 | HTMLTable *html_engine_get_table (HTMLEngine *e); |
---|
75 | gboolean html_engine_table_goto_0_0 (HTMLEngine *e); |
---|
76 | gboolean html_engine_table_goto_col (HTMLEngine *e, |
---|
77 | gint col); |
---|
78 | gboolean html_engine_table_goto_row (HTMLEngine *e, |
---|
79 | gint row); |
---|
80 | gboolean html_engine_table_goto_pos (HTMLEngine *e, |
---|
81 | gint row, |
---|
82 | gint col); |
---|
83 | void html_engine_delete_table (HTMLEngine *e); |
---|
84 | HTMLTableCell *html_engine_new_cell (HTMLEngine *e, |
---|
85 | HTMLTable *table); |
---|
86 | #endif |
---|