]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
remove unused code
[lyx.git] / src / BufferView.h
index f994f582cd400c178bfb52301108c1218bbee4e6..454dab6cf8f18feeca1110752e32339c27d41078 100644 (file)
@@ -1,7 +1,8 @@
 // -*- C++ -*-
-/** \file
- *  Copyright 2002 the LyX Team
- *  Read the file COPYING
+/**
+ * \file BufferView.h
+ * Copyright 2002 the LyX Team
+ * Read the file COPYING
  *
  *  \author Lars Gullik Bjønnes
 */
@@ -15,7 +16,6 @@
 
 #include "LString.h"
 #include "undo.h"
-#include "commandtags.h"
 
 #include "insets/inset.h"
 
@@ -25,10 +25,11 @@ class LyXView;
 class LyXText;
 class TeXErrors;
 class Buffer;
-class LScreen;
+class LyXScreen;
 class Language;
 class Painter;
 class UpdatableInset;
+class WordLangTuple;
 
 ///
 class BufferView : boost::noncopyable {
@@ -54,15 +55,17 @@ public:
        ///
        Painter & painter() const;
        ///
-       LScreen & screen() const;
+       LyXScreen & screen() const;
        ///
        void buffer(Buffer * b);
        ///
-       void resize(int, int, int, int);
-       ///
        void resize();
-       ///
-       void redraw();
+       /**
+        * Repaint the pixmap. Used for when we don't want
+        * to go through the full update() logic, just a simple
+        * repaint of the whole screen.
+        */
+       void repaint();
        ///
        bool fitCursor();
        ///
@@ -76,8 +79,6 @@ public:
        ///
        void redoCurrentBuffer();
        ///
-       int resizeCurrentBuffer();
-       ///
        void cursorPrevious(LyXText *);
        ///
        void cursorNext(LyXText *);
@@ -123,8 +124,8 @@ public:
        void endOfSpellCheck();
        ///
        void selectLastWord();
-       ///
-       string const nextWord(float & value);
+       /// return the next word
+       WordLangTuple const nextWord(float & value);
        ///
        bool gotoLabel(string const & label);
        ///
@@ -181,15 +182,11 @@ public:
        ///
        void center();
 
-       ///
-       bool focus() const;
-       ///
-       void focus(bool);
        /// Scroll the view by a number of pixels
        void scrollDocView(int);
 
        ///
-       void setState();
+       void switchKeyMap();
 
        ///
        bool ChangeInsets(Inset::Code code, string const & from,
@@ -205,7 +202,7 @@ public:
        ///
        void stuffClipboard(string const &) const;
        ///
-       bool Dispatch(kb_action action, string const & argument);
+       bool dispatch(FuncRequest const & argument);
 private:
        ///
        struct Pimpl;