#include <config.h>
#include "InsetMathRoot.h"
-#include "MathArray.h"
+#include "MathData.h"
#include "MathStream.h"
-#include "LCursor.h"
-#include "LColor.h"
+#include "Cursor.h"
+#include "Color.h"
#include "frontends/Painter.h"
{}
-auto_ptr<InsetBase> InsetMathRoot::doClone() const
+auto_ptr<Inset> InsetMathRoot::doClone() const
{
- return auto_ptr<InsetBase>(new InsetMathRoot(*this));
+ return auto_ptr<Inset>(new InsetMathRoot(*this));
}
xp[2] = x + w; yp[2] = y + d;
xp[3] = x + w - 2; yp[3] = y + (d - a)/2 + 2;
xp[4] = x + w - 5; yp[4] = y + (d - a)/2 + 4;
- pi.pain.lines(xp, yp, 5, LColor::math);
+ pi.pain.lines(xp, yp, 5, Color::math);
drawMarkers(pi, x, y);
}
}
-bool InsetMathRoot::idxUpDown(LCursor & cur, bool up) const
+bool InsetMathRoot::idxUpDown(Cursor & cur, bool up) const
{
- LCursor::idx_type const target = up ? 0 : 1;
+ Cursor::idx_type const target = up ? 0 : 1;
if (cur.idx() == target)
return false;
cur.idx() = target;