X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-item.h;h=be0987659684ef68fdeba2f23e9d80d9e0506074;hb=def6f19d1b58929ed31ae6a7a90f89054ab3ace7;hp=a16c82ebb36a3ad84502cb6f516e3554bc8d5c1f;hpb=50f6ea7d66d03895020891215fb4f55bbf061003;p=pspp diff --git a/src/output/table-item.h b/src/output/table-item.h index a16c82ebb3..be09876596 100644 --- a/src/output/table-item.h +++ b/src/output/table-item.h @@ -29,73 +29,19 @@ #include "output/output-item.h" #include "output/table.h" -/* Title or caption in a table item. */ -struct table_item_text - { - char *content; - const struct footnote **footnotes; - size_t n_footnotes; - struct area_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 *); - -struct table_item_layer - { - char *content; - const 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 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 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 table_item_layers *layers; /* Null if there is no layer info. */ - struct pivot_table *pt; - }; - -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 *); + struct output_item output_item; /* Superclass. */ + struct pivot_table *pt; /* The table to be rendered. */ -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 *); - -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 *); + 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. */ @@ -152,5 +98,5 @@ table_item_is_shared (const struct table_item *instance) } void table_item_submit (struct table_item *); - + #endif /* output/table-item.h */