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 "ParagraphList_fwd.h"
16 #include "textcursor.h"
18 #include "support/types.h"
20 #include "insets/insetbase.h"
28 * The cursor class describes the position of a cursor within a document.
31 class CursorItem : public TextCursor {
34 CursorItem() : text_(0) {}
39 ParagraphList::iterator pit_;
50 dispatch_result dispatch(FuncRequest const & cmd);
52 /// mainly used as stack, bnut wee need random access
53 std::vector<CursorItem> data_;
56 /// build cursor from current cursor in view
57 void buildCursor(Cursor & cursor, BufferView & bv);
59 /// build cursor from (x,y) coordinates
60 void buildCursor(Cursor & cursor, BufferView & bv, int x, int y);