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 string special; // special column alignment
10 int rightline; // a line on the right?
17 RowInfo() : topline(false), bottomline(false) {}
18 bool topline; // horizontal line above
19 int bottomline; // horizontal line below
26 : multi(0), leftline(false), rightline(false),
27 topline(false), bottomline(false)
30 string content; // cell content
31 int multi; // multicolumn flag
32 char align; // cell alignment
33 bool leftline; // do we have a line on the left?
34 bool rightline; // do we have a line on the right?
35 bool topline; // do we have a line above?
36 bool bottomline; // do we have a line below?
40 inline char const * verbose_align(char c)
42 return c == 'c' ? "center" : c == 'r' ? "right" : c == 'l' ? "left" : "none";