]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Fix deleting of paragraphs after undo (fix #236).
[lyx.git] / src / BufferView.h
index 027d46cb900d352be5faf58b5f59e39ea46c3971..b65afe81638f13d23bd71624d02a8d3f3121bb1f 100644 (file)
@@ -1,13 +1,10 @@
 // -*- C++ -*-
-/* This file is part of
- * ====================================================== 
- * 
- *           LyX, The Document Processor
- *        
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
+/** \file
+ *  Copyright 2002 the LyX Team
+ *  Read the file COPYING
  *
- * ====================================================== */
+ *  \author Lars Gullik Bjønnes
+*/
 
 #ifndef BUFFER_VIEW_H
 #define BUFFER_VIEW_H
@@ -19,7 +16,9 @@
 #include "LString.h"
 #include "undo.h"
 #include "commandtags.h"
+
 #include "insets/inset.h"
+
 #include <boost/utility.hpp>
 
 class LyXView;
@@ -73,8 +72,7 @@ public:
        ///
        void updateScrollbar();
        ///
-       Inset * checkInsetHit(LyXText *, int & x, int & y,
-                             unsigned int button);
+       Inset * checkInsetHit(LyXText *, int & x, int & y);
        /// 
        void redoCurrentBuffer();
        ///
@@ -136,7 +134,7 @@ public:
        ///
        void paste();
        ///
-       void cut();
+       void cut(bool realcut = true);
        ///
        void copy();
        ///
@@ -161,7 +159,7 @@ public:
        //               bool no_table = false);
        bool insertInset(Inset * inset, string const & lout = string());
        /** Inserts a lyx file at cursor position.
-           @return #false# if it fails.
+           \return #false# if it fails.
        */
        bool insertLyXFile(string const & file);
        ///
@@ -201,8 +199,6 @@ public:
        ///
        void setState();
 
-       ///
-       void pushIntoUpdateList(Inset * i);
        ///
        bool ChangeInsets(Inset::Code code, string const & from, 
                          string const & to);
@@ -219,6 +215,7 @@ public:
        ///
        bool Dispatch(kb_action action, string const & argument);
 private:
+       ///
        struct Pimpl;
        ///
        friend struct BufferView::Pimpl;