mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-30 21:24:14 +00:00
3c7c7a3209
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5128 a592a061-630c-0410-9148-cb99ea01b6c8
45 lines
628 B
C
45 lines
628 B
C
#ifdef __GNUG__
|
|
#pragma implementation
|
|
#endif
|
|
|
|
#include "math_inferinset.h"
|
|
#include "math_support.h"
|
|
#include "frontends/Painter.h"
|
|
#include "math_mathmlstream.h"
|
|
#include "textpainter.h"
|
|
|
|
|
|
using std::max;
|
|
|
|
|
|
MathInferInset::MathInferInset()
|
|
: MathGridInset(1, 1)
|
|
{}
|
|
|
|
|
|
MathInset * MathInferInset::clone() const
|
|
{
|
|
return new MathInferInset(*this);
|
|
}
|
|
|
|
|
|
void MathInferInset::metrics(MathMetricsInfo &) const
|
|
{
|
|
}
|
|
|
|
|
|
void MathInferInset::draw(MathPainterInfo &, int, int) const
|
|
{
|
|
}
|
|
|
|
|
|
void MathInferInset::write(WriteStream & os) const
|
|
{
|
|
os << "\\infer";
|
|
if (opt_.size())
|
|
os << "[" << opt_ << "]";
|
|
MathGridInset::write(os);
|
|
}
|
|
|
|
|