#include "math_iter.h"
#include "math_root.h"
-MathRootInset::MathRootInset(short st): MathSqrtInset(st)
+using std::ostream;
+
+MathRootInset::MathRootInset(short st)
+ : MathSqrtInset(st)
{
idx = 1;
uroot = new MathParInset(LM_ST_TEXT);
}
-void MathRootInset::Write(ostream & os)
+void MathRootInset::Write(ostream & os, bool fragile)
{
-#ifdef USE_OSTREAM_ONLY
os << '\\' << name << '[';
- uroot->Write(os);
+ uroot->Write(os, fragile);
os << "]{";
- MathParInset::Write(os);
+ MathParInset::Write(os, fragile);
os << '}';
-#else
- string output;
- MathRootInset::Write(output);
- os << output;
-#endif
-}
-
-
-#ifndef USE_OSTREAM_ONLY
-void MathRootInset::Write(string & outf)
-{
- outf += '\\';
- outf += name;
- outf += '[';
- uroot->Write(outf);
- outf += "]{";
- MathParInset::Write(outf);
- outf += '}';
}
-#endif