3 * \file math_gridinfo.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_GRIDINFO_H
13 #define MATH_GRIDINFO_H
18 ColInfo() : align('c'), rightline(0), leftline(false) {}
19 char align; // column alignment
20 string width; // column width
21 string special; // special column alignment
22 int rightline; // a line on the right?
29 RowInfo() : topline(false), bottomline(false) {}
30 bool topline; // horizontal line above
31 int bottomline; // horizontal line below
38 : multi(0), leftline(false), rightline(false),
39 topline(false), bottomline(false)
42 string content; // cell content
43 int multi; // multicolumn flag
44 char align; // cell alignment
45 bool leftline; // do we have a line on the left?
46 bool rightline; // do we have a line on the right?
47 bool topline; // do we have a line above?
48 bool bottomline; // do we have a line below?
52 inline char const * verbose_align(char c)
54 return c == 'c' ? "center" : c == 'r' ? "right" : c == 'l' ? "left" : "none";