output: Add support for colors in cells.
[pspp] / src / output / tab.h
index 4bf7816fadd668563c2d18d533c59c062d5f8711..43f0278964fb90e3d6767850e700c31e2f2565ec 100644 (file)
@@ -51,6 +51,9 @@ enum result_class
     n_RC
   };
 
+#define TAB_STYLE_MASK (7u << (TAB_FIRST_AVAILABLE + 3))
+#define TAB_STYLE_SHIFT (TAB_FIRST_AVAILABLE + 3)
+
 /* A table. */
 struct tab_table
   {
@@ -74,6 +77,9 @@ struct tab_table
     unsigned char *rh;         /* Horiz rules; unsigned char[nr+1][nc]. */
     unsigned char *rv;         /* Vert rules; unsigned char[nr][nc+1]. */
 
+    /* Cell styles. */
+    struct cell_style *styles[8];
+
     /* X and Y offsets. */
     int col_ofs, row_ofs;