<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - "Target in document" dialog shows a flat list of headings with no option to select the level of headings displayed"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=114567">114567</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"Target in document" dialog shows a flat list of headings with no option to select the level of headings displayed
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.4.3.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Writer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>sganguly87@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>