]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.h
Fix dEPM crash:
[lyx.git] / src / BufferView.h
index 7042440fdb6f3f2bcae67b98c469542853f4015d..43b1c7455a4f69de6667e16001631eb16991f28b 100644 (file)
 #include <boost/utility.hpp>
 #include <boost/signal.hpp>
 
+#include <utility>
 #include <string>
 
 
 namespace lyx {
 
+namespace support { class FileName; }
+
 class Buffer;
 class Change;
 class DocIterator;
@@ -90,14 +93,13 @@ public:
        /// redisplay the referenced buffer.
        void reload();
        /// load a buffer into the view.
-       bool loadLyXFile(std::string const & name, bool tolastfiles = true);
-
-       /// perform pending painting updates.
-       /** \c fitcursor means first
-        *  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 loadLyXFile(support::FileName const & name, bool tolastfiles = true);
+
+       /// perform pending metrics updates.
+       /** \c Update::FitCursor means first to do a FitCursor, and to
+        * force an update if screen position changes.
+        * \c Update::Force means to force an update in any case.
+        * \retval true if a screen redraw is needed
         */
        bool update(Update::flags flags = Update::FitCursor | Update::Force);
 
@@ -167,7 +169,7 @@ public:
 
        /// dispatch method helper for \c WorkArea
        /// \sa WorkArea
-       /// \return true if a full redraw is needed
+       /// \retval true if a redraw is needed
        bool workAreaDispatch(FuncRequest const & ev);
 
        /// access to anchor.
@@ -182,7 +184,7 @@ public:
        void setCursor(DocIterator const &);
        /// sets cursor.
        /// This is used when handling LFUN_MOUSE_PRESS.
-       void mouseSetCursor(LCursor & cur);
+       bool mouseSetCursor(LCursor & cur);
 
        /// sets the selection.
        /* When \c backwards == false, set anchor