1 #include "math_exfuncinset.h"
4 #include "support/LOstream.h"
10 MathExFuncInset::MathExFuncInset(string const & name)
11 : MathNestInset(1), name_(name)
15 MathInset * MathExFuncInset::clone() const
17 return new MathExFuncInset(*this);
21 void MathExFuncInset::write(MathWriteInfo & os) const
23 os << '\\' << name_ << '{';
29 void MathExFuncInset::writeNormal(ostream & os) const
31 os << "[" << name_ << ' ';
32 cell(0).writeNormal(os);
37 void MathExFuncInset::metrics(MathMetricsInfo const & mi) const
40 mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
41 lyxerr << "should not happen\n";
45 void MathExFuncInset::draw(Painter & pain, int x, int y) const
47 drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
48 lyxerr << "should not happen\n";
52 string MathExFuncInset::octavize() const
54 return name_ + '(' + cell(0).octavize() + ')';