]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_binaryopinset.C
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_binaryopinset.C
index aaac72a1867c19725d0153fe0f543e5af40dca4f..b38add432d2485612f486f4f1f85f4df9b45bbb1 100644 (file)
@@ -1,8 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_binaryopinset.h"
 #include "MathPainterInfo.h"
@@ -34,19 +31,19 @@ int MathBinaryOpInset::opwidth() const
 void MathBinaryOpInset::metrics(MathMetricsInfo & mi) const
 {
        mi_ = mi;
-       xcell(0).metrics(mi);
-       xcell(1).metrics(mi);
-       width_   = xcell(0).width() + xcell(1).width() + opwidth();
-       ascent_  = max(xcell(0).ascent(),  xcell(1).ascent());
-       descent_ = max(xcell(0).descent(), xcell(1).descent());
+       cell(0).metrics(mi);
+       cell(1).metrics(mi);
+       width_   = cell(0).width() + cell(1).width() + opwidth();
+       ascent_  = max(cell(0).ascent(),  cell(1).ascent());
+       descent_ = max(cell(0).descent(), cell(1).descent());
 }
 
 
 void MathBinaryOpInset::draw(MathPainterInfo & pain, int x, int y) const
 {
-       xcell(0).draw(pain, x, y);
-       drawChar(pain, LM_TC_CONST, mi_, x + xcell(0).width() , y, op_);
-       xcell(1).draw(pain, x + width() - xcell(1).width(), y);
+       cell(0).draw(pain, x, y);
+       drawChar(pain, LM_TC_CONST, mi_, x + cell(0).width() , y, op_);
+       cell(1).draw(pain, x + width() - cell(1).width(), y);
 }