X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftext-item.h;h=8b4114e0061dc1b4960c04dcab43735d121cb552;hb=b96adcc0447f11136edb0a4e957fb6bd5b3c0d93;hp=95bfc0826fb7548de4870e90a99f2d241059d31a;hpb=ca49f5b17e9905944826b03ba299685994b83dc2;p=pspp diff --git a/src/output/text-item.h b/src/output/text-item.h index 95bfc0826f..8b4114e006 100644 --- a/src/output/text-item.h +++ b/src/output/text-item.h @@ -27,6 +27,7 @@ #include #include "libpspp/compiler.h" #include "output/output-item.h" +#include "output/table.h" enum text_item_type { @@ -34,7 +35,6 @@ enum text_item_type TEXT_ITEM_TITLE, /* Title. */ TEXT_ITEM_SYNTAX, /* Syntax printback logging. */ TEXT_ITEM_LOG, /* Other logging. */ - TEXT_ITEM_EJECT_PAGE /* Eject page. */ }; const char *text_item_type_to_string (enum text_item_type); @@ -45,21 +45,20 @@ struct text_item struct output_item output_item; char *text; /* The content. */ enum text_item_type type; /* Type. */ - - bool bold, italic, underline, markup; - char *typeface; - int size; + struct font_style style; }; -struct text_item *text_item_create (enum text_item_type, const char *text); -struct text_item *text_item_create_nocopy (enum text_item_type, char *text); -struct text_item *text_item_create_format (enum text_item_type, - const char *format, ...) - PRINTF_FORMAT (2, 3); +struct text_item *text_item_create (enum text_item_type, + const char *text, const char *label); +struct text_item *text_item_create_nocopy (enum text_item_type, + char *text, char *label); enum text_item_type text_item_get_type (const struct text_item *); const char *text_item_get_text (const struct text_item *); +struct text_item *text_item_unshare (struct text_item *); +bool text_item_append (struct text_item *dst, const struct text_item *src); + struct table_item *text_item_to_table_item (struct text_item *); /* This boilerplate for text_item, a subclass of output_item, was