+#include <config.h>
+
#ifdef __GNUG__
#pragma implementation
#endif
#include "math_dotsinset.h"
-#include "mathed/support.h"
-#include "support/LOstream.h"
-
-using std::ostream;
+#include "math_mathmlstream.h"
+#include "math_streamstr.h"
+#include "math_support.h"
MathDotsInset::MathDotsInset(string const & name)
}
-void MathDotsInset::metrics(MathStyles st) const
+void MathDotsInset::metrics(MathMetricsInfo const & mi) const
{
- size(st);
- mathed_char_dim(LM_TC_VAR, size(), 'M', ascent_, descent_, width_);
+ mathed_char_dim(LM_TC_VAR, mi, 'M', ascent_, descent_, width_);
switch (name_[0]) {
case 'l': dh_ = 0; break;
case 'c': dh_ = ascent_ / 2; break;
}
-void MathDotsInset::write(ostream & os, bool /* fragile */) const
+void MathDotsInset::write(WriteStream & os) const
{
os << '\\' << name_ << ' ';
}
-void MathDotsInset::writeNormal(ostream & os) const
+void MathDotsInset::normalize(NormalStream & os) const
{
os << "[" << name_ << "] ";
}