]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.cpp
Move <algorithm> from DocIterator.h
[lyx.git] / src / mathed / InsetMath.cpp
index 8228153b95ceb99629481b0106cad0e3e76857e5..1adeec10a834f80df8728227cb92c4bacb79feae 100644 (file)
@@ -52,12 +52,6 @@ MathData const & InsetMath::cell(idx_type) const
 }
 
 
-MathClass InsetMath::mathClass() const
-{
-       return MC_ORD;
-}
-
-
 InsetMath::marker_type InsetMath::marker(BufferView const *) const
 {
        return nargs() > 0 ? MARKER : NO_MARKER;
@@ -74,6 +68,19 @@ bool InsetMath::addToMathRow(MathRow & mrow, MetricsInfo & mi) const
 }
 
 
+/// write LaTeX and LyX code
+void InsetMath::writeLimits(WriteStream & os) const
+{
+       if (limits() == LIMITS) {
+               os << "\\limits";
+               os.pendingSpace(true);
+       } else if (limits() == NO_LIMITS) {
+               os << "\\nolimits";
+               os.pendingSpace(true);
+       }
+}
+
+
 void InsetMath::dump() const
 {
        lyxerr << "---------------------------------------------" << endl;