]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sqrtinset.C
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_sqrtinset.C
index b201df05457e58715d5c6bb5c50db7a7c8b63544..956fbb28b9fcd35669414fca47ef31771fca0b18 100644 (file)
@@ -1,5 +1,3 @@
-#include <config.h>
-
 #ifdef __GNUG__
 #pragma implementation
 #endif
@@ -7,12 +5,11 @@
 #include "math_sqrtinset.h"
 #include "LColor.h"
 #include "Painter.h"
-#include "support.h"
 #include "support/LOstream.h"
 
 
 MathSqrtInset::MathSqrtInset()
-       : MathInset(1)
+       : MathNestInset(1)
 {}
 
 
@@ -22,9 +19,9 @@ MathInset * MathSqrtInset::clone() const
 }
 
 
-void MathSqrtInset::Metrics(MathStyles st)
+void MathSqrtInset::metrics(MathStyles st) const
 {
-       xcell(0).Metrics(st);
+       xcell(0).metrics(st);
        size_    = st;
        ascent_  = xcell(0).ascent()  + 4;
        descent_ = xcell(0).descent() + 2;
@@ -32,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);
@@ -49,17 +46,17 @@ void MathSqrtInset::draw(Painter & pain, int x, int y)
 }
 
 
-void MathSqrtInset::Write(std::ostream & os, bool fragile) const
+void MathSqrtInset::write(std::ostream & os, bool fragile) const
 {
-       os << '\\' << name_ << '{';
-       cell(0).Write(os, fragile); 
+       os << "\\sqrt{";
+       cell(0).write(os, fragile); 
        os << '}';
 }
 
 
-void MathSqrtInset::WriteNormal(std::ostream & os) const
+void MathSqrtInset::writeNormal(std::ostream & os) const
 {
        os << "[sqrt ";
-       cell(0).WriteNormal(os); 
+       cell(0).writeNormal(os); 
        os << "] ";
 }