-void MathStringInset::draw(Painter & pain, int x, int y) const
-{
- //lyxerr << "drawing '" << str_ << "' code: " << code_ << endl;
- drawStr(pain, code_, mi_, x, y, str_);
+void MathStringInset::mathematica(MathematicaStream & os) const
+{
+ os << ' ' << str_ << ' ';
+}
+
+
+void MathStringInset::octave(OctaveStream & os) const
+{
+ if (/*code_ != LM_TC_VAR ||*/ str_.size() <= 1) {
+ os << ' ' << str_ << ' ';
+ return;
+ }
+
+ // insert '*' between adjacent chars if type is LM_TC_VAR
+ os << str_[0];
+ for (string::size_type i = 1; i < str_.size(); ++i)
+ os << str_[i];