X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FUndo.h;h=887f7627e1d54854800a34c00678971f77d1f63e;hb=233cfed3331e2a8fef39e2dff483dadbf011b772;hp=dd7035816d9287a2cbbdee858c9943e0aa3fe5d2;hpb=8e3972c35d302e1988605940cac6f6a8e9e66ce0;p=lyx.git diff --git a/src/Undo.h b/src/Undo.h index dd7035816d..887f7627e1 100644 --- a/src/Undo.h +++ b/src/Undo.h @@ -22,11 +22,8 @@ namespace lyx { class Buffer; -class BufferParams; class CursorData; class Inset; -class MathData; -class ParagraphList; /// This is used to combine consecutive undo recordings of the same kind. enum UndoKind { @@ -96,6 +93,8 @@ public: void endUndoGroup(); /// end the current undo group and set UndoElement::cur_after if necessary. void endUndoGroup(CursorData const & cur_after); + /// end abruptly the current group and create a new one wih the same nesting level + void splitUndoGroup(CursorData const & cur); /// return true if an undo group is open and contains at least one element bool activeUndoGroup() const; @@ -137,7 +136,7 @@ private: */ class UndoGroupHelper { public: - UndoGroupHelper(Buffer * buf = 0); + UndoGroupHelper(Buffer * buf); ~UndoGroupHelper();