+#include <config.h>
+
#ifdef __GNUG__
#pragma implementation
#endif
#include "math_funcinset.h"
#include "font.h"
#include "Painter.h"
-#include "mathed/support.h"
-#include "support/LOstream.h"
-
+#include "math_support.h"
+#include "math_mathmlstream.h"
+#include "math_streamstr.h"
-using std::ostream;
extern LyXFont WhichFont(short type, int size);
}
-void MathFuncInset::write(MathWriteInfo & os) const
-{
- os << "\\" << name_ << ' ';
-}
-
-
-void MathFuncInset::writeNormal(std::ostream & os) const
-{
- os << "[" << name_ << "] ";
-}
-
-
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 << "<mi>" << name_.c_str() << "</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_ << ' ';
}