1 #include "math_funcliminset.h"
2 #include "math_mathmlstream.h"
3 #include "math_support.h"
6 MathFuncLimInset::MathFuncLimInset(string const & name)
11 MathInset * MathFuncLimInset::clone() const
13 return new MathFuncLimInset(*this);
17 bool MathFuncLimInset::isScriptable() const
19 return mi_.style == LM_ST_DISPLAY;
23 void MathFuncLimInset::write(WriteStream & os) const
25 os << '\\' << name_.c_str() << ' ';
29 void MathFuncLimInset::normalize(NormalStream & os) const
31 os << "[funclim " << name_.c_str() << ']';
35 void MathFuncLimInset::metrics(MathMetricsInfo const & mi) const
38 mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
42 void MathFuncLimInset::draw(Painter & pain, int x, int y) const
44 drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);