1 #include "math_exfuncinset.h"
3 #include "math_mathmlstream.h"
9 MathExFuncInset::MathExFuncInset(string const & name)
10 : MathNestInset(1), name_(name)
14 MathInset * MathExFuncInset::clone() const
16 return new MathExFuncInset(*this);
20 void MathExFuncInset::write(MathWriteInfo & os) const
22 os << '\\' << name_.c_str() << '{' << cell(0) << '}';
26 void MathExFuncInset::writeNormal(NormalStream & os) const
28 os << '[' << name_.c_str() << ' ' << cell(0) << ']';
32 void MathExFuncInset::metrics(MathMetricsInfo const & mi) const
35 mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
39 void MathExFuncInset::draw(Painter & pain, int x, int y) const
41 drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
45 void MathExFuncInset::octavize(OctaveStream & os) const
47 os << name_.c_str() << '(' << cell(0) << ')';