Give a layout name to math HulInset

This makes it accessible to inset-forall.
This commit is contained in:
Jean-Marc Lasgouttes 2024-09-23 19:15:20 +02:00
parent 1865738417
commit f4a3f4f29b
2 changed files with 8 additions and 0 deletions

View File

@ -217,6 +217,12 @@ InsetMathHull & InsetMathHull::operator=(InsetMathHull const & other)
} }
docstring InsetMathHull::layoutName() const
{
return "Formula:" + hullName(type_);
}
void InsetMathHull::setBuffer(Buffer & buffer) void InsetMathHull::setBuffer(Buffer & buffer)
{ {
InsetMathGrid::setBuffer(buffer); InsetMathGrid::setBuffer(buffer);

View File

@ -47,6 +47,8 @@ public:
/// ///
virtual ~InsetMathHull(); virtual ~InsetMathHull();
/// ///
docstring layoutName() const override;
///
void setBuffer(Buffer &) override; void setBuffer(Buffer &) override;
/// ///
void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override; void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;