7 #include "math_unknowninset.h"
8 #include "math_support.h"
9 #include "math_mathmlstream.h"
10 #include "math_streamstr.h"
13 MathUnknownInset::MathUnknownInset(string const & nm, bool final, bool black)
14 : name_(nm), final_(final), black_(black)
18 MathInset * MathUnknownInset::clone() const
20 return new MathUnknownInset(*this);
24 string MathUnknownInset::name() const
30 void MathUnknownInset::setName(string const & name) const
36 bool MathUnknownInset::match(MathInset const * p) const
38 MathUnknownInset const * q = p->asUnknownInset();
39 return q && name_ == q->name_;
43 void MathUnknownInset::normalize(NormalStream & os) const
45 os << "[unknown " << name_ << ']';
49 void MathUnknownInset::metrics(MathMetricsInfo & mi) const
51 mathed_string_dim(mi.base.font, name_, dim_);
55 void MathUnknownInset::draw(MathPainterInfo & pi, int x, int y) const
58 drawStrBlack(pi, x, y, name_);
60 drawStrRed(pi, x, y, name_);
64 void MathUnknownInset::finalize() const
70 bool MathUnknownInset::final() const
76 void MathUnknownInset::maplize(MapleStream & os) const
81 void MathUnknownInset::mathematicize(MathematicaStream & os) const
87 void MathUnknownInset::mathmlize(MathMLStream & os) const
89 os << MTag("mi") << name_ << ETag("mi");
93 void MathUnknownInset::octavize(OctaveStream & os) const