]> git.lyx.org Git - lyx.git/blob - src/mathed/math_lefteqninset.C
Remove mixed_content from output parameters.
[lyx.git] / src / mathed / math_lefteqninset.C
1 /**
2  * \file math_lefteqninset.C
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 "math_lefteqninset.h"
14 #include "math_data.h"
15 #include "support/std_ostream.h"
16
17
18 using std::string;
19 using std::auto_ptr;
20
21
22 MathLefteqnInset::MathLefteqnInset()
23         : MathNestInset(1)
24 {}
25
26
27 auto_ptr<InsetBase> MathLefteqnInset::clone() const
28 {
29         return auto_ptr<InsetBase>(new MathLefteqnInset(*this));
30 }
31
32
33 void MathLefteqnInset::metrics(MetricsInfo & mi, Dimension & dim) const
34 {
35         cell(0).metrics(mi, dim);
36         dim.asc += 2;
37         dim.des += 2;
38         dim.wid = 4;
39         metricsMarkers(dim);
40         dim_ = dim;
41 }
42
43
44 void MathLefteqnInset::draw(PainterInfo & pi, int x, int y) const
45 {
46         cell(0).draw(pi, x + 2, y);
47         drawMarkers(pi, x, y);
48 }
49
50
51 string MathLefteqnInset::name() const
52 {
53         return "lefteqn";
54 }
55
56
57 void MathLefteqnInset::infoize(std::ostream & os) const
58 {
59         os << "Lefteqn ";
60 }