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_ == LM_ST_DISPLAY;
26 void MathFuncLimInset::write(ostream & os, bool /* fragile */) const
28 os << '\\' << sym_->name << ' ';
32 void MathFuncLimInset::writeNormal(ostream & os) const
34 os << "[" << sym_->name << "] ";
38 void MathFuncLimInset::metrics(MathStyles st) const
41 mathed_string_dim(LM_TC_TEXTRM, size(), sym_->name, ascent_, descent_, width_);
45 void MathFuncLimInset::draw(Painter & pain, int x, int y) const
49 drawStr(pain, LM_TC_TEXTRM, size_, x, y, sym_->name);