]> git.lyx.org Git - lyx.git/blob - src/mathed/math_gridinfo.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / mathed / math_gridinfo.h
1 #ifndef MATH_GRIDINFO_H
2 #define MATH_GRIDINFO_H
3
4 struct ColInfo
5 {
6         ColInfo() : align('c'), rightline(0), leftline(false) {}
7         char   align;      // column alignment
8         string width;      // column width
9         string special;    // special column alignment
10         int    rightline;  // a line on the right?
11         bool   leftline;
12 };
13
14
15 struct RowInfo
16 {
17         RowInfo() : topline(false), bottomline(false) {} 
18         bool topline;     // horizontal line above
19         int  bottomline;  // horizontal line below
20 };
21
22
23 struct CellInfo
24 {
25         CellInfo()
26                 : multi(0), leftline(false), rightline(false),
27            topline(false), bottomline(false)
28         {}
29
30         string content;    // cell content
31         int multi;         // multicolumn flag
32         char align;        // cell alignment
33         bool leftline;     // do we have a line on the left?
34         bool rightline;    // do we have a line on the right?
35         bool topline;        // do we have a line above?
36         bool bottomline;   // do we have a line below?
37 };
38
39
40 inline char const * verbose_align(char c)
41 {
42         return c == 'c' ? "center" : c == 'r' ? "right" : c == 'l' ? "left" : "none";
43 }
44
45
46 #endif