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
21 ColInfo() : align('c'), rightline(0), leftline(false) {}
22 char align; // column alignment
23 std::string width; // column width
24 std::string special; // special column alignment
25 int rightline; // a line on the right?
33 RowInfo() : topline(false), bottomline(false) {}
34 bool topline; // horizontal line above
35 int bottomline; // horizontal line below
43 : multi(0), leftline(false), rightline(false),
44 topline(false), bottomline(false)
47 std::string content; // cell content
48 int multi; // multicolumn flag
49 char align; // cell alignment
50 bool leftline; // do we have a line on the left?
51 bool rightline; // do we have a line on the right?
52 bool topline; // do we have a line above?
53 bool bottomline; // do we have a line below?
57 inline char const * verbose_align(char c)
59 return c == 'c' ? "center" : c == 'r' ? "right" : c == 'l' ? "left" : "none";