lyx_mirror/src/mathed/math_inferinset.C

37 lines
567 B
C++
Raw Normal View History

#include "math_inferinset.h"
#include "math_support.h"
#include "frontends/Painter.h"
#include "math_mathmlstream.h"
#include "textpainter.h"
MathInferInset::MathInferInset()
: MathGridInset(1, 1)
{}
MathInset * MathInferInset::clone() const
{
return new MathInferInset(*this);
}
void MathInferInset::metrics(MetricsInfo &, Dimension &) const
{
}
void MathInferInset::draw(PainterInfo &, int, int) const
{
}
void MathInferInset::write(WriteStream & os) const
{
os << "\\infer";
if (opt_.size())
os << '[' << opt_ << ']';
MathGridInset::write(os);
}