]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.h
* up/down jumps between macro parameters
[lyx.git] / src / mathed / InsetMathNest.h
index 1ae230a2841a6772b205297a331d1b43a4857169..3e8e1a7087904a898e6504930d9fc5dae39eea67 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef MATH_NESTINSET_H
 #define MATH_NESTINSET_H
 
-#include "InsetMathDim.h"
+#include "InsetMath.h"
 
 
 namespace lyx {
@@ -23,10 +23,12 @@ namespace lyx {
     single symbol.
 */
 
-class InsetMathNest : public InsetMathDim {
+class InsetMathNest : public InsetMath {
 public:
        /// nestinsets have a fixed size to start with
        explicit InsetMathNest(idx_type ncells);
+       ///
+       virtual ~InsetMathNest() {}
 
        /// the size is usually some sort of convex hull of the cells
        /// hides inset::metrics() intentionally!
@@ -48,7 +50,7 @@ public:
        ///
        void edit(Cursor & cur, bool left);
        ///
-       InsetBase * editXY(Cursor & cur, int x, int y);
+       Inset * editXY(Cursor & cur, int x, int y);
 
        /// order of movement through the cells when pressing the left key
        bool idxLeft(Cursor &) const;
@@ -103,8 +105,17 @@ public:
        ///
        int latex(Buffer const &, odocstream & os,
                        OutputParams const & runparams) const;
+       ///
+       bool setMouseHover(bool mouse_hover);
+       ///
+       bool mouseHovered() const { return mouse_hover_; }
 
 protected:
+       ///
+       InsetMathNest(InsetMathNest const & inset);
+       ///
+       InsetMathNest & operator=(InsetMathNest const &);
+
        ///
        virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
        /// do we want to handle this event?
@@ -146,6 +157,8 @@ protected:
        cells_type cells_;
        /// if the inset is locked, it can't be entered with the cursor
        bool lock_;
+       ///
+       bool mouse_hover_;
 };