-
-static void
-table_string_get_cell (const struct table *ts_, int x UNUSED, int y UNUSED,
- struct table_cell *cell)
-{
- static const struct area_style styles[] = {
-#define S(H) [H] = { AREA_STYLE_INITIALIZER__, .cell_style.halign = H }
- S(TABLE_HALIGN_LEFT),
- S(TABLE_HALIGN_CENTER),
- S(TABLE_HALIGN_RIGHT),
- S(TABLE_HALIGN_MIXED),
- S(TABLE_HALIGN_DECIMAL),
- };
- struct table_string *ts = table_string_cast (ts_);
- cell->d[TABLE_HORZ][0] = 0;
- cell->d[TABLE_HORZ][1] = 1;
- cell->d[TABLE_VERT][0] = 0;
- cell->d[TABLE_VERT][1] = 1;
- cell->options = 0;
- cell->style = &styles[table_halign_interpret (ts->halign, false)];
- cell->text = ts->string;
- cell->n_footnotes = 0;
- cell->destructor = NULL;
-}
-
-
-static int
-table_string_get_rule (const struct table *ts UNUSED,
- enum table_axis axis UNUSED, int x UNUSED, int y UNUSED,
- struct cell_color *color UNUSED)
-{
- return TAL_0;
-}
-
-static const struct table_class table_string_class =
- {
- table_string_destroy,
- table_string_get_cell,
- table_string_get_rule,
- };