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