~ubuntu-branches/ubuntu/vivid/gtkhtml4.0/vivid-proposed

« back to all changes in this revision

Viewing changes to gtkhtml/htmlengine-edit-table.c

  • Committer: Package Import Robot
  • Author(s): Josselin Mouette
  • Date: 2011-12-16 19:49:17 UTC
  • mfrom: (1.1.4) (3.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20111216194917-giursnttx0kru23g
Tags: 4.2.2-1
* New upstream release.
* 01_deprecated.patch: patch from upstream git. Don’t use 
  _DISABLE_DEPRECATED flags.
* Use dh-autoreconf.
* Update Vcs-* fields.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2
2
/*  This file is part of the GtkHTML library.
3
 
 
4
 
    Copyright (C) 2000 Helix Code, Inc.
5
 
    Copyright (C) 2001, 2002 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., 51 Franklin Street, Fifth Floor,
21
 
    Boston, MA 02110-1301, USA.
 
3
 *
 
4
 *  Copyright (C) 2000 Helix Code, Inc.
 
5
 *  Copyright (C) 2001, 2002 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., 51 Franklin Street, Fifth Floor,
 
21
 *  Boston, MA 02110-1301, USA.
22
22
*/
23
23
 
24
24
#include <config.h>
51
51
}
52
52
 
53
53
HTMLTableCell *
54
 
html_engine_new_cell (HTMLEngine *e, HTMLTable *table)
 
54
html_engine_new_cell (HTMLEngine *e,
 
55
                      HTMLTable *table)
55
56
{
56
57
        HTMLObject    *cell;
57
58
        HTMLObject    *text;
101
102
 **/
102
103
 
103
104
void
104
 
html_engine_insert_table (HTMLEngine *e, gint cols, gint rows, gint width, gint percent,
105
 
                          gint padding, gint spacing, gint border)
 
105
html_engine_insert_table (HTMLEngine *e,
 
106
                          gint cols,
 
107
                          gint rows,
 
108
                          gint width,
 
109
                          gint percent,
 
110
                          gint padding,
 
111
                          gint spacing,
 
112
                          gint border)
106
113
{
107
114
        HTMLObject *table;
108
115
        gint r, c;
119
126
                html_table_end_row (HTML_TABLE (table));
120
127
        }
121
128
 
122
 
        html_engine_append_object (e, table, 1 + rows*cols);
123
 
        html_cursor_backward_n (e->cursor, e, rows*cols);
 
129
        html_engine_append_object (e, table, 1 + rows * cols);
 
130
        html_cursor_backward_n (e->cursor, e, rows * cols);
124
131
}
125
132
 
