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) 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);
32 void MathSubstackInset::draw(PainterInfo & pi, int x, int y) const
34 MathGridInset::draw(pi, x + 1, y);
35 drawMarkers2(pi, x, y);
39 void MathSubstackInset::infoize(std::ostream & os) const
45 void MathSubstackInset::write(WriteStream & os) const
48 MathGridInset::write(os);
53 void MathSubstackInset::normalize(NormalStream & os) const
56 MathGridInset::normalize(os);
61 void MathSubstackInset::maple(MapleStream & os) const
64 MathGridInset::maple(os);