]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_funcliminset.C
halfway through fixing size of math in non-standard sizesd paragraohs like
[lyx.git] / src / mathed / math_funcliminset.C
index b527af5fa2dde66e6a45fda5d31609f59f131f6d..2788b420516a14821675a29966394e8965d655de 100644 (file)
@@ -17,7 +17,13 @@ MathInset * MathFuncLimInset::clone() const
 }
 
 
-void MathFuncLimInset::write(ostream & os, bool /* fragile */) const
+bool MathFuncLimInset::isScriptable() const
+{
+       return size_.style == LM_ST_DISPLAY;
+}
+
+
+void MathFuncLimInset::write(MathWriteInfo & os) const
 {
        os << '\\' << sym_->name << ' ';
 }
@@ -29,10 +35,11 @@ void MathFuncLimInset::writeNormal(ostream & os) const
 }
 
 
-void MathFuncLimInset::metrics(MathStyles st) const
+void MathFuncLimInset::metrics(MathMetricsInfo const & st) const
 {
-       size(st);
-       mathed_string_dim(LM_TC_TEXTRM, size(), sym_->name, ascent_, descent_, width_);
+       size_ = st;
+       mathed_string_dim(LM_TC_TEXTRM, size_, sym_->name,
+               ascent_, descent_, width_);
 }