- drawStr(pain, code_, size_, x, y, ssym_);
+
+void MathSymbolInset::normalize(NormalStream & os) const
+{
+ os << "[symbol " << name() << "]";
+}
+
+
+void MathSymbolInset::maplize(MapleStream & os) const
+{
+ if (name() == "cdot")
+ os << '*';
+ else if (name() == "infty")
+ os << "infinity";
+ else
+ os << name();
+}
+
+
+char const * MathMLtype(string const & s)
+{
+ if (s == "mathop")
+ return "mo";
+ return "mi";
+}
+
+
+bool MathSymbolInset::match(MathInset * p) const
+{
+ MathSymbolInset const * q = p->asSymbolInset();
+ return q && name() == q->name();
+}
+
+
+void MathSymbolInset::mathmlize(MathMLStream & os) const
+{
+ char const * type = MathMLtype(sym_->extra);
+ os << '<' << type << "> ";
+ if (sym_->xmlname == "x") // unknown so far
+ os << name();
+ else
+ os << sym_->xmlname;
+ os << " </" << type << '>';
+}
+
+
+void MathSymbolInset::octavize(OctaveStream & os) const
+{
+ if (name() == "cdot")
+ os << '*';
+ else
+ os << name();
+}
+
+
+void MathSymbolInset::write(WriteStream & os) const
+{
+ os << '\\' << name() << ' ';
+}
+
+
+void MathSymbolInset::infoize(ostream & os) const
+{
+ os << '\\' << name();