2003-08-23 00:17:00 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file undo.C
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author Andr<EFBFBD> P<EFBFBD>nitz
|
2002-03-21 17:27:08 +00:00
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
|
|
|
|
*/
|
1999-11-15 12:01:38 +00:00
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
2001-05-08 13:28:44 +00:00
|
|
|
|
#include "undo.h"
|
2003-09-06 12:36:58 +00:00
|
|
|
|
#include "paragraph.h"
|
2001-05-08 13:28:44 +00:00
|
|
|
|
|
2003-07-25 19:18:43 +00:00
|
|
|
|
Undo::Undo(undo_kind kind_arg, int inset,
|
2003-10-13 13:27:45 +00:00
|
|
|
|
int plist_arg,
|
2003-06-04 12:45:26 +00:00
|
|
|
|
int first, int last,
|
|
|
|
|
int cursor, int cursor_pos_arg,
|
|
|
|
|
ParagraphList const & par)
|
|
|
|
|
:
|
|
|
|
|
kind(kind_arg),
|
|
|
|
|
inset_id(inset),
|
2003-10-13 13:27:45 +00:00
|
|
|
|
plist(plist_arg),
|
2003-06-04 12:45:26 +00:00
|
|
|
|
first_par_offset(first),
|
|
|
|
|
last_par_offset(last),
|
|
|
|
|
cursor_par_offset(cursor),
|
|
|
|
|
cursor_pos(cursor_pos_arg),
|
|
|
|
|
pars(par)
|
|
|
|
|
{}
|
2000-01-06 02:44:26 +00:00
|
|
|
|
|