From f4a3f4f29b2dbf32043d3fafdaad1394cc9e8ed3 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Mon, 23 Sep 2024 19:15:20 +0200 Subject: [PATCH] Give a layout name to math HulInset This makes it accessible to inset-forall. --- 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;