]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
revert recent change to development/FORMAT (don't change history)
[lyx.git] / src / BufferView.h
index 3f8ff3eab05e6333d60aa5b36e3746bb0b8e3154..fdc9181ab2cf0a4d64df01a4c904fd55570358e5 100644 (file)
@@ -28,7 +28,6 @@
 class Buffer;
 class Change;
 class DocIterator;
-class ErrorList;
 class FuncRequest;
 class FuncStatus;
 class Language;
@@ -116,9 +115,10 @@ public:
         *  to do a fitcursor, and to force an update if screen
         *  position changes. \c forceupdate means to force an update
         *  in any case.
+        * \return true if a full updateMetrics() is needed.
         */
+       bool update(Update::flags flags = Update::FitCursor | Update::Force);
 
-       void update(Update::flags flags = Update::FitCursor | Update::Force);
        /// move the screen to fit the cursor. Only to be called with
        /// good y coordinates (after a bv::metrics)
        bool fitCursor();
@@ -148,16 +148,9 @@ public:
        /// return the lyxtext we are using
        LyXText const * getLyXText() const;
 
-       /// simple replacing. Use the font of the first selected character
-       void replaceSelectionWithString(std::string const & str);
-
        /// move cursor to the named label
        void gotoLabel(std::string const & label);
 
-       /// get the stored error list
-       ErrorList const & getErrorList() const;
-       /// show the error list to the user
-       void showErrorList(std::string const &) const;
        /// set the cursor based on the given TeX source row
        void setCursorFromRow(int row);
 
@@ -167,6 +160,8 @@ public:
        void scroll(int lines);
        /// Scroll the view by a number of pixels
        void scrollDocView(int pixels);
+       /// Set the cursor position based on the scrollbar one.
+       void setCursorFromScrollbar();
 
        /// return the pixel width of the document view
        int workWidth() const;
@@ -189,9 +184,6 @@ public:
        ///
        void workAreaResize(int width, int height);
 
-       /// Receive a keypress
-       void workAreaKeyPress(LyXKeySymPtr key, key_modifier::state state);
-
        /// a function should be executed from the workarea
        bool workAreaDispatch(FuncRequest const & ev);
 
@@ -223,10 +215,9 @@ public:
                int length, bool backwards);
        ///
        ViewMetricsInfo const & viewMetricsInfo();
-
        ///
-       bool needsRedraw() const;
-       void needsRedraw(bool redraw_needed);
+       void updateMetrics(bool singlepar = false);
+
 private:
        ///
        class Pimpl;