X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FUndo.h;h=fbfb9e7dbbb3dc40ef3ca1f2fd27725dec470ab1;hb=124e0fc2be2446f7182cba0e5b54961dc1cfab91;hp=8b482d2582446c13d1399a1997284b712051e7d3;hpb=967f4d661ec7f53ebb7cdb03e96dc70471781602;p=lyx.git diff --git a/src/Undo.h b/src/Undo.h index 8b482d2582..fbfb9e7dbb 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 { @@ -133,19 +130,18 @@ private: /** Helper class to simplify the use of undo groups across several buffers. * - * The undo group is created when the object is instanciated; it is - * then ended as the object goes out of scope or the buffer is reset - * (see below) + * The undo group is open when the object is instantiated or when + * the buffer is reset; it is then ended as the object goes out of + * scope (see below) */ class UndoGroupHelper { public: + // Begin a new undo group for buffer \c buf. UndoGroupHelper(Buffer * buf); - + // End all active undo groups. ~UndoGroupHelper(); - /** Close the current undo group if necessary and create a new one - * for buffer \c buf. - */ + // Begin if needed an undo group for buffer \c buf. void resetBuffer(Buffer * buf); private: