1 #include "math_funcliminset.h"
2 #include "mathed/math_parser.h"
3 #include "mathed/support.h"
4 #include "support/LOstream.h"
9 MathFuncLimInset::MathFuncLimInset(const latexkeys * l)
14 MathInset * MathFuncLimInset::clone() const
16 return new MathFuncLimInset(*this);
20 bool MathFuncLimInset::isScriptable() const
22 return size_.style == LM_ST_DISPLAY;
26 void MathFuncLimInset::write(MathWriteInfo & os) const
28 os << '\\' << sym_->name << ' ';
32 void MathFuncLimInset::writeNormal(ostream & os) const
34 os << "[" << sym_->name << "] ";
38 void MathFuncLimInset::metrics(MathMetricsInfo const & st) const
41 mathed_string_dim(LM_TC_TEXTRM, size_, sym_->name,
42 ascent_, descent_, width_);
46 void MathFuncLimInset::draw(Painter & pain, int x, int y) const
50 drawStr(pain, LM_TC_TEXTRM, size_, x, y, sym_->name);