]> git.lyx.org Git - lyx.git/blobdiff - src/undo_funcs.h
"Inter-word Space"
[lyx.git] / src / undo_funcs.h
index 35e35443bcb42576a22d8ef710465d5334e0f972..1590cb6a334ad94085d23fa196e6999ee2a3b22d 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;
 
 /// returns false if no undo possible
-extern bool textUndo(BufferView *);
+bool textUndo(BufferView *);
 /// returns false if no redo possible
-extern bool textRedo(BufferView *);
+bool textRedo(BufferView *);
 /// makes sure the next operation will be stored
-extern void finishUndo();
+void finishUndo();
 /// Whilst undo is frozen, all actions do not get added
 /// to the undo stack
-extern void freezeUndo();
+void freezeUndo();
 /// Track undos again
-extern void unFreezeUndo();
-/// FIXME
-extern void setUndo(BufferView *, Undo::undo_kind kind,
-                   Paragraph const * first, Paragraph const * behind);
+void unFreezeUndo();
 /// FIXME
-extern void setRedo(BufferView *, Undo::undo_kind kind,
-                   Paragraph const * first, Paragraph const * behind);
+void setUndo(BufferView *, Undo::undo_kind kind,
+                   ParagraphList::iterator first, ParagraphList::iterator last);
+void setUndo(BufferView *, Undo::undo_kind kind,
+                   ParagraphList::iterator first);
 /// FIXME
-extern void setCursorParUndo(BufferView *);
+void setCursorParUndo(BufferView *);
 
 /// Are we avoiding tracking undos currently ?
 extern bool undo_frozen;