]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.C
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_sqrtinset.C
index d3be4d823de92ab00297be9ad52af2d4d7fc659e..27cdc56c2c13a99c478f5b0c46a42fd2b2ce41cf 100644 (file)
@@ -9,7 +9,7 @@
 
 
 MathSqrtInset::MathSqrtInset()
-       : MathInset(1)
+       : MathNestInset(1)
 {}
 
 
@@ -19,7 +19,7 @@ MathInset * MathSqrtInset::clone() const
 }
 
 
-void MathSqrtInset::metrics(MathStyles st)
+void MathSqrtInset::metrics(MathMetricsInfo const & st) const
 {
        xcell(0).metrics(st);
        size_    = st;
@@ -29,7 +29,7 @@ void MathSqrtInset::metrics(MathStyles st)
 }
 
 
-void MathSqrtInset::draw(Painter & pain, int x, int y)
+void MathSqrtInset::draw(Painter & pain, int x, int y) const
 { 
        xo(x);
        yo(y);
@@ -46,11 +46,9 @@ void MathSqrtInset::draw(Painter & pain, int x, int y)
 }
 
 
-void MathSqrtInset::write(std::ostream & os, bool fragile) const
+void MathSqrtInset::write(MathWriteInfo & os) const
 {
-       os << "\\sqrt{";
-       cell(0).write(os, fragile); 
-       os << '}';
+       os << "\\sqrt{" << cell(0) << '}';
 }