]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathNest.h
visual mode for bidi cursor movement
[lyx.git] / src / mathed / InsetMathNest.h
index 31f12c21c145ce91b282e23b537c2beaacc312c6..408d13a05b5c70623dab04abd1ee0d12790a2f91 100644 (file)
@@ -33,8 +33,6 @@ public:
        /// the size is usually some sort of convex hull of the cells
        /// hides inset::metrics() intentionally!
        void metrics(MetricsInfo const & mi) const;
-       ///
-       Dimension const dimension(BufferView const &) const { return dim_; };
        /// draw background if locked
        void draw(PainterInfo & pi, int x, int y) const;
        /// draw selection background
@@ -50,23 +48,24 @@ public:
        void cursorPos(BufferView const & bv, CursorSlice const & sl,
                bool boundary, int & x, int & y) const;
        ///
-       void edit(Cursor & cur, bool left);
+       void edit(Cursor & cur, bool front, 
+               EntryDirectionType entry_from = IGNORE_ENTRY_DIRECTION);
        ///
        Inset * editXY(Cursor & cur, int x, int y);
 
-       /// order of movement through the cells when pressing the left key
-       bool idxLeft(Cursor &) const;
-       /// order of movement through the cells when pressing the right key
-       bool idxRight(Cursor &) const;
+       /// order of movement through the cells when moving backwards
+       bool idxBackward(Cursor &) const;
+       /// order of movement through the cells when moving forward
+       bool idxForward(Cursor &) const;
 
-       /// move one physical cell up
+       /// move to next cell
        bool idxNext(Cursor &) const;
-       /// move one physical cell down
+       /// move to previous cell
        bool idxPrev(Cursor &) const;
 
-       /// target pos when we enter the inset from the left by pressing "Right"
+       /// target pos when we enter the inset while moving forward
        bool idxFirst(Cursor &) const;
-       /// target pos when we enter the inset from the right by pressing "Left"
+       /// target pos when we enter the inset while moving backwards
        bool idxLast(Cursor &) const;
 
        /// number of cells currently governed by us
@@ -151,6 +150,9 @@ private:
        void lfunMouseRelease(Cursor &, FuncRequest &);
        ///
        void lfunMouseMotion(Cursor &, FuncRequest &);
+       /// Find a macro to fold or unfold, starting at searchCur and searchCur.nextInset() pointing to a macro
+       /// afterwards if found
+       bool findMacroToFoldUnfold(Cursor & searchCur, bool fold) const;
 
 protected:
        /// we store the cells in a vector
@@ -161,8 +163,6 @@ protected:
        bool lock_;
        ///
        bool mouse_hover_;
-       /// Cached dimensions of the inset.
-       mutable Dimension dim_;
 };