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
24 ColInfo() : align('c'), rightline(0), leftline(false) {}
25 char align
; // column alignment
26 docstring width
; // column width
27 docstring special
; // special column alignment
28 int rightline
; // a line on the right?
36 RowInfo() : topline(false), bottomline(false) {}
37 bool topline
; // horizontal line above
38 int bottomline
; // horizontal line below
46 : multi(0), leftline(false), rightline(false),
47 topline(false), bottomline(false)
50 docstring content
; // cell content
51 int multi
; // multicolumn flag
52 char align
; // cell alignment
53 bool leftline
; // do we have a line on the left?
54 bool rightline
; // do we have a line on the right?
55 bool topline
; // do we have a line above?
56 bool bottomline
; // do we have a line below?
60 inline char const * verbose_align(char c
)
62 return c
== 'c' ? "center" : c
== 'r' ? "right" : c
== 'l' ? "left" : "none";