output: New page-setup-item.
[pspp] / src / output / text-item.h
index 1bfb63689b28cd94f6cce1c14b7c8fa570456e03..659a28bd0f8bf418da8433e14d909df5e1d32236 100644 (file)
 
 enum text_item_type
   {
-    /* Headings. */
     TEXT_ITEM_PAGE_TITLE,       /* TITLE and SUBTITLE commands. */
-    TEXT_ITEM_SUBHEAD,          /* Heading within a command's output.*/
+    TEXT_ITEM_TITLE,            /* Title. */
+    TEXT_ITEM_PARAGRAPH,        /* Normal paragraph of text. */
 
-    /* Syntax. */
+    /* Log items. */
     TEXT_ITEM_SYNTAX,           /* A single line of PSPP syntax. */
-    TEXT_ITEM_COMMENT,          /* COMMENT command. */
-    TEXT_ITEM_ECHO,             /* ECHO command. */
-
-    /* Ordinary text. */
-    TEXT_ITEM_PARAGRAPH,        /* Normal paragraph of text. */
-    TEXT_ITEM_MONOSPACE,        /* Paragraph of monospaced text. */
+    TEXT_ITEM_LOG,              /* Other logging. */
 
     /* Spacing.  Some output drivers that are not based on lines and pages
        (e.g. CSV, HTML) may ignore these. */
@@ -57,7 +52,7 @@ struct text_item
     enum text_item_type type;   /* Type. */
     char *font;
     int font_size;
-    bool bold, italic, underline;
+    bool bold, italic, underline, markup;
   };
 
 struct text_item *text_item_create (enum text_item_type, const char *text);
@@ -68,6 +63,8 @@ struct text_item *text_item_create_format (enum text_item_type,
 
 enum text_item_type text_item_get_type (const struct text_item *);
 const char *text_item_get_text (const struct text_item *);
+
+struct table_item *text_item_to_table_item (struct text_item *);
 \f
 /* This boilerplate for text_item, a subclass of output_item, was
    autogenerated by mk-class-boilerplate. */