2001-07-06 15:57:54 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
2002-03-21 17:27:08 +00:00
|
|
|
* ======================================================
|
|
|
|
*
|
2001-07-06 15:57:54 +00:00
|
|
|
* LyX, The Document Processor
|
2002-03-21 17:27:08 +00:00
|
|
|
*
|
2001-07-06 15:57:54 +00:00
|
|
|
* Copyright 1995-2001 The LyX Team.
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#ifndef UNDO_FUNCS_H
|
|
|
|
#define UNDO_FUNCS_H
|
|
|
|
|
|
|
|
#include "undo.h"
|
2003-04-29 14:05:54 +00:00
|
|
|
#include "ParagraphList.h"
|
2001-07-06 15:57:54 +00:00
|
|
|
|
|
|
|
class BufferView;
|
|
|
|
class Paragraph;
|
|
|
|
|
|
|
|
/// returns false if no undo possible
|
|
|
|
extern bool textUndo(BufferView *);
|
|
|
|
/// returns false if no redo possible
|
|
|
|
extern bool textRedo(BufferView *);
|
|
|
|
/// makes sure the next operation will be stored
|
|
|
|
extern void finishUndo();
|
2002-08-27 20:30:20 +00:00
|
|
|
/// Whilst undo is frozen, all actions do not get added
|
|
|
|
/// to the undo stack
|
2001-07-06 15:57:54 +00:00
|
|
|
extern void freezeUndo();
|
2002-08-27 20:30:20 +00:00
|
|
|
/// Track undos again
|
2001-07-06 15:57:54 +00:00
|
|
|
extern void unFreezeUndo();
|
2002-05-26 19:40:17 +00:00
|
|
|
/// FIXME
|
2002-03-21 17:27:08 +00:00
|
|
|
extern void setUndo(BufferView *, Undo::undo_kind kind,
|
2003-04-29 14:05:54 +00:00
|
|
|
ParagraphList::iterator first, ParagraphList::iterator behind);
|
2002-05-26 19:40:17 +00:00
|
|
|
/// FIXME
|
2001-07-06 15:57:54 +00:00
|
|
|
extern void setRedo(BufferView *, Undo::undo_kind kind,
|
2003-04-29 14:05:54 +00:00
|
|
|
ParagraphList::iterator first, ParagraphList::iterator behind);
|
2002-05-26 19:40:17 +00:00
|
|
|
/// FIXME
|
2001-07-06 15:57:54 +00:00
|
|
|
extern void setCursorParUndo(BufferView *);
|
|
|
|
|
2002-08-27 20:30:20 +00:00
|
|
|
/// Are we avoiding tracking undos currently ?
|
2001-07-06 15:57:54 +00:00
|
|
|
extern bool undo_frozen;
|
|
|
|
|
2002-05-26 19:40:17 +00:00
|
|
|
#endif // UNDO_FUNCS_H
|