]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_fracinset.C
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_fracinset.C
index 49aea9182464aa6c6dd219580a5e2a5ec492ccd1..ec0517161dd6e7e58234f469e4d0fb9a645736a9 100644 (file)
@@ -1,6 +1,3 @@
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_fracinset.h"
 #include "math_support.h"
@@ -29,6 +26,12 @@ MathFracInset * MathFracInset::asFracInset()
 }
 
 
+MathFracInset const * MathFracInset::asFracInset() const
+{
+       return atop_ ? 0 : this;
+}
+
+
 void MathFracInset::metrics(MathMetricsInfo & mi) const
 {
        MathFracChanger dummy(mi.base);
@@ -86,19 +89,19 @@ string MathFracInset::name() const
 }
 
 
-void MathFracInset::maplize(MapleStream & os) const
+void MathFracInset::maple(MapleStream & os) const
 {
        os << '(' << cell(0) << ")/(" << cell(1) << ')';
 }
 
 
-void MathFracInset::mathematicize(MathematicaStream & os) const
+void MathFracInset::mathematica(MathematicaStream & os) const
 {
        os << '(' << cell(0) << ")/(" << cell(1) << ')';
 }
 
 
-void MathFracInset::octavize(OctaveStream & os) const
+void MathFracInset::octave(OctaveStream & os) const
 {
        os << '(' << cell(0) << ")/(" << cell(1) << ')';
 }