table-item: Change title from table_item_text to table_cell.
[pspp] / src / output / table-item.h
index d1c30b668d603df5b4f2b0be3eaa1074669fc022..57d18b75cc28c26c32e0d2c5580fbe372111998d 100644 (file)
@@ -72,21 +72,19 @@ 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_cell *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. */
     char *notes;                      /* Shown as tooltip. */
     struct pivot_table *pt;
   };
 
-struct table_item *table_item_create (struct table *, const char *title,
-                                      const char *caption, const char *notes);
+struct table_item *table_item_create (struct table *);
 
 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 *);
+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 *);