Created attachment 168189 [details] Writer file showing problem with hyperlinks to headings Version: 7.0.0.3 (x64) Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win Locale: en-GB (en_GB); UI: en-GB Calc: threaded This issue complicates the creation of hyperlinks to headings in a document. 1. Open the attached document. Select any word, then click "Insert Hyperlink". 2. Select "Document", then "Target in document", and open the Headings section. EXPECTED RESULT: The headings (in this case, Headings 1-3) should be titled exactly as they are in the document. The displayed sublevel numbers should match those specified in "Chapter Numbering > Numbering". ACTUAL RESULT: The display is defaulting (in error) to showing ALL possible sub-level numbers (see "Chapter Numbering > Numbering"). NOTE: the bigger the document, the more confusing this display becomes: you may be faced with a hundred chapter headings, each one wrongly labelled! This makes searching for the correct heading difficult.
Another problem which needs to be fixed at the same time. The "Target in document" window does not remember the last user reize. It keeps resetting to the default size.
Created attachment 168466 [details] Insert -> Hyperlink... -> Document tab -> 'Target in Document' dialog -> 'Heading' section
Reasonable, +1 It is a visual annoyance for sure, seems the targets should pick up the outline numbering/bullets. @Jim, could the 'Target in Document' dialog categories be loaded with same content as the Navigator and Find Bar "modes"? Or are the methods too different? =-ref-= https://opengrok.libreoffice.org/xref/core/cui/source/dialogs/hldoctp.cxx?r=3e57aad9#207
In a sense this is duplicate of bug 114567
"Chapter" is added because of the chapter numbering style, it's not the actual text. And if we add the text before the separator it might also needed for after. If we omit the chapter number in the target list we have to implement it as tree. Otherwise it's very hard to find the right item. Let's treat it as a bug.
Hello All, Here is a link to a patch that does the expand/collapse part of this request: https://gerrit.libreoffice.org/c/core/+/109930 A demo video is available at bug 114567
Jim Raykowski committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/5480d9237af1cf25ac464bf49ba364a757fcf6f5 tdf#114567 tdf#138934 Hyperlink-Target in Doc Headings expand/collapse It will be available in 7.2.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.