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::metrics(MathMetricsInfo const & mi) const
42 mathed_string_dim(LM_TC_TEXTRM, mi_, name_, ascent_, descent_, width_);
46 void MathFuncInset::draw(Painter & pain, int x, int y) const
48 drawStr(pain, LM_TC_TEXTRM, mi_, x, y, name_);
52 void MathFuncInset::maplize(MapleStream & os) const
54 os << ' ' << name_.c_str();
58 void MathFuncInset::mathmlize(MathMLStream & os) const
60 os << MTag("mi") << name_.c_str() << ETag("mi");
64 void MathFuncInset::octavize(OctaveStream & os) const
66 os << ' ' << name_.c_str();
70 void MathFuncInset::normalize(NormalStream & os) const
72 os << "[func " << name_.c_str() << ']';
76 void MathFuncInset::write(WriteStream & os) const
78 os << "\\" << name_.c_str() << ' ';