+#include <config.h>
+
#ifdef __GNUG__
#pragma implementation
#endif
#include "Painter.h"
#include "math_support.h"
#include "math_mathmlstream.h"
-
+#include "math_streamstr.h"
extern LyXFont WhichFont(short type, int size);
}
-void MathFuncInset::write(MathWriteInfo & os) const
-{
- os << "\\" << name_.c_str() << ' ';
-}
-
-
-void MathFuncInset::writeNormal(NormalStream & os) const
-{
- os << "[func " << name_.c_str() << ']';
-}
-
-
void MathFuncInset::metrics(MathMetricsInfo const & mi) const
{
mi_ = mi;
}
+bool MathFuncInset::match(MathInset * p) const
+{
+ MathFuncInset const * q = p->asFuncInset();
+ return q && name_ == q->name_;
+}
+
+
void MathFuncInset::maplize(MapleStream & os) const
{
- os << name_.c_str();
+ os << ' ' << name_;
}
void MathFuncInset::mathmlize(MathMLStream & os) const
{
- os << MTag("mi") << name_.c_str() << ETag("mi");
+ os << MTag("mi") << name_ << ETag("mi");
}
void MathFuncInset::octavize(OctaveStream & os) const
{
- os << name_.c_str();
+ os << ' ' << name_;
+}
+
+
+void MathFuncInset::normalize(NormalStream & os) const
+{
+ os << "[func " << name_ << ']';
+}
+
+
+void MathFuncInset::write(WriteStream & os) const
+{
+ os << "\\" << name_ << ' ';
}