126
133
/*
147
154
}
148
155
 
149
156
static void
150
 
insert_column_undo_action (HTMLEngine *e, HTMLUndoData *data, HTMLUndoDirection dir, guint position_after)
 
157
insert_column_undo_action (HTMLEngine *e,
 
158
                           HTMLUndoData *data,
 
159
                           HTMLUndoDirection dir,
 
160
                           guint position_after)
151
161
{
152
162
        html_table_delete_column (html_engine_get_table (e), e, INSERT_UNDO (data)->pos, html_undo_direction_reverse (dir));
153
163
}
154
164
 
155
165
static void
156
 
insert_column_setup_undo (HTMLEngine *e, gint col, guint position_before, HTMLUndoDirection dir)
 
166
insert_column_setup_undo (HTMLEngine *e,
 
167
                          gint col,
 
168
                          guint position_before,
 
169
                          HTMLUndoDirection dir)
157
170
{
158
171
        html_undo_add_action (e->undo, e,
159
172
                              html_undo_action_new ("Insert table column", insert_column_undo_action,
163
176
}
164
177
 
165
178
gboolean
166
 
html_engine_goto_table_0 (HTMLEngine *e, HTMLTable *table)
 
179
html_engine_goto_table_0 (HTMLEngine *e,
 
180
                          HTMLTable *table)
167
181
{
168
182
        return html_cursor_jump_to (e->cursor, e, HTML_OBJECT (table), 0);
169
183
}
170
184
 
171
185
gboolean
172
 
html_engine_goto_table (HTMLEngine *e, HTMLTable *table, gint row, gint col)
 
186
html_engine_goto_table (HTMLEngine *e,
 
187
                        HTMLTable *table,
 
188
                        gint row,
 
189
                        gint col)
173
190
{
174
191
        HTMLTableCell *cell;
175
192
 
185
202
}
186
203
 
187
204
gboolean
188
 
html_engine_table_goto_col (HTMLEngine *e, HTMLTable *table, gint col)
 
205
html_engine_table_goto_col (HTMLEngine *e,
 
206
                            HTMLTable *table,
 
207
                            gint col)
189
208
{
190
209
        HTMLTableCell *cell;
191
210
 
204
223
}
205
224
 
206
225
gboolean
207
 
html_engine_table_goto_row (HTMLEngine *e, HTMLTable *table, gint row)
 
226
html_engine_table_goto_row (HTMLEngine *e,
 
227
                            HTMLTable *table,
 
228
                            gint row)
208
229
{
209
230
        HTMLTableCell *cell;
210
231
 
223
244
}
224
245
 
225
246
void
226
 
html_table_insert_column (HTMLTable *t, HTMLEngine *e, gint col, HTMLTableCell **column, HTMLUndoDirection dir)
 
247
html_table_insert_column (HTMLTable *t,
 
248
                          HTMLEngine *e,
 
249
                          gint col,
 
250
                          HTMLTableCell **column,
 
251
                          HTMLUndoDirection dir)
227
252
{
228
253
        HTMLTableCell *cell;
229
254
        HTMLPoint pos;
285
310
 **/
286
311
 
287
312
void
288
 
html_engine_insert_table_column (HTMLEngine *e, gboolean after)
 
313
html_engine_insert_table_column (HTMLEngine *e,
 
314
                                 gboolean after)
289
315
{
290
316
        HTMLTable *table;
291
317
        HTMLTableCell *cell;
322
348
}
323
349
 
324
350
static DeleteCellsUndo *
325
 
delete_cells_undo_new (HTMLTableCell **cells, gint size, gint pos)
 
351
delete_cells_undo_new (HTMLTableCell **cells,
 
352
                       gint size,
 
353
                       gint pos)
326
354
{
327
355
        DeleteCellsUndo *data;
328
356
 
339
367
}
340
368
 
341
369
static void
342
 
delete_column_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
370
delete_column_undo_action (HTMLEngine *e,
 
371
                           HTMLUndoData *undo_data,
 
372
                           HTMLUndoDirection dir,
 
373
                           guint position_after)
343
374
{
344
375
        DeleteCellsUndo *data = (DeleteCellsUndo *) undo_data;
345
376
        HTMLTable *table;
355
386
}
356
387
 
357
388
static void
358
 
delete_column_setup_undo (HTMLEngine *e, HTMLTableCell **column, gint size, guint position_after, gint col, HTMLUndoDirection dir)
 
389
delete_column_setup_undo (HTMLEngine *e,
 
390
                          HTMLTableCell **column,
 
391
                          gint size,
 
392
                          guint position_after,
 
393
                          gint col,
 
394
                          HTMLUndoDirection dir)
