]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathNest.h
Mouse hover property should be dependent on the specific bufferview. If there are...
[features.git] / src / mathed / InsetMathNest.h
index 49b90eb8b6e185d2009643f677d3191d8bee6220..39fa62b630c1482a7b62336533a312d5ef63336f 100644 (file)
@@ -17,6 +17,8 @@
 // FIXME: remove
 #include "support/docstring.h"
 
+#include <map>
+
 namespace lyx {
 
 /** Abstract base class for all math objects that contain nested items.
@@ -111,9 +113,10 @@ public:
        ///
        int latex(odocstream & os, OutputParams const & runparams) const;
        ///
-       bool setMouseHover(bool mouse_hover);
+       bool setMouseHover(BufferView const * bv, bool mouse_hover);
        ///
-       bool mouseHovered() const { return mouse_hover_; }
+       bool mouseHovered(BufferView const * bv) const 
+               { return mouse_hover_[bv]; }
 
        ///
        bool completionSupported(Cursor const &) const;
@@ -194,8 +197,8 @@ protected:
        /// if the inset is locked, it can't be entered with the cursor
        bool lock_;
        ///
-       bool mouse_hover_;
-};
+       mutable std::map<BufferView const *, bool> mouse_hover_;
+};