mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-21 23:51:25 +00:00
fe87869cb7
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4289 a592a061-630c-0410-9148-cb99ea01b6c8
49 lines
850 B
C
49 lines
850 B
C
#include <config.h>
|
|
|
|
#include "math_funcliminset.h"
|
|
#include "math_mathmlstream.h"
|
|
#include "math_streamstr.h"
|
|
#include "math_support.h"
|
|
|
|
|
|
MathFuncLimInset::MathFuncLimInset(string const & name)
|
|
: name_(name)
|
|
{}
|
|
|
|
|
|
MathInset * MathFuncLimInset::clone() const
|
|
{
|
|
return new MathFuncLimInset(*this);
|
|
}
|
|
|
|
|
|
bool MathFuncLimInset::isScriptable() const
|
|
{
|
|
return scriptable_;
|
|
}
|
|
|
|
|
|
void MathFuncLimInset::write(WriteStream & os) const
|
|
{
|
|
os << '\\' << name_ << ' ';
|
|
}
|
|
|
|
|
|
void MathFuncLimInset::normalize(NormalStream & os) const
|
|
{
|
|
os << "[funclim " << name_ << ']';
|
|
}
|
|
|
|
|
|
void MathFuncLimInset::metrics(MathMetricsInfo & mi) const
|
|
{
|
|
scriptable_ = (mi.base.style == LM_ST_DISPLAY);
|
|
mathed_string_dim(mi.base.font, name_, ascent_, descent_, width_);
|
|
}
|
|
|
|
|
|
void MathFuncLimInset::draw(MathPainterInfo & pi, int x, int y) const
|
|
{
|
|
drawStrBlack(pi, x, y, name_);
|
|
}
|