X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMath.cpp;h=0d21b871d689f86f151ad2d744445c92cba3b5f5;hb=d9082639080b9de993742bd352f92e5183058cf5;hp=d12474f2495e24548bae81f28f6c180d4743850e;hpb=9cb98136ceeb3fbda70aa5beea4cf3f5ea26a36c;p=lyx.git diff --git a/src/mathed/InsetMath.cpp b/src/mathed/InsetMath.cpp index d12474f249..0d21b871d6 100644 --- a/src/mathed/InsetMath.cpp +++ b/src/mathed/InsetMath.cpp @@ -111,7 +111,7 @@ bool InsetMath::addToMathRow(MathRow & mrow, MetricsInfo & mi) const /// write LaTeX and LyX code -void InsetMath::writeLimits(WriteStream & os) const +void InsetMath::writeLimits(TeXMathStream & os) const { if (limits() == LIMITS) { os << "\\limits"; @@ -128,7 +128,7 @@ void InsetMath::dump() const lyxerr << "---------------------------------------------" << endl; odocstringstream os; otexrowstream ots(os); - WriteStream wi(ots, false, true, WriteStream::wsDefault); + TeXMathStream wi(ots, false, true, TeXMathStream::wsDefault); write(wi); lyxerr << to_utf8(os.str()); lyxerr << "\n---------------------------------------------" << endl; @@ -147,7 +147,7 @@ void InsetMath::drawT(TextPainter &, int, int) const } -void InsetMath::write(WriteStream & os) const +void InsetMath::write(TeXMathStream & os) const { MathEnsurer ensurer(os); docstring const s = name(); @@ -202,7 +202,7 @@ void InsetMath::mathematica(MathematicaStream & os) const } -void InsetMath::mathmlize(MathStream & ms) const +void InsetMath::mathmlize(MathMLStream & ms) const { ms << ""; ms << MTag("mi"); @@ -232,7 +232,7 @@ ostream & operator<<(ostream & os, MathAtom const & at) { odocstringstream oss; otexrowstream ots(oss); - WriteStream wi(ots, false, false, WriteStream::wsDefault); + TeXMathStream wi(ots, false, false, TeXMathStream::wsDefault); at->write(wi); return os << to_utf8(oss.str()); } @@ -241,7 +241,7 @@ ostream & operator<<(ostream & os, MathAtom const & at) odocstream & operator<<(odocstream & os, MathAtom const & at) { otexrowstream ots(os); - WriteStream wi(ots, false, false, WriteStream::wsDefault); + TeXMathStream wi(ots, false, false, TeXMathStream::wsDefault); at->write(wi); return os; }