X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMath.cpp;h=0d21b871d689f86f151ad2d744445c92cba3b5f5;hb=d9082639080b9de993742bd352f92e5183058cf5;hp=40cb9066062eaa99c68d7affd3705232af987bfc;hpb=d38eddb397de982a379d8c0644c6ca2190c67fe9;p=lyx.git diff --git a/src/mathed/InsetMath.cpp b/src/mathed/InsetMath.cpp index 40cb906606..0d21b871d6 100644 --- a/src/mathed/InsetMath.cpp +++ b/src/mathed/InsetMath.cpp @@ -94,9 +94,9 @@ MathData const & InsetMath::cell(idx_type) const } -InsetMath::marker_type InsetMath::marker(BufferView const *) const +marker_type InsetMath::marker(BufferView const *) const { - return nargs() > 0 ? MARKER : NO_MARKER; + return nargs() > 0 ? marker_type::MARKER : marker_type::NO_MARKER; } @@ -104,14 +104,14 @@ bool InsetMath::addToMathRow(MathRow & mrow, MetricsInfo & mi) const { MathRow::Element e(mi, MathRow::INSET, mathClass()); e.inset = this; - e.marker = mi.base.macro_nesting ? NO_MARKER : marker(mi.base.bv); + e.marker = mi.base.macro_nesting ? marker_type::NO_MARKER : marker(mi.base.bv); mrow.push_back(e); return true; } /// 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; }