]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_boxinset.C
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_boxinset.C
index 218cbec0a521fbd486da26e1f78b0af80661f253..135d526944ad795baf8ccf48581617a23a47867e 100644 (file)
@@ -1,8 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_boxinset.h"
 #include "math_support.h"
@@ -24,7 +21,7 @@ MathInset * MathBoxInset::clone() const
 
 void MathBoxInset::write(WriteStream & os) const
 {
-       os << "\\" << name_ << "{" << cell(0) << "}";
+       os << '\\' << name_ << '{' << cell(0) << '}';
 }
 
 
@@ -39,8 +36,8 @@ void MathBoxInset::normalize(NormalStream & os) const
 void MathBoxInset::metrics(MathMetricsInfo & mi) const
 {
        MathFontSetChanger dummy(mi.base, "textnormal");
-       xcell(0).metrics(mi);
-       dim_ = xcell(0).dim();
+       cell(0).metrics(mi);
+       dim_ = cell(0).dim();
        metricsMarkers2();
 }
 
@@ -48,7 +45,7 @@ void MathBoxInset::metrics(MathMetricsInfo & mi) const
 void MathBoxInset::draw(MathPainterInfo & pi, int x, int y) const
 {
        MathFontSetChanger dummy(pi.base, "textnormal");
-       xcell(0).draw(pi, x, y);
+       cell(0).draw(pi, x, y);
        drawMarkers2(pi, x + 1, y);
 }