A bit more re-organization.
[lyx.git] / src / mathed / MathGridInfo.h
blob07ba78a9d95fc97fa75d7c14f575f699ca1e4f0e
1 // -*- C++ -*-
2 /**
3 * \file MathGridInfo.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author André Pönitz
9 * Full author contact details are available in file CREDITS.
12 #ifndef MATH_GRIDINFO_H
13 #define MATH_GRIDINFO_H
15 #include <string>
18 namespace lyx {
21 class ColInfo
23 public:
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?
29 bool leftline;
33 class RowInfo
35 public:
36 RowInfo() : topline(false), bottomline(false) {}
37 bool topline; // horizontal line above
38 int bottomline; // horizontal line below
42 class CellInfo
44 public:
45 CellInfo()
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";
67 } // namespace lyx
69 #endif