]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
hopefully fix tex2lyx linking.
[lyx.git] / src / BufferView.h
index 7042440fdb6f3f2bcae67b98c469542853f4015d..0e5f9102b090019644ec6480639742da0d55f9b1 100644 (file)
@@ -24,6 +24,7 @@
 #include <boost/utility.hpp>
 #include <boost/signal.hpp>
 
+#include <utility>
 #include <string>
 
 
@@ -97,9 +98,11 @@ 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.
+        * \retval (false, xxx) if no redraw is required
+        * \retval (true, true) if a single paragraph redraw is needed
+        * \retval (true, false) if a full redraw is needed
         */
-       bool update(Update::flags flags = Update::FitCursor | Update::Force);
+       std::pair<bool, bool> 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)
@@ -167,8 +170,10 @@ public:
 
        /// dispatch method helper for \c WorkArea
        /// \sa WorkArea
-       /// \return true if a full redraw is needed
-       bool workAreaDispatch(FuncRequest const & ev);
+       /// \retval (false, xxx) if no redraw is required
+       /// \retval (true, true) if a single paragraph redraw is needed
+       /// \retval (true, false) if a full redraw is needed
+       std::pair<bool, bool> workAreaDispatch(FuncRequest const & ev);
 
        /// access to anchor.
        pit_type anchor_ref() const;