]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathHull.h
Generalise the deletion protection mechanism from math to text (#9540)
[features.git] / src / mathed / InsetMathHull.h
index f8c04dfe2be2793a44c5b3a641ebeb837a67a373..bc574b9650ee72a8387ac16113d1d3b27215c610 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 &);
        ///
@@ -189,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 &);