Le 16/10/2024 à 15:19, Jean-Marc Lasgouttes a écrit :
commit f4a3f4f29b2dbf32043d3fafdaad1394cc9e8ed3
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Mon Sep 23 19:15:20 2024 +0200

     Give a layout name to math HulInset
This makes it accessible to inset-forall.

Hi Riki,

This is candidate for branch. I guess there are more insets that would benefit from having their layout name set.

JMarc

---
  src/mathed/InsetMathHull.cpp | 6 ++++++
  src/mathed/InsetMathHull.h   | 2 ++
  2 files changed, 8 insertions(+)

diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp
index 1ab613d916..83fffc3be6 100644
--- a/src/mathed/InsetMathHull.cpp
+++ b/src/mathed/InsetMathHull.cpp
@@ -217,6 +217,12 @@ InsetMathHull & InsetMathHull::operator=(InsetMathHull const 
& other)
  }
+docstring InsetMathHull::layoutName() const
+{
+       return "Formula:" + hullName(type_);
+}
+
+
  void InsetMathHull::setBuffer(Buffer & buffer)
  {
        InsetMathGrid::setBuffer(buffer);
diff --git a/src/mathed/InsetMathHull.h b/src/mathed/InsetMathHull.h
index 1875417d5d..e7505a6b26 100644
--- a/src/mathed/InsetMathHull.h
+++ b/src/mathed/InsetMathHull.h
@@ -47,6 +47,8 @@ public:
        ///
        virtual ~InsetMathHull();
        ///
+       docstring layoutName() const override;
+       ///
        void setBuffer(Buffer &) override;
        ///
        void updateBuffer(ParIterator const &, UpdateType, bool const deleted = 
false) override;

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to