]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.C
small up/down tweaking
[lyx.git] / src / mathed / math_stringinset.C
index 27082663027acf75453bf633f04eec492658c4b4..e28556edbc643f961b614ae68fe5c6e64c455a9d 100644 (file)
@@ -7,10 +7,7 @@
 #include "math_stringinset.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
-#include "LColor.h"
 #include "math_support.h"
-#include "math_parser.h"
-#include "LaTeXFeatures.h"
 #include "debug.h"
 
 
@@ -27,7 +24,7 @@ MathInset * MathStringInset::clone() const
 
 void MathStringInset::metrics(MathMetricsInfo & mi) const
 {
-       mathed_string_dim(mi.base.font, str_, ascent_, descent_, width_);
+       mathed_string_dim(mi.base.font, str_, dim_);
 }
 
 
@@ -40,13 +37,13 @@ void MathStringInset::draw(MathPainterInfo & pi, int x, int y) const
 
 void MathStringInset::normalize(NormalStream & os) const
 {
-       os << "[string " << str_ << ' ' << "mathalpha" << "]";
+       os << "[string " << str_ << ' ' << "mathalpha" << ']';
 }
 
 
 void MathStringInset::maplize(MapleStream & os) const
 {
-       if (/*code_ != LM_TC_VAR || */ str_.size() <= 1) {
+       if (/*code_ != LM_TC_VAR ||*/ str_.size() <= 1) {
                os << ' ' << str_ << ' ';
                return;
        }
@@ -58,6 +55,12 @@ void MathStringInset::maplize(MapleStream & os) const
 }
 
 
+void MathStringInset::mathematicize(MathematicaStream & os) const
+{
+       os << ' ' << str_ << ' ';
+}
+
+
 void MathStringInset::octavize(OctaveStream & os) const
 {
        if (/*code_ != LM_TC_VAR ||*/ str_.size() <= 1) {