X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNest.h;h=99537d8a17e0579d48926f72627e62e0603b77c6;hb=704328d3488c75733ddeb9ad5439b1907e323e39;hp=49b90eb8b6e185d2009643f677d3191d8bee6220;hpb=d65020b293ab208b1391f96a731e53e0c7274a02;p=lyx.git diff --git a/src/mathed/InsetMathNest.h b/src/mathed/InsetMathNest.h index 49b90eb8b6..99537d8a17 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; @@ -169,7 +172,7 @@ public: /// interpret \p str and insert the result at the current position of /// \p cur if it is something known. Return whether \p cur was /// inserted. - bool interpretString(Cursor & cur, docstring const & str); + virtual bool interpretString(Cursor & cur, docstring const & str); private: /// lfun handler @@ -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_; +};