summaryrefslogtreecommitdiff
path: root/include/dom/html/html_table_element.h
blob: 6fcd7ed71e417c3bd9d57e7ec01633243b044d35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
 * This file is part of libdom.
 * Licensed under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
 * Copyright 2014 Rupinder Singh Khokhar <rsk1coder99@gmail.com>
 */
#ifndef dom_html_table_element_h_
#define dom_html_table_element_h_

#include <stdbool.h>
#include <dom/core/exceptions.h>
#include <dom/core/string.h>

#include<dom/html/html_element.h>
#include<dom/html/html_tablecaption_element.h>
#include<dom/html/html_tablesection_element.h>
#include<dom/html/html_tablerow_element.h>

typedef struct dom_html_table_element dom_html_table_element;

dom_exception dom_html_table_element_get_caption(
	dom_html_table_element *element, dom_html_table_caption_element **caption);

dom_exception dom_html_table_element_set_caption(
	dom_html_table_element *element, dom_html_table_caption_element *caption);

dom_exception dom_html_table_element_get_t_head(
	dom_html_table_element *element, dom_html_table_section_element **t_head);

dom_exception dom_html_table_element_set_t_head(
		dom_html_table_element *element, dom_html_table_section_element *t_head);

dom_exception dom_html_table_element_get_t_foot(
	dom_html_table_element *element, dom_html_table_section_element **t_foot);

dom_exception dom_html_table_element_set_t_foot(
	dom_html_table_element *element, dom_html_table_section_element *t_foot);

dom_exception dom_html_table_element_get_rows(
		dom_html_table_element *element, dom_html_collection **rows);

dom_exception dom_html_table_element_get_t_bodies(
		dom_html_table_element *element, dom_html_collection **t_bodies);

dom_exception dom_html_table_element_get_align(
		        dom_html_table_element *table, dom_string **align);

dom_exception dom_html_table_element_set_align(
		        dom_html_table_element *table, dom_string *align);

dom_exception dom_html_table_element_get_bg_color(
		        dom_html_table_element *table, dom_string **bg_color);

dom_exception dom_html_table_element_set_bg_color(
		        dom_html_table_element *table, dom_string *bg_color);

dom_exception dom_html_table_element_get_border(
		        dom_html_table_element *table, dom_string **border);

dom_exception dom_html_table_element_set_border(
		        dom_html_table_element *table, dom_string *border);

dom_exception dom_html_table_element_get_cell_padding(
		        dom_html_table_element *table, dom_string **cell_padding);

dom_exception dom_html_table_element_set_cell_padding(
		        dom_html_table_element *table, dom_string *cell_padding);

dom_exception dom_html_table_element_get_cell_spacing(
		        dom_html_table_element *table, dom_string **cell_spacing);

dom_exception dom_html_table_element_set_cell_spacing(
		        dom_html_table_element *table, dom_string *cell_spacing);

dom_exception dom_html_table_element_get_frame(
		        dom_html_table_element *table, dom_string **frame);

dom_exception dom_html_table_element_set_frame(
		        dom_html_table_element *table, dom_string *frame);

dom_exception dom_html_table_element_get_rules(
		        dom_html_table_element *table, dom_string **rules);

dom_exception dom_html_table_element_set_rules(
		        dom_html_table_element *table, dom_string *rules);

dom_exception dom_html_table_element_get_summary(
		        dom_html_table_element *table, dom_string **summary);

dom_exception dom_html_table_element_set_summary(
		        dom_html_table_element *table, dom_string *summary);

dom_exception dom_html_table_element_get_width(
		        dom_html_table_element *table, dom_string **width);

dom_exception dom_html_table_element_set_width(
		        dom_html_table_element *table, dom_string *width);

dom_exception dom_html_table_element_create_caption(
		dom_html_table_element *element,
		dom_html_element **caption);

dom_exception dom_html_table_element_delete_caption(
		dom_html_table_element *element);

dom_exception dom_html_table_element_create_t_head(
		dom_html_table_element *element,
		dom_html_element **t_head);

dom_exception dom_html_table_element_delete_t_head(
		dom_html_table_element *element);

dom_exception dom_html_table_element_create_t_foot(
		dom_html_table_element *element,
		dom_html_element **t_foot);

dom_exception dom_html_table_element_delete_t_foot(
		dom_html_table_element *element);

dom_exception dom_html_table_element_insert_row(
		dom_html_table_element *element,
		int32_t index, dom_html_element **row);

dom_exception dom_html_table_element_delete_row(
		dom_html_table_element *element,
		int32_t index);

#endif