1 #include "math_exfuncinset.h"
2 #include "math_support.h"
3 #include "math_mathmlstream.h"
9 MathExFuncInset::MathExFuncInset(string const & name, MathArray const & arg)
10 : MathNestInset(1), name_(name)
16 MathInset * MathExFuncInset::clone() const
18 return new MathExFuncInset(*this);
22 void MathExFuncInset::write(WriteStream & os) const
24 os << '\\' << name_.c_str() << '{' << cell(0) << '}';
28 void MathExFuncInset::normalize(NormalStream & os) const
30 os << '[' << name_.c_str() << ' ' << cell(0) << ']';
34 void MathExFuncInset::metrics(MathMetricsInfo const & mi) const
37 mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
41 void MathExFuncInset::draw(Painter & pain, int x, int y) const
43 drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
47 void MathExFuncInset::octavize(OctaveStream & os) const
49 os << name_.c_str() << '(' << cell(0) << ')';