X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-item.h;h=be0987659684ef68fdeba2f23e9d80d9e0506074;hb=855eaf1506f0ea76a8bbfb3bbfd456524f4edeca;hp=3b8c09d75909fb51a2efa1ef0f5a5d556e42a883;hpb=6068787ea557d3a6bb636d1d5b39c75eae30fd6f;p=pspp diff --git a/src/output/table-item.h b/src/output/table-item.h index 3b8c09d759..be09876596 100644 --- a/src/output/table-item.h +++ b/src/output/table-item.h @@ -27,20 +27,7 @@ #include "libpspp/compiler.h" #include "output/output-item.h" - -/* Title or caption in a table item. */ -struct table_item_text - { - char *content; - const struct footnote **footnotes; - size_t n_footnotes; - int halign; /* TAB_*. */ - struct cell_style *style; - }; - -struct table_item_text *table_item_text_create (const char *); -struct table_item_text *table_item_text_clone (const struct table_item_text *); -void table_item_text_destroy (struct table_item_text *); +#include "output/table.h" /* A table item. @@ -48,25 +35,13 @@ void table_item_text_destroy (struct table_item_text *); of the accessor functions defined below. */ struct table_item { - struct output_item output_item; /* Superclass. */ - struct table *table; /* The table to be rendered. */ - struct table_item_text *title; /* Null if there is no title. */ - struct table_item_text *caption; /* Null if there is no caption. */ - }; + struct output_item output_item; /* Superclass. */ + struct pivot_table *pt; /* The table to be rendered. */ -struct table_item *table_item_create (struct table *, const char *title, - const char *caption); - -const struct table *table_item_get_table (const struct table_item *); - -const struct table_item_text *table_item_get_title (const struct table_item *); -void table_item_set_title (struct table_item *, - const struct table_item_text *); + char *cached_label; + }; -const struct table_item_text *table_item_get_caption ( - const struct table_item *); -void table_item_set_caption (struct table_item *, - const struct table_item_text *); +struct table_item *table_item_create (struct pivot_table *); /* This boilerplate for table_item, a subclass of output_item, was autogenerated by mk-class-boilerplate. */ @@ -123,5 +98,5 @@ table_item_is_shared (const struct table_item *instance) } void table_item_submit (struct table_item *); - + #endif /* output/table-item.h */