]> git.lyx.org Git - lyx.git/commit
Implement LFUN_REFERENCE_TO_PARAGRAPH
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 28 Jul 2024 13:54:55 +0000 (15:54 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 28 Jul 2024 13:54:55 +0000 (15:54 +0200)
commit3fe99bf6f55858c666195263b8988165639ae7b2
treeb994065d66fbf9bd19e99f19f3201f3039de72dd
parente3b36208eddc87025afb005f828316029bcf8f4f
Implement LFUN_REFERENCE_TO_PARAGRAPH

This function checks whether a paragraph (specified by ID) has a label.
If so, it simply inserts a reference to this at cursor position, if
not it inserts a label to that paragraph (pos 0) and then inserts
a reference at cursor position.

Needed to implement #1624 (insert cross references to items that do not
have yet a label)
src/BufferView.cpp
src/FuncCode.h
src/LyXAction.cpp