]> git.lyx.org Git - lyx.git/blob - src/mathed/math_gridinfo.h
Point fix, earlier forgotten
[lyx.git] / src / mathed / math_gridinfo.h
1 // -*- C++ -*-
2 /**
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.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_GRIDINFO_H
13 #define MATH_GRIDINFO_H
14
15 struct ColInfo
16 {
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?
22         bool   leftline;
23 };
24
25
26 struct RowInfo
27 {
28         RowInfo() : topline(false), bottomline(false) {} 
29         bool topline;     // horizontal line above
30         int  bottomline;  // horizontal line below
31 };
32
33
34 struct CellInfo
35 {
36         CellInfo()
37                 : multi(0), leftline(false), rightline(false),
38            topline(false), bottomline(false)
39         {}
40
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?
48 };
49
50
51 inline char const * verbose_align(char c)
52 {
53         return c == 'c' ? "center" : c == 'r' ? "right" : c == 'l' ? "left" : "none";
54 }
55
56
57 #endif