libdom
Loading...
Searching...
No Matches
Macros | Functions
html_tablecell_element.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <dom/html/html_tablecell_element.h>
#include "html/html_document.h"
#include "html/html_tablecell_element.h"
#include "core/node.h"
#include "core/attr.h"
#include "utils/utils.h"

Macros

#define SIMPLE_GET(attr)
 
#define SIMPLE_SET(attr)
 
#define SIMPLE_GET_SET(attr)   SIMPLE_GET(attr) SIMPLE_SET(attr)
 

Functions

dom_exception _dom_html_table_cell_element_create (struct dom_html_element_create_params *params, struct dom_html_table_cell_element **ele)
 
dom_exception _dom_html_table_cell_element_initialise (struct dom_html_element_create_params *params, struct dom_html_table_cell_element *ele)
 
void _dom_html_table_cell_element_finalise (struct dom_html_table_cell_element *ele)
 
void _dom_html_table_cell_element_destroy (struct dom_html_table_cell_element *ele)
 
dom_exception _dom_html_table_cell_element_parse_attribute (dom_element *ele, dom_string *name, dom_string *value, dom_string **parsed)
 
void _dom_virtual_html_table_cell_element_destroy (dom_node_internal *node)
 
dom_exception _dom_html_table_cell_element_copy (dom_node_internal *old, dom_node_internal **copy)
 
dom_exception _dom_html_table_cell_element_copy_internal (dom_html_table_cell_element *old, dom_html_table_cell_element *new)
 
 SIMPLE_GET_SET (abbr)
 
 SIMPLE_GET_SET (align)
 
 SIMPLE_GET_SET (axis)
 
 SIMPLE_GET_SET (bg_color)
 
 SIMPLE_GET_SET (ch)
 
 SIMPLE_GET_SET (ch_off)
 
 SIMPLE_GET_SET (headers)
 
 SIMPLE_GET_SET (height)
 
 SIMPLE_GET_SET (scope)
 
 SIMPLE_GET_SET (v_align)
 
 SIMPLE_GET_SET (width)
 
dom_exception dom_html_table_cell_element_get_cell_index (dom_html_table_cell_element *table_cell, dom_long *cell_index)
 
dom_exception dom_html_table_cell_element_get_col_span (dom_html_table_cell_element *table_cell, dom_ulong *col_span)
 
dom_exception dom_html_table_cell_element_set_col_span (dom_html_table_cell_element *table_cell, dom_ulong col_span)
 
dom_exception dom_html_table_cell_element_get_row_span (dom_html_table_cell_element *table_cell, dom_ulong *row_span)
 
dom_exception dom_html_table_cell_element_set_row_span (dom_html_table_cell_element *table_cell, dom_ulong row_span)
 
dom_exception dom_html_table_cell_element_get_no_wrap (dom_html_table_cell_element *ele, bool *no_wrap)
 
dom_exception dom_html_table_cell_element_set_no_wrap (dom_html_table_cell_element *ele, bool no_wrap)
 

Macro Definition Documentation

◆ SIMPLE_GET

