]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.cpp
Introduce the notion of math class
[lyx.git] / src / mathed / InsetMath.cpp
index f71febc06de2a97dc386db267739e903c07dd30b..aec53d0518a961da755350b0d127a270b79e9ba2 100644 (file)
@@ -49,12 +49,17 @@ MathData const & InsetMath::cell(idx_type) const
 }
 
 
+MathClass InsetMath::mathClass() const
+{
+       return MC_ORD;
+}
+
+
 void InsetMath::dump() const
 {
        lyxerr << "---------------------------------------------" << endl;
        odocstringstream os;
-       TexRow texrow(false);
-       otexrowstream ots(os,texrow);
+       otexrowstream ots(os);
        WriteStream wi(ots, false, true, WriteStream::wsDefault);
        write(wi);
        lyxerr << to_utf8(os.str());
@@ -158,8 +163,7 @@ HullType InsetMath::getType() const
 ostream & operator<<(ostream & os, MathAtom const & at)
 {
        odocstringstream oss;
-       TexRow texrow(false);
-       otexrowstream ots(oss,texrow);
+       otexrowstream ots(oss);
        WriteStream wi(ots, false, false, WriteStream::wsDefault);
        at->write(wi);
        return os << to_utf8(oss.str());
@@ -168,8 +172,7 @@ ostream & operator<<(ostream & os, MathAtom const & at)
 
 odocstream & operator<<(odocstream & os, MathAtom const & at)
 {
-       TexRow texrow(false);
-       otexrowstream ots(os,texrow);
+       otexrowstream ots(os);
        WriteStream wi(ots, false, false, WriteStream::wsDefault);
        at->write(wi);
        return os;