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
22 return mi_.style == LM_ST_DISPLAY;
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 const & mi) const
41 mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
45 void MathFuncLimInset::draw(Painter & pain, int x, int y) const
47 drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);