]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_deliminset.C
split inset -> inset + updatableinset
[lyx.git] / src / mathed / math_deliminset.C
index 0a27adbd9be7a6ac29dd318a5ae676a46f4bf5f4..bb7dbce5e994a1ed044588e52ceb93f50eddd44b 100644 (file)
@@ -1,8 +1,5 @@
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_deliminset.h"
 #include "math_parser.h"
@@ -36,7 +33,7 @@ string convertDelimToLatexName(string const & name)
                return name;
        if (name == "|")
                return name;
-       return "\\" + name + " ";
+       return '\\' + name + ' ';
 }
 
 }
@@ -129,20 +126,32 @@ bool MathDelimInset::isAbs() const
 }
 
 
-void MathDelimInset::maplize(MapleStream & os) const
+void MathDelimInset::maple(MapleStream & os) const
 {
        if (isAbs()) {
                if (cell(0).size() == 1 && cell(0).front()->asMatrixInset())
-                       os << "linalg[det](" << cell(0) << ")";
+                       os << "linalg[det](" << cell(0) << ')';
                else
-                       os << "abs(" << cell(0) << ")";
+                       os << "abs(" << cell(0) << ')';
+       }
+       else
+               os << left_ << cell(0) << right_;
+}
+
+void MathDelimInset::maxima(MaximaStream & os) const
+{
+       if (isAbs()) {
+               if (cell(0).size() == 1 && cell(0).front()->asMatrixInset())
+                       os << "determinant(" << cell(0) << ')';
+               else
+                       os << "abs(" << cell(0) << ')';
        }
        else
                os << left_ << cell(0) << right_;
 }
 
 
-void MathDelimInset::mathematicize(MathematicaStream & os) const
+void MathDelimInset::mathematica(MathematicaStream & os) const
 {
        if (isAbs()) {
                if (cell(0).size() == 1 && cell(0).front()->asMatrixInset())
@@ -162,10 +171,10 @@ void MathDelimInset::mathmlize(MathMLStream & os) const
 }
 
 
-void MathDelimInset::octavize(OctaveStream & os) const
+void MathDelimInset::octave(OctaveStream & os) const
 {
        if (isAbs())
-               os << "det(" << cell(0) << ")";
+               os << "det(" << cell(0) << ')';
        else
                os << left_ << cell(0) << right_;
 }