class BufferParams;
class BufferView;
class CursorSlice;
+class DocIterator;
class ErrorList;
-class InsetBase;
-class InsetBase_code;
class FuncRequest;
class FuncStatus;
+class InsetBase;
class LColor_color;
class LCursor;
class LyXTextClass;
void recUndo(LCursor & cur, pit_type first, pit_type last) const;
///
void recUndo(LCursor & cur, pit_type first) const;
- /// returns true if par was empty and was removed
- bool setCursorFromCoordinates(LCursor & cur, int x, int y);
+
+ /// sets cursor only within this LyXText.
+ /// x,y are screen coordinates
+ void setCursorFromCoordinates(LCursor & cur, int x, int y);
/// sets cursor recursively descending into nested editable insets
/**
bool boundary) const;
/// delete double space or empty paragraphs around old cursor
- /// FIXME: replace LCursor with DocIterator.
- bool deleteEmptyParagraphMechanism(LCursor & cur, LCursor & old);
+ /// FIXME: replace LCursor with DocIterator. This is not possible right
+ /// now because recordUndo() is called which needs a LCursor.
+ bool deleteEmptyParagraphMechanism(LCursor & cur,
+ LCursor & old, bool & need_anchor_change);
/// sets row.end to the pos value *after* which a row should break.
/// for example, the pos after which isNewLine(pos) == true