5 #include "math_funcinset.h"
8 #include "mathed/support.h"
9 #include "support/LOstream.h"
14 extern LyXFont WhichFont(short type, int size);
17 MathFuncInset::MathFuncInset(string const & nm)
22 MathInset * MathFuncInset::clone() const
24 return new MathFuncInset(*this);
28 string const & MathFuncInset::name() const
34 void MathFuncInset::setName(string const & n)
40 void MathFuncInset::write(MathWriteInfo & os) const
42 os << "\\" << name_ << ' ';
46 void MathFuncInset::writeNormal(std::ostream & os) const
48 os << "[" << name_ << "] ";
52 void MathFuncInset::metrics(MathMetricsInfo const & st) const
55 mathed_string_dim(LM_TC_TEX, size_, name_, ascent_, descent_, width_);
59 void MathFuncInset::draw(Painter & pain, int x, int y) const
63 drawStr(pain, LM_TC_TEX, size_, x, y, name_);