+2001-03-01 Lars Gullik Bjønnes <larsbj@trylle.birdstep.com>
+
+ * math_macroarg.h: remove default constructor
+
+ * math_macroarg.C: include Lsstream.h instead of debug.h
+ (MathMacroArgument): remove default constructor
+ (Write): add std:: on ostream arg
+
2001-02-23 John Levon <moz@compsoc.man.ac.uk>
* math_parser.C:
#include "math_macroarg.h"
#include "mathed/support.h"
-#include "debug.h"
-
-
-MathMacroArgument::MathMacroArgument()
- : expnd_mode_(false), number_(1)
-{
- SetType(LM_OT_MACRO_ARG);
-}
+#include "Lsstream.h"
MathMacroArgument::MathMacroArgument(int n)
- : expnd_mode_(false), number_(n)
-{
- SetType(LM_OT_MACRO_ARG);
-}
+ : MathParInset(LM_ST_TEXT, "", LM_OT_MACRO_ARG),
+ expnd_mode_(false), number_(n)
+{}
MathedInset * MathMacroArgument::Clone()
} else {
std::ostringstream ost;
ost << '#' << number_;
- width = mathed_string_width(LM_TC_TEX, size(), ost.str().c_str());
+ width = mathed_string_width(LM_TC_TEX, size(),
+ ost.str().c_str());
mathed_string_height(LM_TC_TEX, size(), ost.str().c_str(),
ascent, descent);
}
}
-void MathMacroArgument::Write(ostream & os, bool fragile)
+void MathMacroArgument::Write(std::ostream & os, bool fragile)
{
if (expnd_mode_) {
MathParInset::Write(os, fragile);