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