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_data.h"
15 #include "math_mathmlstream.h"
16 #include "support/std_ostream.h"
21 MathSubstackInset::MathSubstackInset()
26 auto_ptr<InsetBase> MathSubstackInset::clone() const
28 return auto_ptr<InsetBase>(new MathSubstackInset(*this));
32 void MathSubstackInset::metrics(MetricsInfo & mi, Dimension & dim) const
34 if (mi.base.style == LM_ST_DISPLAY) {
35 StyleChanger dummy(mi.base, LM_ST_TEXT);
36 MathGridInset::metrics(mi, dim);
38 MathGridInset::metrics(mi, dim);
45 void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const
47 MathGridInset::draw(pi, x + 1, y);
48 drawMarkers(pi, x, y);
52 void MathSubstackInset::infoize(std::ostream & os) const
58 void MathSubstackInset::write(WriteStream & os) const
61 MathGridInset::write(os);
66 void MathSubstackInset::normalize(NormalStream & os) const
69 MathGridInset::normalize(os);
74 void MathSubstackInset::maple(MapleStream & os) const
77 MathGridInset::maple(os);