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 {
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;
*/
class UndoGroupHelper {
public:
- UndoGroupHelper(Buffer * buf = 0);
+ UndoGroupHelper(Buffer * buf);
~UndoGroupHelper();