Download it now!
Bug 114567 - HYPERLINK DIALOG: "Target in document" dialog should display the level of headings
Summary: HYPERLINK DIALOG: "Target in document" dialog should display the level of hea...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.4.3.2 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink-Dialog
  Show dependency treegraph
 
Reported: 2017-12-19 19:08 UTC by samik
Modified: 2018-01-22 10:28 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
file for test (21.33 KB, application/vnd.oasis.opendocument.text)
2018-01-21 14:17 UTC, tagezi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description samik 2017-12-19 19:08:47 UTC
Description:
While editing document local hyperlinks, the "Target in document" window appears if browse button is pressed for target. This shows a list of headings, among other things. This list of headings is flat in the sense that all levels of headings are shown in a single list like manner, with the heading's outline numbers prefixed. This should be changed into a hierarchical tree like widget, such as in navigator, so that it can be navigated properly when there are many levels of headings in the document. 
Additionally, also available in navigator, there should be a way to change verbosity level of heading list. Such as upto which level the headings are shown.

Steps to Reproduce:
1. Create a document with many levels of headings
2. Right click on a hyperlink, select "Edit hyperlink..."
3. In the edit dialog, go to "Document" tab
4. Press the browse button beside "Target in Document" > "Target" textbox
5. A "Target in document" dialog opens with a flat list of headings in the document"

Actual Results:  
A flat list of headings is shown in "Target in document" dialog. There is no option to control the level of displayed headings.

Expected Results:
A hierarchical heading tree should be shown like navigator. There should be a way to control the level of headings displayed in that dialog


Reproducible: Always


User Profile Reset: No



Additional Info:
This is problematic for documents with many levels of headings, especially a particular level is more crowded that others, because then other levels are lost in the list; it's very hard to cherry-pick them from within.
This happened to me while numbering source code listing lines with the help of chapter numbering(so that it automatically restarts on each listing), but then it creates a heading out of each source code line and other levels are lost in them.
Version: 5.4.3.2
Build ID: 5.4.3-2
CPU threads: 2; OS: Linux 4.13; UI render: default; VCL: gtk3; 
Locale: en-IN (en_IN.UTF-8); Calc: group


User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Comment 1 Dieter 2017-12-19 19:26:10 UTC
I agree.
Comment 2 tagezi 2018-01-21 14:17:33 UTC
Created attachment 139243 [details]
file for test

This requires significant changes in the code to determine the level of the heading.

String of menu bar for translation:
cui/inc/strings.hrc

Files where the tree is made:
cui/source/dialogs/hlmarkwn.cxx
cui/source/inc/hlmarkwn.hxx

I attach the file for test this issue.