From e78b2b4e8707f95ca4fa3e37b214bff252a62980 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 HullInset This makes it accessible to inset-forall. (cherry picked from commit f4a3f4f29b2dbf32043d3fafdaad1394cc9e8ed3) --- src/mathed/InsetMathHull.cpp | 6 ++++++ src/mathed/InsetMathHull.h | 2 ++ status.24x | 3 +++ 3 files changed, 11 insertions(+) diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index 9255654e6e..1f6c456621 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 8e527c4d52..da80d876ee 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; diff --git a/status.24x b/status.24x index 9967ed9556..f44f22ee78 100644 --- a/status.24x +++ b/status.24x @@ -37,6 +37,9 @@ What's new - Fix display of superscripts on Windows (bug 13100). +- It is now possible to use inset-forall for math equations with the selector + "Formula" or "Formula:eqnarray", for example. + * DOCUMENTATION AND LOCALIZATION