]> 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 92375e193e9a2b2a89ff8455422ee809addbba11..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;
        ///
@@ -104,22 +104,25 @@ public:
        void read(Buffer const &, Lexer & lex);
        ///
        int plaintext(Buffer const &, odocstream &,
-                     OutputParams const &) const;
+                     OutputParams const &) const;
        ///
        int docbook(Buffer const &, odocstream &,
-                   OutputParams const &) const;
+                   OutputParams const &) const;
        /// the string that is passed to the TOC
        virtual void textString(Buffer const &, odocstream &) const;
 
        /// 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 &);
@@ -133,7 +136,7 @@ protected:
        docstring eolString(row_type row, bool emptyline, bool fragile) const;
 
 private:
-       virtual std::auto_ptr<Inset> doClone() const;
+       virtual Inset * clone() const;
        ///
        void setType(HullType type);
        ///
@@ -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:
        ///