X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Ftable-provider.h;h=ae7f77d420b40cf7fa364cf2c87431f0c119c7cd;hb=37a14e6b8ab908b2c23d77e0cb6a9085fe2d73e1;hp=0e22989b996bcfa9700c88d7cdce2a4ae5f0c7ba;hpb=311f2cd4115da767c61c548aa25e71e722ec937c;p=pspp diff --git a/src/output/table-provider.h b/src/output/table-provider.h index 0e22989b99..ae7f77d420 100644 --- a/src/output/table-provider.h +++ b/src/output/table-provider.h @@ -62,8 +62,27 @@ struct cell_style { struct cell_color fg, bg; int margin[TABLE_N_AXES][2]; + char *font; + int font_size; + bool bold, italic, underline; }; +#define CELL_STYLE_INITIALIZER \ + { \ + .fg = CELL_COLOR_BLACK, \ + .bg = CELL_COLOR_WHITE, \ + .margin = { [TABLE_HORZ][0] = 8, [TABLE_HORZ][1] = 11, \ + [TABLE_VERT][0] = 1, [TABLE_VERT][1] = 1 }, \ + .font = NULL, \ + .font_size = 0, \ + .bold = false, \ + .italic = false, \ + .underline = false, \ + } + +struct cell_style *cell_style_clone (const struct cell_style *); +void cell_style_free (struct cell_style *); + /* A cell in a table. */ struct table_cell {