const struct som_table_class *class; /* Table class. */
enum som_type type; /* Table or Chart */
void *ext; /* Owned by table or chart class. */
+ int table_num; /* Table number. */
+ int subtable_num; /* Sub-table number. */
+ char *command_name; /* Command that yielded this output. */
};
+struct som_entity *som_entity_clone (struct som_entity *);
+void som_entity_destroy (struct som_entity *);
+
/* Group styles. */
enum
{
void (*area) (void *, int *horiz, int *vert);
void (*cumulate) (void *, int cumtype, int start, int *end,
int max, int *actual);
- void (*title) (void *, int x, int y);
+ void (*title) (void *, int x, int y, int table_num, int subtable_num,
+ const char *command_name);
void (*render) (void *, int x1, int y1, int x2, int y2);
};
-/* Table indexes. */
-extern int table_num;
-extern int subtable_num;
-
/* Submission. */
void som_new_series (void);
+void som_set_command_name (const char *);
void som_submit (struct som_entity *t);
/* Miscellaneous. */