]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathHull.h
simplify GuiToc / TocWidget interaction. Much can still be simplified...
[lyx.git] / src / mathed / InsetMathHull.h
index 83a223e876b6bc1db97335b7e37f905128b0660a..7e67c6e52f1cb4b1144047f2fd7912d656caee04 100644 (file)
@@ -35,7 +35,7 @@ public:
        ///
        mode_type currentMode() const;
        ///
-       bool metrics(MetricsInfo & mi, Dimension & dim) const;
+       void metrics(MetricsInfo & mi, Dimension & dim) const;
        ///
        void draw(PainterInfo &, int x, int y) const;
        ///
@@ -114,12 +114,15 @@ public:
        /// get notification when the cursor leaves this inset
        bool notifyCursorLeaves(Cursor & cur);
        ///
-       //bool insetAllowed(Code code) const;
+       //bool insetAllowed(InsetCode code) const;
        ///
        void addPreview(graphics::PreviewLoader &) const;
 
        ///
        static int displayMargin() { return 12; }
+       
+       /// Force inset into LTR environment if surroundings are RTL?
+       virtual bool forceLTR() const { return true; }
 
 protected:
        InsetMathHull(InsetMathHull const &);
@@ -196,13 +199,14 @@ public:
        ///
        EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
-       void edit(Cursor & cur, bool left);
+       void edit(Cursor & cur, bool front, 
+               EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
        ///
        Inset * editXY(Cursor & cur, int x, int y);
        ///
        DisplayType display() const;
        ///
-       Code lyxCode() const;
+       InsetCode lyxCode() const;
 
 protected:
        ///