X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNest.h;h=4e18dbda71e25d787945371e654213922e212474;hb=981e958b9d63930c83b1adced65b75b3d857ac97;hp=49b90eb8b6e185d2009643f677d3191d8bee6220;hpb=d65020b293ab208b1391f96a731e53e0c7274a02;p=lyx.git diff --git a/src/mathed/InsetMathNest.h b/src/mathed/InsetMathNest.h index 49b90eb8b6..4e18dbda71 100644 --- a/src/mathed/InsetMathNest.h +++ b/src/mathed/InsetMathNest.h @@ -17,6 +17,8 @@ // FIXME: remove #include "support/docstring.h" +#include + namespace lyx { /** Abstract base class for all math objects that contain nested items. @@ -29,7 +31,7 @@ public: /// nestinsets have a fixed size to start with InsetMathNest(Buffer * buf, idx_type ncells); /// - virtual ~InsetMathNest() {} + virtual ~InsetMathNest(); /// void setBuffer(Buffer &); @@ -109,11 +111,12 @@ public: /// writes [, name(), and args in [] void normalize(NormalStream & os) const; /// - int latex(odocstream & os, OutputParams const & runparams) const; + void latex(otexstream & os, OutputParams const & runparams) const; /// - bool setMouseHover(bool mouse_hover); + bool setMouseHover(BufferView const * bv, bool mouse_hover) const; /// - 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 mouse_hover_; +};