]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_rootinset.C
rename commandtags.h to lfuns.h and renumber/cleanup. Rebuild the tree !
[lyx.git] / src / mathed / math_rootinset.C
index ed8083960649bd9f046b1916aaf8be36c2228f12..4e22bdbd2dca111276c36f96226c1b537a56458d 100644 (file)
@@ -11,9 +11,6 @@
  *   the GNU General Public Licence version 2 or later.
  */
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_rootinset.h"
 #include "math_mathmlstream.h"
@@ -59,7 +56,8 @@ void MathRootInset::draw(MathPainterInfo & pi, int x, int y) const
        xp[1] = x + w + 4;    yp[1] = y - a + 1;
        xp[2] = x + w;        yp[2] = y + d;
        xp[3] = x + w - 2;    yp[3] = y + (d - a)/2 + 2;
-       xp[4] = x;            yp[4] = y + (d - a)/2 + 2;
+       //xp[4] = x;            yp[4] = y + (d - a)/2 + 2;
+       xp[4] = x + w - 5;    yp[4] = y + (d - a)/2 + 4;
        pi.pain.lines(xp, yp, 5, LColor::math);
        drawMarkers(pi, x, y);
 }
@@ -88,9 +86,15 @@ bool MathRootInset::idxUpDown(idx_type & idx, pos_type & pos, bool up, int) cons
 }
 
 
-void MathRootInset::octavize(OctaveStream & os) const
+void MathRootInset::maple(MapleStream & os) const
 {
-       os << "root(" << cell(1) << ',' << cell(0) <<')';
+       os << '(' << cell(1) << ")^(1/(" << cell(0) <<"))";
+}
+
+
+void MathRootInset::octave(OctaveStream & os) const
+{
+       os << "root(" << cell(1) << ',' << cell(0) << ')';
 }