You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ 02110-1301, USA. */
#if !som_h
#define som_h 1
desired, and in fact almost every operation performed by som may be
overridden in a table class. */
-/* Table. */
-struct som_table
+enum som_type
+ {
+ SOM_TABLE,
+ SOM_CHART
+ } ;
+
+/* Entity (Table or Chart) . */
+struct som_entity
{
struct som_table_class *class; /* Table class. */
- void *ext; /* Owned by table class. */
+ enum som_type type; /* Table or Chart */
+ void *ext; /* Owned by */
};
/* Group styles. */
struct som_table_class
{
/* Set table, driver. */
- void (*table) (struct som_table *);
+ void (*table) (struct som_entity *);
void (*driver) (struct outp_driver *);
/* Query columns and rows. */
/* Submission. */
void som_new_series (void);
-void som_submit (struct som_table *t);
+void som_submit (struct som_entity *t);
/* Miscellaneous. */
void som_eject_page (void);