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

« back to all changes in this revision

Viewing changes to src/htmlengine-edit-table.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
 
 
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_goto_table_0            (HTMLEngine         *e,
 
76
                                                    HTMLTable          *table);
 
77
gboolean       html_engine_goto_table              (HTMLEngine         *e,
 
78
                                                    HTMLTable          *table,
 
79
                                                    gint                row,
 
80
                                                    gint                col);
 
81
gboolean       html_engine_table_goto_col          (HTMLEngine         *e,
 
82
                                                    HTMLTable          *table,
 
83
                                                    gint                col);
 
84
gboolean       html_engine_table_goto_row          (HTMLEngine         *e,
 
85
                                                    HTMLTable          *table,
 
86
                                                    gint                row);
 
87
void           html_engine_delete_table            (HTMLEngine         *e);
 
88
HTMLTableCell *html_engine_new_cell                (HTMLEngine         *e,
 
89
                                                    HTMLTable          *table);
 
90
void           html_table_insert_row               (HTMLTable          *table,
 
91
                                                    HTMLEngine         *e,
 
92
                                                    gint                row,
 
93
                                                    HTMLTableCell     **row_cells,
 
94
                                                    HTMLUndoDirection   dir);
 
95
void           html_table_insert_column            (HTMLTable          *table,
 
96
                                                    HTMLEngine         *e,
 
97
                                                    gint                col,
 
98
                                                    HTMLTableCell     **column,
 
99
                                                    HTMLUndoDirection   dir);
 
100
void           html_table_delete_column            (HTMLTable          *t,
 
101
                                                    HTMLEngine         *e,
 
102
                                                    gint                col,
 
103
                                                    HTMLUndoDirection   dir);
 
104
void           html_table_delete_row               (HTMLTable          *t,
 
105
                                                    HTMLEngine         *e,
 
106
                                                    gint                row,
 
107
                                                    HTMLUndoDirection   dir);
 
108
 
 
109
#endif