]> 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 6f2f850e3b45d2f06e0cc91cf3e4fc401de699b5..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 &);
        ///
@@ -86,6 +86,8 @@ public:
        ///
        bool ams() const;
        ///
+       bool outerDisplay() const;
+       ///
        void validate(LaTeXFeatures & features) const;
        /// identifies HullInset
        InsetMathHull const * asHullInset() const { return this; }
@@ -185,6 +187,10 @@ public:
        std::string contextMenuName() const;
        ///
        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 &);