36 |
desired, and in fact almost every operation performed by som may be |
desired, and in fact almost every operation performed by som may be |
37 |
overridden in a table class. */ |
overridden in a table class. */ |
38 |
|
|
39 |
/* Table. */ |
enum som_type |
40 |
struct som_table |
{ |
41 |
|
SOM_TABLE, |
42 |
|
SOM_CHART |
43 |
|
} ; |
44 |
|
|
45 |
|
/* Entity (Table or Chart) . */ |
46 |
|
struct som_entity |
47 |
{ |
{ |
48 |
struct som_table_class *class; /* Table class. */ |
struct som_table_class *class; /* Table class. */ |
49 |
void *ext; /* Owned by table class. */ |
enum som_type type; /* Table or Chart */ |
50 |
|
void *ext; /* Owned by */ |
51 |
}; |
}; |
52 |
|
|
53 |
/* Group styles. */ |
/* Group styles. */ |
77 |
struct som_table_class |
struct som_table_class |
78 |
{ |
{ |
79 |
/* Set table, driver. */ |
/* Set table, driver. */ |
80 |
void (*table) (struct som_table *); |
void (*table) (struct som_entity *); |
81 |
void (*driver) (struct outp_driver *); |
void (*driver) (struct outp_driver *); |
82 |
|
|
83 |
/* Query columns and rows. */ |
/* Query columns and rows. */ |
107 |
|
|
108 |
/* Submission. */ |
/* Submission. */ |
109 |
void som_new_series (void); |
void som_new_series (void); |
110 |
void som_submit (struct som_table *t); |
void som_submit (struct som_entity *t); |
111 |
|
|
112 |
/* Miscellaneous. */ |
/* Miscellaneous. */ |
113 |
void som_eject_page (void); |
void som_eject_page (void); |