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