5 #include "math_funcinset.h"
8 #include "math_support.h"
9 #include "math_mathmlstream.h"
13 extern LyXFont WhichFont(short type, int size);
16 MathFuncInset::MathFuncInset(string const & nm)
21 MathInset * MathFuncInset::clone() const
23 return new MathFuncInset(*this);
27 string const & MathFuncInset::name() const
33 void MathFuncInset::setName(string const & n)
39 void MathFuncInset::write(MathWriteInfo & os) const
41 os << "\\" << name_.c_str() << ' ';
45 void MathFuncInset::writeNormal(NormalStream & os) const
47 os << "[func " << name_.c_str() << ']';
51 void MathFuncInset::metrics(MathMetricsInfo const & mi) const
54 mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
58 void MathFuncInset::draw(Painter & pain, int x, int y) const
60 drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
64 void MathFuncInset::maplize(MapleStream & os) const
70 void MathFuncInset::mathmlize(MathMLStream & os) const
72 os << MTag("mi") << name_.c_str() << ETag("mi");
76 void MathFuncInset::octavize(OctaveStream & os) const