359
395
{
360
396
        html_undo_add_action (e->undo, e,
361
397
                              html_undo_action_new ("Delete table column", delete_column_undo_action,
365
401
}
366
402
 
367
403
static void
368
 
backward_before_col (HTMLEngine *e, HTMLTable *table, gint col)
 
404
backward_before_col (HTMLEngine *e,
 
405
                     HTMLTable *table,
 
406
                     gint col)
369
407
{
370
408
        HTMLObject *cell;
371
409
 
377
415
}
378
416
 
379
417
void
380
 
html_table_delete_column (HTMLTable *t, HTMLEngine *e, gint col, HTMLUndoDirection dir)
 
418
html_table_delete_column (HTMLTable *t,
 
419
                          HTMLEngine *e,
 
420
                          gint col,
 
421
                          HTMLUndoDirection dir)
381
422
{
382
423
        HTMLTableCell **column;
383
424
        HTMLTableCell *cell;
430
471
}
431
472
 
432
473
static gboolean
433
 
html_engine_get_table_start_end_cells (HTMLEngine *e, HTMLTableCell **start_cell, HTMLTableCell **end_cell)
 
474
html_engine_get_table_start_end_cells (HTMLEngine *e,
 
475
                                       HTMLTableCell **start_cell,
 
476
                                       HTMLTableCell **end_cell)
434
477
{
435
478
        if (!e->cursor->object->parent ||
436
479
            !e->cursor->object->parent->parent ||
500
543
 */
501
544
 
502
545
static void
503
 
insert_row_undo_action (HTMLEngine *e, HTMLUndoData *data, HTMLUndoDirection dir, guint position_after)
 
546
insert_row_undo_action (HTMLEngine *e,
 
547
                        HTMLUndoData *data,
 
548
                        HTMLUndoDirection dir,
 
549
                        guint position_after)
504
550
{
505
551
        html_table_delete_row (html_engine_get_table (e), e, INSERT_UNDO (data)->pos, html_undo_direction_reverse (dir));
506
552
}
507
553
 
508
554
static void
509
 
insert_row_setup_undo (HTMLEngine *e, gint row, guint position_before, HTMLUndoDirection dir)
 
555
insert_row_setup_undo (HTMLEngine *e,
 
556
                       gint row,
 
557
                       guint position_before,
 
558
                       HTMLUndoDirection dir)
510
559
{
511
560
        html_undo_add_action (e->undo, e,
512
561
                              html_undo_action_new ("Insert table row", insert_row_undo_action,
517
566
}
518
567
 
519
568
void
520
 
html_table_insert_row (HTMLTable *t, HTMLEngine *e, gint row, HTMLTableCell **row_cells, HTMLUndoDirection dir)
 
569
html_table_insert_row (HTMLTable *t,
 
570
                       HTMLEngine *e,
 
571
                       gint row,
 
572
                       HTMLTableCell **row_cells,
 
573
                       HTMLUndoDirection dir)
521
574
{
522
575
        HTMLTableCell *cell;
523
576
        HTMLPoint pos;
577
630
 **/
578
631
 
579
632
void
580
 
html_engine_insert_table_row (HTMLEngine *e, gboolean after)
 
633
html_engine_insert_table_row (HTMLEngine *e,
 
634
                              gboolean after)
581
635
{
582
636
        HTMLTable *table;
583
637
        HTMLTableCell *cell;
593
647
 */
594
648
 
595
649
static void
596
 
delete_row_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
650
delete_row_undo_action (HTMLEngine *e,
 
651
                        HTMLUndoData *undo_data,
 
652
                        HTMLUndoDirection dir,
 
653
                        guint position_after)
597
654
{
598
655
        DeleteCellsUndo *data = (DeleteCellsUndo *) undo_data;
599
656
        HTMLTable *table;
609
666
}
610
667
 
611
668
static void
612
 
delete_row_setup_undo (HTMLEngine *e, HTMLTableCell **row_cells, gint size, guint position_after,
613
 
                       gint row, HTMLUndoDirection dir)
 
669
delete_row_setup_undo (HTMLEngine *e,
 
670
                       HTMLTableCell **row_cells,
 
671
                       gint size,
 
672
                       guint position_after,
 
673
                       gint row,
 
674
                       HTMLUndoDirection dir)
614
675
{
615
676
        html_undo_add_action (e->undo, e,
616
677
                              html_undo_action_new ("Delete table row", delete_row_undo_action,
620
681
}
621
682
 
622
683
static void
623
 
backward_before_row (HTMLEngine *e, HTMLTable *table, gint row)
 
684
backward_before_row (HTMLEngine *e,
 
685
                     HTMLTable *table,
 
686
                     gint row)
624
687
{
625
688
        HTMLObject *cell;
626
689
 
632
695
}
633
696
 
634
697
void
635
 
html_table_delete_row (HTMLTable *t, HTMLEngine *e, gint row, HTMLUndoDirection dir)
 
698
html_table_delete_row (HTMLTable *t,
 
699
                       HTMLEngine *e,
 
700
                       gint row,
 
701
                       HTMLUndoDirection dir)
636
702
{
637
703
        HTMLTableCell **row_cells;
638
704
        HTMLTableCell *cell;
786
852
static void table_set_border_width (HTMLEngine *e, HTMLTable *t, gint border_width, gboolean relative, HTMLUndoDirection dir);
787
853
 
788
854
static void
789
 
table_set_border_width_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
855
table_set_border_width_undo_action (HTMLEngine *e,
 
856
                                    HTMLUndoData *undo_data,
 
857
                                    HTMLUndoDirection dir,
 
858
                                    guint position_after)
790
859
{
791
860
        table_set_border_width (e, html_engine_get_table (e), ((HTMLTableSetAttrUndo *) undo_data)->attr.border, FALSE,
792
861
                                html_undo_direction_reverse (dir));
793
862
}
794
863
 
795
864
static void
796
 
table_set_border_width (HTMLEngine *e, HTMLTable *t, gint border_width, gboolean relative, HTMLUndoDirection dir)
 
865
table_set_border_width (HTMLEngine *e,
 
866
                        HTMLTable *t,
 
867
                        gint border_width,
 
868
                        gboolean relative,
 
869
                        HTMLUndoDirection dir)
797
870
{
798
871
        HTMLTableSetAttrUndo *undo;
799
872
        gint new_border;
826
899
}
827
900
 
828
901
void
829
 
html_engine_table_set_border_width (HTMLEngine *e, HTMLTable *t, gint border_width, gboolean relative)
 
902
html_engine_table_set_border_width (HTMLEngine *e,
 
903
                                    HTMLTable *t,
 
904
                                    gint border_width,
 
905
                                    gboolean relative)
830
906
{
831
907
        table_set_border_width (e, t, border_width, relative, HTML_UNDO_UNDO);
832
908
}
839
915
static void table_set_bg_color (HTMLEngine *e, HTMLTable *t, GdkColor *c, HTMLUndoDirection dir);
840
916
 
841
917
static void
842
 
table_set_bg_color_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
918
table_set_bg_color_undo_action (HTMLEngine *e,
 
919
                                HTMLUndoData *undo_data,
 
920
                                HTMLUndoDirection dir,
 
921
                                guint position_after)
843
922
{
844
923
        HTMLTableSetAttrUndo *data = (HTMLTableSetAttrUndo *) undo_data;
845
924
        HTMLTable *table = html_engine_get_table (e);
852
931
}
853
932
 
854
933
static void
855
 
table_set_bg_color (HTMLEngine *e, HTMLTable *t, GdkColor *c, HTMLUndoDirection dir)
 
934
table_set_bg_color (HTMLEngine *e,
 
935
                    HTMLTable *t,
 
936
                    GdkColor *c,
 
937
                    HTMLUndoDirection dir)
856
938
{
857
939
        HTMLTableSetAttrUndo *undo;
858
940
 
880
962
}
881
963
 
882
964
void
883
 
html_engine_table_set_bg_color (HTMLEngine *e, HTMLTable *t, GdkColor *c)
 
965
html_engine_table_set_bg_color (HTMLEngine *e,
 
966
                                HTMLTable *t,
 
967
                                GdkColor *c)
884
968
{
885
969
        table_set_bg_color (e, t, c, HTML_UNDO_UNDO);
886
970
}
893
977
static void table_set_bg_pixmap (HTMLEngine *e, HTMLTable *t, gchar *url, HTMLUndoDirection dir);
894
978
 
895
979
static void
896
 
table_set_bg_pixmap_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
980
table_set_bg_pixmap_undo_action (HTMLEngine *e,
 
981
                                 HTMLUndoData *undo_data,
 
982
                                 HTMLUndoDirection dir,
 
983
                                 guint position_after)
897
984
{
898
985
        HTMLTableSetAttrUndo *data = (HTMLTableSetAttrUndo *) undo_data;
899
986
 
901
988
}
902
989
 
903
990
static void
904
 
table_set_bg_pixmap (HTMLEngine *e, HTMLTable *t, gchar *url, HTMLUndoDirection dir)
 
991
table_set_bg_pixmap (HTMLEngine *e,
 
992
                     HTMLTable *t,
 
993
                     gchar *url,
 
994
                     HTMLUndoDirection dir)
905
995
{
906
996
        HTMLImagePointer *iptr;
907
997
        HTMLTableSetAttrUndo *undo;
922
1012
}
923
1013
 
924
1014
void
925
 
html_engine_table_set_bg_pixmap (HTMLEngine *e, HTMLTable *t, gchar *url)
 
1015
html_engine_table_set_bg_pixmap (HTMLEngine *e,
 
1016
                                 HTMLTable *t,
 
1017
                                 gchar *url)
926
1018
{
927
1019
        table_set_bg_pixmap (e, t, url, HTML_UNDO_UNDO);
928
1020
}
935
1027
static void table_set_spacing (HTMLEngine *e, HTMLTable *t, gint spacing, gboolean relative, HTMLUndoDirection dir);
936
1028
 
937
1029
static void
938
 
table_set_spacing_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
1030
table_set_spacing_undo_action (HTMLEngine *e,
 
1031
                               HTMLUndoData *undo_data,
 
1032
                               HTMLUndoDirection dir,
 
1033
                               guint position_after)
939
1034
{
940
1035
        HTMLTableSetAttrUndo *data = (HTMLTableSetAttrUndo *) undo_data;
941
1036
 
943
1038
}
944
1039
 
945
1040
static void
946
 
table_set_spacing (HTMLEngine *e, HTMLTable *t, gint spacing, gboolean relative, HTMLUndoDirection dir)
 
1041
table_set_spacing (HTMLEngine *e,
 
1042
                   HTMLTable *t,
 
1043
                   gint spacing,
 
1044
                   gboolean relative,
 
1045
                   HTMLUndoDirection dir)
947
1046
{
948
1047
        HTMLTableSetAttrUndo *undo;
949
1048
        gint new_spacing;
973
1072
}
974
1073
 
975
1074
void
976
 
html_engine_table_set_spacing (HTMLEngine *e, HTMLTable *t, gint spacing, gboolean relative)
 
1075
html_engine_table_set_spacing (HTMLEngine *e,
 
1076
                               HTMLTable *t,
 
1077
                               gint spacing,
 
1078
                               gboolean relative)
977
1079
{
978
1080
        table_set_spacing (e, t, spacing, relative, HTML_UNDO_UNDO);
979
1081
}
986
1088
static void table_set_padding (HTMLEngine *e, HTMLTable *t, gint padding, gboolean relative, HTMLUndoDirection dir);
987
1089
 
988
1090
static void
989
 
table_set_padding_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
1091
table_set_padding_undo_action (HTMLEngine *e,
 
1092
                               HTMLUndoData *undo_data,
 
1093
                               HTMLUndoDirection dir,
 
1094
                               guint position_after)
990
1095
{
991
1096
        HTMLTableSetAttrUndo *data = (HTMLTableSetAttrUndo *) undo_data;
992
1097
 
994
1099
}
995
1100
 
996
1101
static void
997
 
table_set_padding (HTMLEngine *e, HTMLTable *t, gint padding, gboolean relative, HTMLUndoDirection dir)
 
1102
table_set_padding (HTMLEngine *e,
 
1103
                   HTMLTable *t,
 
1104
                   gint padding,
 
1105
                   gboolean relative,
 
1106
                   HTMLUndoDirection dir)
998
1107
{
999
1108
        HTMLTableSetAttrUndo *undo;
1000
1109
        gint r, c;
1032
1141
}
1033
1142
 
1034
1143
void
1035
 
html_engine_table_set_padding (HTMLEngine *e, HTMLTable *t, gint padding, gboolean relative)
 
1144
html_engine_table_set_padding (HTMLEngine *e,
 
1145
                               HTMLTable *t,
 
1146
                               gint padding,
 
1147
                               gboolean relative)
1036
1148
{
1037
1149
        table_set_padding (e, t, padding, relative, HTML_UNDO_UNDO);
1038
1150
}
1045
1157
static void table_set_align (HTMLEngine *e, HTMLTable *t, HTMLHAlignType align, HTMLUndoDirection dir);
1046
1158
 
1047
1159
static void
1048
 
table_set_align_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
1160
table_set_align_undo_action (HTMLEngine *e,
 
1161
                             HTMLUndoData *undo_data,
 
1162
                             HTMLUndoDirection dir,
 
1163
                             guint position_after)
1049
1164
{
1050
1165
        HTMLTableSetAttrUndo *data = (HTMLTableSetAttrUndo *) undo_data;
1051
1166
 
1053
1168
}
1054
1169
 
1055
1170
static void
1056
 
table_set_align (HTMLEngine *e, HTMLTable *t, HTMLHAlignType align, HTMLUndoDirection dir)
 
1171
table_set_align (HTMLEngine *e,
 
1172
                 HTMLTable *t,
 
1173
                 HTMLHAlignType align,
 
1174
                 HTMLUndoDirection dir)
1057
1175
{
1058
1176
        HTMLTableSetAttrUndo *undo;
1059
1177
 
1099
1217
}
1100
1218
 
1101
1219
void
1102
 
html_engine_table_set_align (HTMLEngine *e, HTMLTable *t, HTMLHAlignType align)
 
1220
html_engine_table_set_align (HTMLEngine *e,
 
1221
                             HTMLTable *t,
 
1222
                             HTMLHAlignType align)
1103
1223
{
1104
1224
        table_set_align (e, t, align, HTML_UNDO_UNDO);
1105
1225
}
1112
1232
static void table_set_width (HTMLEngine *e, HTMLTable *t, gint width, gboolean percent, HTMLUndoDirection dir);
1113
1233
 
1114
1234
static void
1115
 
table_set_width_undo_action (HTMLEngine *e, HTMLUndoData *undo_data, HTMLUndoDirection dir, guint position_after)
 
1235
table_set_width_undo_action (HTMLEngine *e,
 
1236
                             HTMLUndoData *undo_data,
 
1237
                             HTMLUndoDirection dir,
 
1238
                             guint position_after)
1116
1239
{
1117
1240
        HTMLTableSetAttrUndo *data = (HTMLTableSetAttrUndo *) undo_data;
1118
1241
 
1121
1244
}
1122
1245
 
1123
1246
static void
1124
 
table_set_width (HTMLEngine *e, HTMLTable *t, gint width, gboolean percent, HTMLUndoDirection dir)
 
1247
table_set_width (HTMLEngine *e,
 
1248
                 HTMLTable *t,
 
1249
                 gint width,
 
1250
                 gboolean percent,
 
1251
                 HTMLUndoDirection dir)
1125
1252
{
1126
1253
        HTMLTableSetAttrUndo *undo;
1127
1254
 
1154
1281
}
1155
1282
 
1156
1283
void
1157
 
html_engine_table_set_width (HTMLEngine *e, HTMLTable *t, gint width, gboolean percent)
 
1284
html_engine_table_set_width (HTMLEngine *e,
 
1285
                             HTMLTable *t,
 
1286
                             gint width,
 
1287
                             gboolean percent)
1158
1288
{
1159
1289
        table_set_width (e, t, width, percent, HTML_UNDO_UNDO);
1160
1290
}
1164
1294
 */
1165
1295
 
1166
1296
void
1167
 
html_engine_table_set_cols (HTMLEngine *e, gint cols)
 
1297
html_engine_table_set_cols (HTMLEngine *e,
 
1298
                            gint cols)
1168
1299
{
1169
1300
        HTMLTable *table = html_engine_get_table (e);
1170
1301
 
1192
1323
 */
1193
1324
 
1194
1325
void
1195
 
html_engine_table_set_rows (HTMLEngine *e, gint rows)
 
1326
html_engine_table_set_rows (HTMLEngine *e,
 
1327
                            gint rows)
1196
1328
{
1197
1329
        HTMLTable *table = html_engine_get_table (e);
1198
1330