]> git.lyx.org Git - features.git/commit
New lfun to copy index insets from ToC
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 4 Nov 2022 20:52:46 +0000 (21:52 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 4 Nov 2022 20:52:46 +0000 (21:52 +0100)
commitfad170be1a6913403f200815be112a38ea9b857f
treee2550888d586e75b4c61809afb135f2ff5e7dde6
parentd2f05b9e6f40b192bd497b0b2138a3a626e18033
New lfun to copy index insets from ToC

The new function inset-insert-copy can only be invoked from the ToC.
It is currently only implemented for Index inset.

It is a special lfun because Inset::dispatch is called directly from
the ToC widget with cursor pointing to the inset, whereas the patch
happens in the workarea at caret position. This function cannot be
called directly.

Add an entry for this function in the toc context menu.

Fixes bug #4582.
lib/ui/stdcontext.inc
src/FuncCode.h
src/LyXAction.cpp
src/insets/InsetIndex.cpp