]> git.lyx.org Git - lyx.git/commit
Add AllowedInInsets and AllowedInLayouts InsetLayout tags
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 25 Jul 2023 11:37:07 +0000 (13:37 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 25 Jul 2023 11:37:07 +0000 (13:37 +0200)
commit0b463bfe0fd4b3cf46e3c5876444dc0517cff26e
treeb206fd54d8767c5bc2fd47fb3bc6655bdcff085c
parentbc95ff1ace326eb441b7d4da0637fd7ed594d146
Add AllowedInInsets and AllowedInLayouts InsetLayout tags

This allows to restrict the use of flex insets to specific contexts.

Note that this is currently very basis. It only considers immediately
containing insets/layouts and can be surpassed via cut and paste.

The use case that made me finally implement this are macros in covington
that make sense only in specific environments (but also consider \inst
in some article classes)
lib/doc/Customization.lyx
lib/doc/de/Customization.lyx
lib/scripts/layout2layout.py
src/Paragraph.cpp
src/Paragraph.h
src/Text.cpp
src/TextClass.cpp
src/insets/InsetLayout.cpp
src/insets/InsetLayout.h