#include "BufferView.h"
#include "buffer.h"
#include "bufferparams.h"
+#include "cursor.h"
#include "debug.h"
#include "metricsinfo.h"
#include "output_latex.h"
}
-auto_ptr<InsetBase> MathMBoxInset::clone() const
+auto_ptr<InsetBase> MathMBoxInset::doClone() const
{
return auto_ptr<InsetBase>(new MathMBoxInset(*this));
}
void MathMBoxInset::draw(PainterInfo & pi, int x, int y) const
{
- text_.draw(pi, x + 1, y - text_.ascent());
+ text_.draw(pi, x + 1, y);
drawMarkers(pi, x, y);
}
}
-void MathMBoxInset::priv_dispatch(LCursor & cur, FuncRequest & cmd)
+void MathMBoxInset::doDispatch(LCursor & cur, FuncRequest & cmd)
{
text_.dispatch(cur, cmd);
}
}
-void MathMBoxInset::getCursorPos(CursorSlice const & cur, int & x, int & y) const
+void MathMBoxInset::getCursorPos(CursorSlice const & sl, int & x, int & y) const
{
- x = text_.cursorX(cur);
- y = text_.cursorY(cur);
+ x = text_.cursorX(sl);
+ y = text_.cursorY(sl);
}
+
+
+void MathMBoxInset::drawSelection(PainterInfo & pi, int x, int y) const
+{
+ text_.drawSelection(pi, x, y);
+}
+