]> git.lyx.org Git - lyx.git/blobdiff - src/undo_funcs.h
Alfredo's second patch
[lyx.git] / src / undo_funcs.h
index 9f18ceb9700ec4c3d9a36826a1143c30166ecc5f..0633f64881c8f9fbd4dcd6384104a1aa6a1f7abb 100644 (file)
 #ifndef UNDO_FUNCS_H
 #define UNDO_FUNCS_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include "undo.h"
+#include "ParagraphList.h"
 
 class BufferView;
 class Paragraph;
@@ -26,21 +23,21 @@ extern bool textUndo(BufferView *);
 extern bool textRedo(BufferView *);
 /// makes sure the next operation will be stored
 extern void finishUndo();
-/// this is dangerous and for internal use only
+/// Whilst undo is frozen, all actions do not get added
+/// to the undo stack
 extern void freezeUndo();
-/// this is dangerous and for internal use only
+/// Track undos again
 extern void unFreezeUndo();
 /// FIXME
 extern void setUndo(BufferView *, Undo::undo_kind kind,
-                   Paragraph const * first, Paragraph const * behind);
+                   ParagraphList::iterator first, ParagraphList::iterator behind);
 /// FIXME
 extern void setRedo(BufferView *, Undo::undo_kind kind,
-                   Paragraph const * first, Paragraph const * behind);
+                   ParagraphList::iterator first, ParagraphList::iterator behind);
 /// FIXME
 extern void setCursorParUndo(BufferView *);
 
-// This is only used in one place. Need a nicer way.
-/// is the undo frozen
+/// Are we avoiding tracking undos currently ?
 extern bool undo_frozen;
 
 #endif // UNDO_FUNCS_H