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