mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 13:46:43 +00:00
c9c3b9b447
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2460 a592a061-630c-0410-9148-cb99ea01b6c8
45 lines
798 B
C
45 lines
798 B
C
#include "math_funcliminset.h"
|
|
#include "mathed/math_parser.h"
|
|
#include "mathed/support.h"
|
|
#include "support/LOstream.h"
|
|
|
|
|
|
using std::ostream;
|
|
|
|
MathFuncLimInset::MathFuncLimInset(const latexkeys * l)
|
|
: sym_(l)
|
|
{}
|
|
|
|
|
|
MathInset * MathFuncLimInset::clone() const
|
|
{
|
|
return new MathFuncLimInset(*this);
|
|
}
|
|
|
|
|
|
void MathFuncLimInset::write(ostream & os, bool /* fragile */) const
|
|
{
|
|
os << '\\' << sym_->name << ' ';
|
|
}
|
|
|
|
|
|
void MathFuncLimInset::writeNormal(ostream & os) const
|
|
{
|
|
os << "[" << sym_->name << "] ";
|
|
}
|
|
|
|
|
|
void MathFuncLimInset::metrics(MathStyles st) const
|
|
{
|
|
size(st);
|
|
mathed_string_dim(LM_TC_TEXTRM, size(), sym_->name, ascent_, descent_, width_);
|
|
}
|
|
|
|
|
|
void MathFuncLimInset::draw(Painter & pain, int x, int y) const
|
|
{
|
|
xo(x);
|
|
yo(y);
|
|
drawStr(pain, LM_TC_TEXTRM, size_, x, y, sym_->name);
|
|
}
|