]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathLefteqn.cpp
Coding style
[lyx.git] / src / mathed / InsetMathLefteqn.cpp
1 /**
2  * \file InsetMathLefteqn.cpp
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "InsetMathLefteqn.h"
14
15 #include "support/docstream.h"
16
17
18 namespace lyx {
19
20 InsetMathLefteqn::InsetMathLefteqn()
21         : InsetMathNest(1)
22 {}
23
24
25 Inset * InsetMathLefteqn::clone() const
26 {
27         return new InsetMathLefteqn(*this);
28 }
29
30
31 void InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const
32 {
33         cell(0).metrics(mi, dim);
34         dim.asc += 2;
35         dim.des += 2;
36         dim.wid = 4;
37         metricsMarkers(dim);
38 }
39
40
41 void InsetMathLefteqn::draw(PainterInfo & pi, int x, int y) const
42 {
43         cell(0).draw(pi, x + 2, y);
44         drawMarkers(pi, x, y);
45 }
46
47
48 docstring InsetMathLefteqn::name() const
49 {
50         return from_ascii("lefteqn");
51 }
52
53
54 void InsetMathLefteqn::infoize(odocstream & os) const
55 {
56         os << "Lefteqn ";
57 }
58
59
60 } // namespace lyx