X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathNest.h;h=4e18dbda71e25d787945371e654213922e212474;hb=981e958b9d63930c83b1adced65b75b3d857ac97;hp=ac95fbb35381ac7094c8ca1a5bd9a7b57e26e411;hpb=7bbd67eb267966d1deb655ea126bc25a64fdf34d;p=lyx.git diff --git a/src/mathed/InsetMathNest.h b/src/mathed/InsetMathNest.h index ac95fbb353..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 &); @@ -44,7 +46,7 @@ public: void drawDecoration(PainterInfo & pi, int x, int y) const { drawMarkers(pi, x, y); } /// - void updateLabels(ParIterator const &, UpdateType); + void updateBuffer(ParIterator const &, UpdateType); /// identifies NestInsets InsetMathNest * asNestInset() { return this; } /// identifies NestInsets @@ -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_; +};