]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathHull.h
Fix bug #10295.
[lyx.git] / src / mathed / InsetMathHull.h
index f3ea8a8166d5a4036907d3aa06e0214c730a47a7..1b3eef3410676475dd514272231696b1fe20c77a 100644 (file)
@@ -52,7 +52,7 @@ public:
        void updateBuffer(ParIterator const &, UpdateType);
        ///
        void addToToc(DocIterator const & di, bool output_active,
-                                 UpdateType utype) const;
+                                 UpdateType utype, TocBackend & backend) const;
        ///
        InsetMathHull & operator=(InsetMathHull const &);
        ///
@@ -86,6 +86,8 @@ public:
        ///
        bool ams() const;
        ///
+       bool outerDisplay() const;
+       ///
        void validate(LaTeXFeatures & features) const;
        /// identifies HullInset
        InsetMathHull const * asHullInset() const { return this; }
@@ -187,6 +189,8 @@ public:
        InsetCode lyxCode() const { return MATH_HULL_CODE; }
        ///
        bool canPaintChange(BufferView const &) const;
+       ///
+       bool confirmDeletion() const { return nargs() != 1 || !cell(0).empty(); }
 
 protected:
        InsetMathHull(InsetMathHull const &);
@@ -196,6 +200,12 @@ protected:
        /// do we want to handle this event?
        bool getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & status) const;
+       /// override to set to 0 for inline equation
+       int leftMargin() const;
+       /// override to set to 0 for inline equation
+       int rightMargin() const;
+       /// override to set to 0 for inline equation
+       int border() const;
        ///
        docstring eolString(row_type row, bool fragile, bool latex,
                        bool last_eoln) const;
@@ -284,6 +294,8 @@ public:
        Inset * editXY(Cursor & cur, int x, int y);
        ///
        DisplayType display() const;
+       ///
+       int indent(BufferView const &) const;
 
 protected:
        ///