#define SIMPLE_GET ( attr)
Value:
dom_exception dom_html_table_cell_element_get_##attr( \
dom_string **attr) \
{ \
dom_string *_memo_##attr; \
\
_memo_##attr = \
((struct dom_html_document *) \
((struct dom_node_internal *)element)->owner)->\
memoised[hds_##attr]; \
\
ret = dom_element_get_attribute(element, _memo_##attr, attr); \
\
return ret; \
}
dom_exception
Definition exceptions.h:24
#define dom_element_get_attribute(e, n, v)
Definition element.h:117
Definition html_document.h:19
dom_string ** memoised
Definition html_document.h:30
Definition html_tablecell_element.h:16
Definition node.h:54
Definition string.h:19

◆ SIMPLE_GET_SET

#define SIMPLE_GET_SET ( attr)    SIMPLE_GET(attr) SIMPLE_SET(attr)

◆ SIMPLE_SET

#define SIMPLE_SET ( attr)
Value:
dom_exception dom_html_table_cell_element_set_##attr( \
dom_string *attr) \
{ \
dom_string *_memo_##attr; \
\
_memo_##attr = \
((struct dom_html_document *) \
((struct dom_node_internal *)element)->owner)->\
memoised[hds_##attr]; \
\
ret = dom_element_set_attribute(element, _memo_##attr, attr); \
\
return ret; \
}
#define dom_element_set_attribute(e, n, v)
Definition element.h:127

Function Documentation

◆ _dom_html_table_cell_element_copy()

dom_exception _dom_html_table_cell_element_copy ( dom_node_internal * old,
dom_node_internal ** copy )

◆ _dom_html_table_cell_element_copy_internal()

dom_exception _dom_html_table_cell_element_copy_internal ( dom_html_table_cell_element * old,
dom_html_table_cell_element * new )

◆ _dom_html_table_cell_element_create()

dom_exception _dom_html_table_cell_element_create ( struct dom_html_element_create_params * params,
struct dom_html_table_cell_element ** ele )

Create a dom_html_table_cell_element table_cell

Parameters
paramsThe html element creation parameters
eleThe returned element table_cell
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_html_table_cell_element_destroy()

void _dom_html_table_cell_element_destroy ( struct dom_html_table_cell_element * ele)

Destroy a dom_html_table_cell_element table_cell

Parameters
eleThe dom_html_table_cell_element table_cell

◆ _dom_html_table_cell_element_finalise()

void _dom_html_table_cell_element_finalise ( struct dom_html_table_cell_element * ele)

Finalise a dom_html_table_cell_element table_cell

Parameters
eleThe dom_html_table_cell_element table_cell

◆ _dom_html_table_cell_element_initialise()

dom_exception _dom_html_table_cell_element_initialise ( struct dom_html_element_create_params * params,
struct dom_html_table_cell_element * ele )

Initialise a dom_html_table_cell_element table_cell

Parameters
paramsThe html element creation parameters
eleThe dom_html_table_cell_element table_cell
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_html_table_cell_element_parse_attribute()

dom_exception _dom_html_table_cell_element_parse_attribute ( dom_element * ele,
dom_string * name,
dom_string * value,
dom_string ** parsed )

◆ _dom_virtual_html_table_cell_element_destroy()

void _dom_virtual_html_table_cell_element_destroy ( dom_node_internal * node)

◆ dom_html_table_cell_element_get_cell_index()

dom_exception dom_html_table_cell_element_get_cell_index ( dom_html_table_cell_element * table_cell,
dom_long * cell_index )

Get the cell_index property

Parameters
table_cellThe dom_html_table_cell_element object
cell_indexThe status
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_table_cell_element_get_col_span()

dom_exception dom_html_table_cell_element_get_col_span ( dom_html_table_cell_element * table_cell,
dom_ulong * col_span )

Get the col_span property

Parameters
table_cellThe dom_html_table_cell_element object
no_wrapThe returned status
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_table_cell_element_get_no_wrap()

dom_exception dom_html_table_cell_element_get_no_wrap ( dom_html_table_cell_element * ele,
bool * no_wrap )

Get the no_wrap property

Parameters
eleThe dom_html_table_cell_element object
no_wrapThe status
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_table_cell_element_get_row_span()

dom_exception dom_html_table_cell_element_get_row_span ( dom_html_table_cell_element * table_cell,
dom_ulong * row_span )

Get the row_span property

Parameters
table_cellThe dom_html_table_cell_element object
no_wrapThe returned status
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_table_cell_element_set_col_span()

dom_exception dom_html_table_cell_element_set_col_span ( dom_html_table_cell_element * table_cell,
dom_ulong col_span )

Set the col_span property

Parameters
table_cellThe dom_html_table_cell_element object
no_wrapThe status
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_table_cell_element_set_no_wrap()

dom_exception dom_html_table_cell_element_set_no_wrap ( dom_html_table_cell_element * ele,
bool no_wrap )

Set the no_wrap property

Parameters
eleThe dom_html_table_cell_element object
no_wrapThe status
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ dom_html_table_cell_element_set_row_span()

dom_exception dom_html_table_cell_element_set_row_span ( dom_html_table_cell_element * table_cell,
dom_ulong row_span )

Set the row_span property

Parameters
table_cellThe dom_html_table_cell_element object
no_wrapThe status
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ SIMPLE_GET_SET() [1/11]

SIMPLE_GET_SET ( abbr )

◆ SIMPLE_GET_SET() [2/11]

SIMPLE_GET_SET ( align )

◆ SIMPLE_GET_SET() [3/11]

SIMPLE_GET_SET ( axis )

◆ SIMPLE_GET_SET() [4/11]

SIMPLE_GET_SET ( bg_color )

◆ SIMPLE_GET_SET() [5/11]

SIMPLE_GET_SET ( ch )

◆ SIMPLE_GET_SET() [6/11]

SIMPLE_GET_SET ( ch_off )

◆ SIMPLE_GET_SET() [7/11]

SIMPLE_GET_SET ( headers )

◆ SIMPLE_GET_SET() [8/11]

SIMPLE_GET_SET ( height )

◆ SIMPLE_GET_SET() [9/11]

SIMPLE_GET_SET ( scope )

◆ SIMPLE_GET_SET() [10/11]

SIMPLE_GET_SET ( v_align )

◆ SIMPLE_GET_SET() [11/11]

SIMPLE_GET_SET ( width )