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.
35 CursorItem() : inset_(0), text_(0), idx_(0), par_(0), pos_(0) {}
37 CursorItem(InsetOld * inset, LyXText * text)
38 : inset_(inset), text_(text), idx_(0), par_(0), pos_(0)
41 friend std::ostream & operator<<(std::ostream &, CursorItem const &);
59 LCursor(BufferView * bv);
61 DispatchResult dispatch(FuncRequest const & cmd);
63 void push(InsetOld *, LyXText *);
67 InsetOld * innerInset() const;
69 LyXText * innerText() const;
71 friend std::ostream & operator<<(std::ostream &, LCursor const &);
73 /// mainly used as stack, but wee need random access
74 std::vector<CursorItem> data_;