3 #include "math_funcliminset.h"
4 #include "math_mathmlstream.h"
5 #include "math_streamstr.h"
6 #include "math_support.h"
9 MathFuncLimInset::MathFuncLimInset(string const & name)
14 MathInset * MathFuncLimInset::clone() const
16 return new MathFuncLimInset(*this);
20 bool MathFuncLimInset::isScriptable() const
26 void MathFuncLimInset::write(WriteStream & os) const
28 os << '\\' << name_ << ' ';
32 void MathFuncLimInset::normalize(NormalStream & os) const
34 os << "[funclim " << name_ << ']';
38 void MathFuncLimInset::metrics(MathMetricsInfo & mi) const
40 scriptable_ = (mi.base.style == LM_ST_DISPLAY);
41 mathed_string_dim(mi.base.font, name_, ascent_, descent_, width_);
45 void MathFuncLimInset::draw(MathPainterInfo & pi, int x, int y) const
47 drawStrBlack(pi, x, y, name_);