]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathClass.cpp
typo
[lyx.git] / src / mathed / InsetMathClass.cpp
index 2327cbe76d4e364276e2b2e2ee535bbaa6a66fef..0c22d478c7acb8d413eb5aa131afb2a544c2c0a8 100644 (file)
@@ -28,6 +28,15 @@ Inset * InsetMathClass::clone() const
 }
 
 
+Limits InsetMathClass::defaultLimits(bool display) const
+{
+       if (allowsLimitsChange() && display)
+               return LIMITS;
+       else
+               return NO_LIMITS;
+}
+
+
 void InsetMathClass::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        cell(0).metrics(mi, dim);
@@ -40,6 +49,13 @@ void InsetMathClass::draw(PainterInfo & pi, int x, int y) const
 }
 
 
+void InsetMathClass::write(TeXMathStream & os) const
+{
+       InsetMathNest::write(os);
+       writeLimits(os);
+}
+
+
 docstring InsetMathClass::name() const
 {
        return class_to_string(math_class_);