]> git.lyx.org Git - features.git/blobdiff - src/mathed/math_root.C
apply the ostream changes to mathed, some other small related things
[features.git] / src / mathed / math_root.C
index 46643418ebc84b0b8da8b8412055907704fc6dd3..f37fe0518c9ea2d1349870ad26583311f5599721 100644 (file)
@@ -135,14 +135,23 @@ void MathRootInset::SetFocus(int x, int)
 
 
 void MathRootInset::Write(ostream & os)
-{ 
+{
+#ifdef USE_OSTREAM_ONLY
+       os << '\\' << name << '[';
+       uroot->Write(os);  
+       os << "]{";
+       MathParInset::Write(os);
+       os << '}';
+#else
    string output;
    MathRootInset::Write(output);
    os << output;
+#endif
 }
 
 
-void MathRootInset::Write(string &outf)
+#ifndef USE_OSTREAM_ONLY
+void MathRootInset::Write(string & outf)
 { 
    outf += '\\';
    outf += name;
@@ -152,3 +161,4 @@ void MathRootInset::Write(string &outf)
    MathParInset::Write(outf);
    outf += '}';
 }
+#endif