]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_funcliminset.C
use stream-like syntax for LaTeX output
[lyx.git] / src / mathed / math_funcliminset.C
index d281b9e23b5d8c55b69b54742a9ea127fe3ebc6b..f8f03cda1c00f81f96348c960fdf04ed2fa03403 100644 (file)
@@ -19,11 +19,11 @@ MathInset * MathFuncLimInset::clone() const
 
 bool MathFuncLimInset::isScriptable() const
 {
-       return size_ == LM_ST_DISPLAY;
+       return size_.size == LM_ST_DISPLAY;
 }
 
 
-void MathFuncLimInset::write(ostream & os, bool /* fragile */) const
+void MathFuncLimInset::write(MathWriteInfo & os) const
 {
        os << '\\' << sym_->name << ' ';
 }
@@ -35,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_.size, sym_->name,
+               ascent_, descent_, width_);
 }
 
 
@@ -46,5 +47,5 @@ void MathFuncLimInset::draw(Painter & pain, int x, int y) const
 {  
        xo(x);
        yo(y);
-       drawStr(pain, LM_TC_TEXTRM, size_, x, y, sym_->name);
+       drawStr(pain, LM_TC_TEXTRM, size_.size, x, y, sym_->name);
 }