X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Ftext-item.c;h=95bb7723c84147043a2e429489f29f8ca50d1626;hb=3b54533821614d17afc61f1cd3b87d3a06fbf4da;hp=cfd6cc8a9022788d67093552e968f3587c129556;hpb=c8e1adf66ea2110fc8a3f489c864e5ea93105031;p=pspp diff --git a/src/output/text-item.c b/src/output/text-item.c index cfd6cc8a90..95bb7723c8 100644 --- a/src/output/text-item.c +++ b/src/output/text-item.c @@ -25,7 +25,7 @@ #include "libpspp/pool.h" #include "output/driver.h" #include "output/output-item-provider.h" -#include "output/tab.h" +#include "output/table.h" #include "output/table-item.h" #include "output/table-provider.h" @@ -50,9 +50,6 @@ text_item_type_to_string (enum text_item_type type) case TEXT_ITEM_LOG: return _("Log"); - case TEXT_ITEM_EJECT_PAGE: - return _("Page Break"); - default: return _("Text"); } @@ -119,11 +116,11 @@ text_item_submit (struct text_item *item) struct table_item * text_item_to_table_item (struct text_item *text_item) { - struct table *tab = tab_create (1, 1, 0, 0, 0, 0); + struct table *tab = table_create (1, 1, 0, 0, 0, 0); - struct area_style *style = pool_alloc (tab->container, sizeof *style); - *style = (struct area_style) { AREA_STYLE_INITIALIZER__, - .cell_style.halign = TABLE_HALIGN_LEFT }; + struct table_area_style *style = pool_alloc (tab->container, sizeof *style); + *style = (struct table_area_style) { TABLE_AREA_STYLE_INITIALIZER__, + .cell_style.halign = TABLE_HALIGN_LEFT }; struct font_style *font_style = &style->font_style; if (text_item->typeface) font_style->typeface = pool_strdup (tab->container, text_item->typeface); @@ -139,7 +136,7 @@ text_item_to_table_item (struct text_item *text_item) opts |= TAB_MARKUP; if (text_item->type == TEXT_ITEM_SYNTAX || text_item->type == TEXT_ITEM_LOG) opts |= TAB_FIX; - tab_text (tab, 0, 0, opts, text_item_get_text (text_item)); + table_text (tab, 0, 0, opts, text_item_get_text (text_item)); struct table_item *table_item = table_item_create (tab, NULL, NULL); text_item_unref (text_item); return table_item;