]> git.lyx.org Git - lyx.git/blob - src/mathed/math_gridinfo.h
Remove mixed_content from output parameters.
[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 #include <string>
16
17
18 struct ColInfo
19 {
20         ColInfo() : align('c'), rightline(0), leftline(false) {}
21         char   align;      // column alignment
22         std::string width;      // column width
23         std::string special;    // special column alignment
24         int    rightline;  // a line on the right?
25         bool   leftline;
26 };
27
28
29 struct RowInfo
30 {
31         RowInfo() : topline(false), bottomline(false) {}
32         bool topline;     // horizontal line above
33         int  bottomline;  // horizontal line below
34 };
35
36
37 struct CellInfo
38 {
39         CellInfo()
40                 : multi(0), leftline(false), rightline(false),
41            topline(false), bottomline(false)
42         {}
43
44         std::string content;    // cell content
45         int multi;         // multicolumn flag
46         char align;        // cell alignment
47         bool leftline;     // do we have a line on the left?
48         bool rightline;    // do we have a line on the right?
49         bool topline;        // do we have a line above?
50         bool bottomline;   // do we have a line below?
51 };
52
53
54 inline char const * verbose_align(char c)
55 {
56         return c == 'c' ? "center" : c == 'r' ? "right" : c == 'l' ? "left" : "none";
57 }
58
59
60 #endif