1 #ifndef MATH_GRIDINFO_H
2 #define MATH_GRIDINFO_H
6 ColInfo() : align('c'), rightline(0), leftline(false) {}
7 char align; // column alignment
8 string width; // column width
9 int rightline; // a line on the right?
16 RowInfo() : topline(false), bottomline(false) {}
17 bool topline; // horizontal line above
18 int bottomline; // horizontal line below
25 : multi(0), leftline(false), rightline(false),
26 topline(false), bottomline(false)
29 string content; // cell content
30 int multi; // multicolumn flag
31 char align; // cell alignment
32 bool leftline; // do we have a line on the left?
33 bool rightline; // do we have a line on the right?
34 bool topline; // do we have a line above?
35 bool bottomline; // do we have a line below?
39 inline char const * verbose_align(char c)
41 return c == 'c' ? "center" : c == 'r' ? "right" : c == 'l' ? "left" : "none";