static const struct output_driver_class odt_driver_class;
-static void write_table (struct odt_driver *, const struct table *);
-
static struct odt_driver *
odt_driver_cast (struct output_driver *driver)
{
}
static void
-odt_submit_table (struct odt_driver *odt, struct table_item *item)
+write_table (struct odt_driver *odt, const struct table_item *item)
{
+ const struct table *tab = table_item_get_table (item);
const char *caption = table_item_get_caption (item);
+ int r, c;
/* Write a heading for the table */
if (caption != NULL)
xmlTextWriterEndElement (odt->content_wtr);
}
- write_table (odt, table_item_get_table (item));
-}
-
-static void
-write_table (struct odt_driver *odt, const struct table *tab)
-{
- int r, c;
-
/* Start table */
xmlTextWriterStartElement (odt->content_wtr, _xml("table:table"));
xmlTextWriterWriteFormatAttribute (odt->content_wtr, _xml("table:name"),
output_driver_track_current_command (output_item, &odt->command_name);
if (is_table_item (output_item))
- odt_submit_table (odt, to_table_item (output_item));
+ write_table (odt, to_table_item (output_item));
else if (is_text_item (output_item))
{
struct text_item *text_item = to_text_item (output_item);