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