]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_exfuncinset.C
fix #1073
[lyx.git] / src / mathed / math_exfuncinset.C
index b0e98f650ca3c9ea5615c71ebe98048afe09b2d0..e81c032fb7dbcffb7ee71ce2b6f69f3b5932079f 100644 (file)
@@ -1,3 +1,4 @@
+
 #include <config.h>
 
 #include "math_exfuncinset.h"
@@ -24,25 +25,25 @@ MathInset * MathExFuncInset::clone() const
 }
 
 
-void MathExFuncInset::metrics(MathMetricsInfo & mi) const
+void MathExFuncInset::metrics(MetricsInfo & mi) const
 {
        mathed_string_dim(mi.base.font, name_, dim_);
 }
 
 
-void MathExFuncInset::draw(MathPainterInfo & pi, int x, int y) const
+void MathExFuncInset::draw(PainterInfo & pi, int x, int y) const
 {
        drawStrBlack(pi, x, y, name_);
 }
 
 
-void MathExFuncInset::normalize(NormalStream & os) const
+string MathExFuncInset::name() const
 {
-       os << '[' << name_ << ' ' << cell(0) << ']';
+       return name_;
 }
 
 
-void MathExFuncInset::maplize(MapleStream & os) const
+void MathExFuncInset::maple(MapleStream & os) const
 {
        if (name_ == "det")
                os << "linalg[det](" << cell(0) << ')';
@@ -51,6 +52,15 @@ void MathExFuncInset::maplize(MapleStream & os) const
 }
 
 
+void MathExFuncInset::maxima(MaximaStream & os) const
+{
+       if (name_ == "det")
+               os << "determinant(" << cell(0) << ')';
+       else
+               os << name_ << '(' << cell(0) << ')';
+}
+
+
 string asMathematicaName(string const & name)
 {
        if (name == "sin")    return "Sin";
@@ -73,7 +83,7 @@ string asMathematicaName(string const & name)
 }
 
 
-void MathExFuncInset::mathematicize(MathematicaStream & os) const
+void MathExFuncInset::mathematica(MathematicaStream & os) const
 {
        os << asMathematicaName(name_) << '[' << cell(0) << ']';
 }
@@ -85,13 +95,7 @@ void MathExFuncInset::mathmlize(MathMLStream & os) const
 }
 
 
-void MathExFuncInset::octavize(OctaveStream & os) const
+void MathExFuncInset::octave(OctaveStream & os) const
 {
        os << name_ << '(' << cell(0) << ')';
 }
-
-
-void MathExFuncInset::write(WriteStream & os) const
-{
-       os << '\\' << name_ << '{' << cell(0) << '}';
-}