3 #include "math_substackinset.h"
4 #include "math_mathmlstream.h"
5 #include "math_streamstr.h"
6 #include "support/LOstream.h"
9 MathSubstackInset::MathSubstackInset()
14 MathInset * MathSubstackInset::clone() const
16 return new MathSubstackInset(*this);
20 void MathSubstackInset::metrics(MetricsInfo & mi, Dimension & dim) const
22 if (mi.base.style == LM_ST_DISPLAY) {
23 StyleChanger dummy(mi.base, LM_ST_TEXT);
24 MathGridInset::metrics(mi);
26 MathGridInset::metrics(mi);
33 void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const
35 MathGridInset::draw(pi, x + 1, y);
36 drawMarkers(pi, x, y);
40 void MathSubstackInset::infoize(std::ostream & os) const
46 void MathSubstackInset::write(WriteStream & os) const
49 MathGridInset::write(os);
54 void MathSubstackInset::normalize(NormalStream & os) const
57 MathGridInset::normalize(os);
62 void MathSubstackInset::maple(MapleStream & os) const
65 MathGridInset::maple(os);