A bit more re-organization.
[lyx.git] / src / mathed / InsetMathLefteqn.cpp
blobec4fe7e9b0f74f6927c42cb7f333665b13ca2795
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.
6 * \author André Pönitz
8 * Full author contact details are available in file CREDITS.
9 */
11 #include <config.h>
13 #include "InsetMathLefteqn.h"
15 #include "support/docstream.h"
18 namespace lyx {
20 InsetMathLefteqn::InsetMathLefteqn(Buffer * buf)
21 : InsetMathNest(buf, 1)
25 Inset * InsetMathLefteqn::clone() const
27 return new InsetMathLefteqn(*this);
31 void InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const
33 cell(0).metrics(mi, dim);
34 dim.asc += 2;
35 dim.des += 2;
36 dim.wid = 4;
37 metricsMarkers(dim);
41 void InsetMathLefteqn::draw(PainterInfo & pi, int x, int y) const
43 cell(0).draw(pi, x + 2, y);
44 drawMarkers(pi, x, y);
48 docstring InsetMathLefteqn::name() const
50 return from_ascii("lefteqn");
54 void InsetMathLefteqn::infoize(odocstream & os) const
56 os << "Lefteqn ";
60 } // namespace lyx