4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS.
15 #include "textcursor.h"
17 #include "support/types.h"
29 * The cursor class describes the position of a cursor within a document.
32 class CursorItem : public TextCursor {
35 CursorItem() : inset_(0), text_(0), idx_(0), par_(0), pos_(0) {}
55 DispatchResult dispatch(FuncRequest const & cmd);
57 /// mainly used as stack, bnut wee need random access
58 std::vector<CursorItem> data_;
61 /// build cursor from current cursor in view
62 void buildCursor(Cursor & cursor, BufferView & bv);
64 /// build cursor from (x,y) coordinates
65 void buildCursor(Cursor & cursor, BufferView & bv, int x, int y);