#include "output/output-item.h"
#include "output/table.h"
-struct table_item_layer
- {
- char *content;
- struct footnote **footnotes;
- size_t n_footnotes;
- };
-
-void table_item_layer_copy (struct table_item_layer *,
- const struct table_item_layer *);
-void table_item_layer_uninit (struct table_item_layer *);
-
-struct table_item_layers
- {
- struct table_item_layer *layers;
- size_t n_layers;
- struct table_area_style *style;
- };
-
-struct table_item_layers *table_item_layers_clone (
- const struct table_item_layers *);
-void table_item_layers_destroy (struct table_item_layers *);
-
/* A table item.
The members of struct table_item should not be accessed directly. Use one
struct table_item
{
struct output_item output_item; /* Superclass. */
- struct table *table; /* The table to be rendered. */
- struct table_cell *title; /* Null if there is no title. */
- struct table_cell *caption; /* Null if there is no caption. */
- struct table_item_layers *layers; /* Null if there is no layer info. */
- char *notes; /* Shown as tooltip. */
- struct pivot_table *pt;
- };
-
-struct table_item *table_item_create (struct table *);
-
-const struct table *table_item_get_table (const struct table_item *);
+ struct pivot_table *pt; /* The table to be rendered. */
-const struct table_cell *table_item_get_title (const struct table_item *);
-void table_item_set_title (struct table_item *, const struct table_cell *);
-
-const struct table_item_layers *table_item_get_layers (
- const struct table_item *);
-void table_item_set_layers (struct table_item *,
- const struct table_item_layers *);
-
-const struct table_cell *table_item_get_caption (const struct table_item *);
-void table_item_set_caption (struct table_item *, const struct table_cell *);
+ char *cached_label;
+ };
-const char *table_item_get_notes (const struct table_item *);
-void table_item_set_notes (struct table_item *, const char *notes);
+struct table_item *table_item_create (struct pivot_table *);
\f
/* This boilerplate for table_item, a subclass of output_item, was
autogenerated by mk-class-boilerplate. */