X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fundo.C;h=b1fcb60a227e58edadd6b86f42a902a3b5f16d2e;hb=f268743f8c014ef2dadd260fd1a3873cb1d2038b;hp=ca532b4b1cbbe9689de9fadab93061bf2dfe5236;hpb=e412a2a53ea60a327d6ea8b8b802cb1b169a7108;p=lyx.git diff --git a/src/undo.C b/src/undo.C index ca532b4b1c..b1fcb60a22 100644 --- a/src/undo.C +++ b/src/undo.C @@ -1,30 +1,29 @@ -/* This file is part of - * ====================================================== +/** + * \file undo.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * LyX, The Document Processor + * \author Lars Gullik Bjønnes + * \author André Pönitz * - * Copyright 1995 Matthias Ettrich - * Copyright 1995-2001 The LyX Team. - * - * ====================================================== */ + * Full author contact details are available in file CREDITS. + */ #include #include "undo.h" -#include "paragraph.h" - -Undo::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, - ParagraphList const & par_arg) - : pars(par_arg) -{ - kind = kind_arg; - number_of_inset_id = id_inset_arg; - number_of_before_par = number_before_arg; - number_of_behind_par = number_behind_arg; - number_of_cursor_par = cursor_par_arg; - cursor_pos = cursor_pos_arg; -} +Undo::Undo(undo_kind kind_arg, int inset, + int first, int last, + int cursor, int cursor_pos_arg, + ParagraphList const & par) + : + kind(kind_arg), + inset_id(inset), + first_par_offset(first), + last_par_offset(last), + cursor_par_offset(cursor), + cursor_pos(cursor_pos_arg), + pars(par) +{}