2 * \file math_substackinset.C
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 "math_substackinset.h"
14 #include "math_mathmlstream.h"
15 #include "support/std_ostream.h"
20 MathSubstackInset::MathSubstackInset()
25 auto_ptr<InsetBase> MathSubstackInset::clone() const
27 return auto_ptr<InsetBase>(new MathSubstackInset(*this));
31 void MathSubstackInset::metrics(MetricsInfo & mi, Dimension & dim) const
33 if (mi.base.style == LM_ST_DISPLAY) {
34 StyleChanger dummy(mi.base, LM_ST_TEXT);
35 MathGridInset::metrics(mi);
37 MathGridInset::metrics(mi);
44 void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const
46 MathGridInset::draw(pi, x + 1, y);
47 drawMarkers(pi, x, y);
51 void MathSubstackInset::infoize(std::ostream & os) const
57 void MathSubstackInset::write(WriteStream & os) const
60 MathGridInset::write(os);
65 void MathSubstackInset::normalize(NormalStream & os) const
68 MathGridInset::normalize(os);
73 void MathSubstackInset::maple(MapleStream & os) const
76 MathGridInset::maple(os);