/* PSPP - a program for statistical analysis.
- Copyright (C) 1997, 1998, 1999, 2000, 2009, 2011 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999, 2000, 2009, 2011, 2014 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Some of the features of this type of table are obsolete but have not yet
been removed, because some code still uses them. These features are:
- - The title. The title (or caption, actually) is a property of the
- table_item (see output/table-item.h) in which a table is embedded,
- not a property of the table itself.
+ - The title and caption. These are properties of the table_item (see
+ output/table-item.h) in which a table is embedded, not properties of
+ the table itself.
- Row and columns offsets (via tab_offset(), tab_next_row()). This
feature simply isn't used enough to justify keeping it.
struct table table;
struct pool *container;
- /* Table title, or a null pointer if no title has been set.
-
- The table title is properly part of struct table_item, not struc*/
- char *title;
+ /* Table title and caption, or null. */
+ char *title, *caption;
int cf; /* Column factor for indexing purposes. */
/* Table contents.
void tab_headers (struct tab_table *, int l, int r, int t, int b);
void tab_title (struct tab_table *, const char *, ...)
PRINTF_FORMAT (2, 3);
+void tab_caption (struct tab_table *, const char *, ...)
+ PRINTF_FORMAT (2, 3);
void tab_submit (struct tab_table *);
/* Rules. */
unsigned opt, const char *, ...)
PRINTF_FORMAT (7, 8);
+struct footnote *tab_create_footnote (struct tab_table *, size_t idx,
+ const char *content, const char *marker);
+void tab_add_footnote (struct tab_table *, int x, int y,
+ const struct footnote *);
+
bool tab_cell_is_empty (const struct tab_table *, int c, int r);
/* Editing. */