7 #include "math_unknowninset.h"
10 #include "math_support.h"
11 #include "math_mathmlstream.h"
12 #include "math_streamstr.h"
15 extern LyXFont WhichFont(short type, int size);
18 MathUnknownInset::MathUnknownInset(string const & nm)
23 MathInset * MathUnknownInset::clone() const
25 return new MathUnknownInset(*this);
29 string const & MathUnknownInset::name() const
35 void MathUnknownInset::setName(string const & n)
41 void MathUnknownInset::write(WriteStream & os) const
43 os << "\\" << name_ << ' ';
47 void MathUnknownInset::normalize(NormalStream & os) const
49 os << "[func " << name_ << ']';
53 void MathUnknownInset::metrics(MathMetricsInfo const & mi) const
56 mathed_string_dim(LM_TC_TEX, mi_, name_, ascent_, descent_, width_);
60 void MathUnknownInset::draw(Painter & pain, int x, int y) const
62 drawStr(pain, LM_TC_TEX, mi_, x, y, name_);
66 void MathUnknownInset::maplize(MapleStream & os) const
72 void MathUnknownInset::mathmlize(MathMLStream & os) const
74 os << MTag("mi") << name_ << ETag("mi");
78 void MathUnknownInset::octavize(OctaveStream & os) const