]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.h
The speed patch: redraw only rows that have changed
[lyx.git] / src / BufferView_pimpl.h
index a6ac1ad32a96594a209428f6824b363a926a1a3f..b55cf924e27bcc0e73c52ba1ef0e44f893a0da0e 100644 (file)
@@ -60,7 +60,7 @@ public:
        //
        bool fitCursor();
        ///
-       void update(bool fitcursor = false, bool forceupdate = true);
+       void update(Update::flags flags = Update::Force);
        ///
        void newFile(std::string const &, std::string const &, bool);
        ///
@@ -145,6 +145,8 @@ private:
        boost::scoped_ptr<LyXScreen> screen_;
        ///
        boost::scoped_ptr<WorkArea> workarea_;
+       /// Estimated average par height for scrollbar
+       int wh_;
        ///
        Timeout cursor_timeout;
        ///
@@ -186,7 +188,7 @@ private:
        ///
        int offset_ref_;
        ///
-       ViewMetricsInfo metrics();
+       ViewMetricsInfo metrics(bool singlepar = false);
 
 
 };