+#include <config.h>
+
#ifdef __GNUG__
#pragma implementation
#endif
#include "LColor.h"
#include "Painter.h"
#include "support/LOstream.h"
-#include "mathed/support.h"
+#include "math_support.h"
#include "math_parser.h"
#include "debug.h"
+#include "math_mathmlstream.h"
MathCharInset::MathCharInset(char c)
}
-MathTextCodes MathCharInset::nativeCode(char c) const
+MathTextCodes MathCharInset::nativeCode(char c)
{
if (isalpha(c))
return LM_TC_VAR;
}
-void MathCharInset::write(MathWriteInfo & os) const
+void MathCharInset::write(WriteStream & os) const
{
- writeHeader(os.os);
- writeRaw(os.os);
- writeTrailer(os.os);
+ writeHeader(os.os());
+ writeRaw(os.os());
+ writeTrailer(os.os());
}
-void MathCharInset::writeNormal(std::ostream & os) const
+void MathCharInset::normalize(NormalStream & os) const
{
os << "[char " << char_ << " " << "mathalpha" << "]";
}
{
code_ = (code_ == t) ? LM_TC_VAR : t;
}
+
+
+bool MathCharInset::match(MathInset * p) const
+{
+ MathCharInset const * q = p->asCharInset();
+ return q && char_ == q->char_ && code_ == q->code_;
+}