#include <boost/utility.hpp>
#include <boost/signal.hpp>
+#include <utility>
#include <string>
namespace lyx {
+namespace support { class FileName; }
+
class Buffer;
class Change;
class DocIterator;
/// 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);
/// 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.
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
/// keyboard mapping object.
boost::scoped_ptr<Intl> const intl_;
+
+ /// last visited inset (kept to send setMouseHover(false) )
+ InsetBase * last_inset_;
};