mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
8283e978f8
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3803 a592a061-630c-0410-9148-cb99ea01b6c8
60 lines
975 B
C++
60 lines
975 B
C++
// -*- C++ -*-
|
|
/* This file is part of
|
|
* ======================================================
|
|
*
|
|
* LyX, The Document Processor
|
|
*
|
|
* Copyright 1995 Matthias Ettrich
|
|
* Copyright 1995-2001 The LyX Team.
|
|
*
|
|
* ====================================================== */
|
|
|
|
#ifndef UNDO_H
|
|
#define UNDO_H
|
|
|
|
#ifdef __GNUG__
|
|
#pragma interface
|
|
#endif
|
|
|
|
class Paragraph;
|
|
|
|
///
|
|
class Undo {
|
|
public:
|
|
/// The undo kinds
|
|
enum undo_kind {
|
|
///
|
|
INSERT,
|
|
///
|
|
DELETE,
|
|
///
|
|
EDIT,
|
|
///
|
|
FINISH
|
|
};
|
|
///
|
|
undo_kind kind;
|
|
///
|
|
int number_of_before_par;
|
|
///
|
|
int number_of_behind_par;
|
|
///
|
|
int number_of_cursor_par;
|
|
///
|
|
int number_of_inset_id; // valid if >= 0, if < 0 then not in inset
|
|
///
|
|
int cursor_pos; // valid if >= 0
|
|
///
|
|
Paragraph * par;
|
|
///
|
|
Undo(undo_kind kind_arg, int id_inset_arg,
|
|
int number_before_arg, int number_behind_arg,
|
|
int cursor_par_arg, int cursor_pos_arg,
|
|
Paragraph * par_arg);
|
|
///
|
|
~Undo();
|
|
};
|
|
|
|
|
|
#endif
|