#include "math_undersetinset.h"
#include "math_data.h"
#include "math_mathmlstream.h"
+
#include "cursor.h"
+#include "LaTeXFeatures.h"
using std::max;
using std::auto_ptr;
-auto_ptr<InsetBase> MathUndersetInset::clone() const
+auto_ptr<InsetBase> MathUndersetInset::doClone() const
{
return auto_ptr<InsetBase>(new MathUndersetInset(*this));
}
void MathUndersetInset::draw(PainterInfo & pi, int x, int y) const
{
- int m = x + pi.width / 2;
+ int m = x + width() / 2;
int yo = y + cell(1).descent() + cell(0).ascent() + 1;
cell(1).draw(pi, m - cell(1).width() / 2, y);
FracChanger dummy(pi.base);
{
os << "[underset " << cell(0) << ' ' << cell(1) << ']';
}
+
+
+void MathUndersetInset::validate(LaTeXFeatures & features) const
+{
+ features.require("amsmath");
+ MathNestInset::validate(features);
+}