]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_spaceinset.C
further code uglification to make Jean-Marc's compiler happy
[lyx.git] / src / mathed / math_spaceinset.C
index 231f4c8b1c29aaafcfecbb9850ece68b3d23ffd8..46408f177e2f8e6e49c3d6c8a0ab2dfbf39f7960 100644 (file)
@@ -3,11 +3,13 @@
 #endif
 
 #include "math_spaceinset.h"
+#include "support.h"
 #include "LColor.h"
 #include "Painter.h"
 #include "support/LOstream.h"
 
 
+
 MathSpaceInset::MathSpaceInset(int sp)
        : space_(sp)
 {}
@@ -19,7 +21,7 @@ MathInset * MathSpaceInset::clone() const
 }
 
 
-void MathSpaceInset::draw(Painter & pain, int x, int y)
+void MathSpaceInset::draw(Painter & pain, int x, int y) const
 { 
        
 // XPoint p[4] = {{++x, y-3}, {x, y}, {x+width-2, y}, {x+width-2, y-3}};
@@ -38,20 +40,20 @@ void MathSpaceInset::draw(Painter & pain, int x, int y)
 }
 
 
-void MathSpaceInset::Write(std::ostream & os, bool /* fragile */) const
+void MathSpaceInset::write(std::ostream & os, bool /* fragile */) const
 {
        if (space_ >= 0 && space_ < 6)
                os << '\\' << latex_mathspace[space_] << ' ';
 }
 
 
-void MathSpaceInset::WriteNormal(std::ostream & os) const
+void MathSpaceInset::writeNormal(std::ostream & os) const
 {
        os << "[space " << space_ << "] ";
 }
 
 
-void MathSpaceInset::Metrics(MathStyles st)
+void MathSpaceInset::metrics(MathStyles st) const
 {
        size_  = st;
        width_ = space_ ? space_ * 2 : 2;