2 * \file InsetMathLefteqn.cpp
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
8 * Full author contact details are available in file CREDITS.
13 #include "InsetMathLefteqn.h"
14 #include "MathArray.h"
15 #include "support/std_ostream.h"
25 InsetMathLefteqn::InsetMathLefteqn()
30 auto_ptr<InsetBase> InsetMathLefteqn::doClone() const
32 return auto_ptr<InsetBase>(new InsetMathLefteqn(*this));
36 bool InsetMathLefteqn::metrics(MetricsInfo & mi, Dimension & dim) const
38 cell(0).metrics(mi, dim);
50 void InsetMathLefteqn::draw(PainterInfo & pi, int x, int y) const
52 cell(0).draw(pi, x + 2, y);
53 drawMarkers(pi, x, y);
57 docstring InsetMathLefteqn::name() const
59 return from_ascii("lefteqn");
63 void InsetMathLefteqn::infoize(odocstream & os) const