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;
27 void MathFuncLimInset::write(WriteStream & os) const
29 os << '\\' << name_ << ' ';
33 void MathFuncLimInset::normalize(NormalStream & os) const
35 os << "[funclim " << name_ << ']';
39 void MathFuncLimInset::metrics(MathMetricsInfo const & mi) const
41 whichFont(font_, LM_TC_TEXTRM, mi);
42 mathed_string_dim(font_, name_, ascent_, descent_, width_);
46 void MathFuncLimInset::draw(Painter & pain, int x, int y) const
48 drawStr(pain, font_, x, y, name_);