Bug 65463 - Writer: Index entry in ToC should be clickable
Summary: Writer: Index entry in ToC should be clickable
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: high enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 73295 90495 93146 (view as bug list)
Depends on:
Blocks: TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2013-06-06 14:27 UTC by Yury
Modified: 2021-09-06 07:57 UTC (History)
12 users (show)

See Also:
Crash report or crash signature:


Attachments
showcase (11.42 KB, application/vnd.oasis.opendocument.text)
2014-11-07 16:46 UTC, Yury
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yury 2013-06-06 14:27:51 UTC
Seems nobody reported this, and 3.* series will be around for a while anyway.

'Index entry' (belonging to TOC) isn't clickable in TOC. The ctrl pressing doesn't change cursor, and click doesn't do anything.
Comment 1 Buovjaga 2014-11-07 13:14:07 UTC Comment hidden (obsolete)
Comment 2 Yury 2014-11-07 16:46:43 UTC
Created attachment 109094 [details]
showcase

Showcase. Press Ctrl and hover the mouse over the TOC entry pertaining to the 'TOC'able index entry' to see cursor stays normal. It should transform to hand indicating possibility of going to the entry on mouse click (with Ctrl pressed).
Comment 3 Buovjaga 2014-11-07 20:31:15 UTC
Thanks for the file! I can confirm your description, but I would like some TOC guru to comment on this as I'm a bit baffled at what's going on.

Win 7 64-bit Version: 4.4.0.0.alpha1+
Build ID: 8b21b5cbe78945b27525b4ce78ae3d981f90590f
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-06_03:55:51
Comment 4 Jacques Guilleron 2014-12-07 10:58:28 UTC
Hi Yuri,

It seems "Toc'able index entry" locks your index. The navigator don't see it and if I delete it, the cursor in TOC works as usual.

Jacques
Comment 5 Yury 2014-12-07 19:07:15 UTC
That is exactly the issue; such entries oughtn't block the index :).
Comment 6 Jacques Guilleron 2014-12-14 15:31:04 UTC
Hi Yury,

For me, an Index Entry pasted out of the Content table will send back to the same Entry. This is useless and lead to an error.

Jacques
Comment 7 Yury 2014-12-15 04:58:41 UTC
I didn't understand that, sorry. You don't mean that entry made from "TOC index" entry shouldn't be clickable, do you? The expected behaviour of such entry on click also is clear, isn't it?
Comment 8 retired 2015-01-06 10:27:41 UTC
This is on all platforms.

While I agree that this is a strange use-case which makes very little sense, LO should nonetheless

* either prevent such an entry from being created in the first place or
* if creating such entires is allowed (which imo it should not be) then LO needs to treat those entires the same as othe TOC entries.

Thus, NEW.
Comment 9 Yury 2015-01-06 12:53:05 UTC
Then the whole subdialog for "creating TOC entries from index styles" ought to be excluded from LO.
Comment 10 QA Administrators 2016-02-21 08:38:20 UTC Comment hidden (obsolete)
Comment 11 Yury 2016-04-18 07:20:47 UTC
Still there on 5.1.2.1.0.

Let's recapitulate:

1) there's an option in LO to create an index entry of type 'TOC', which would be shown in TOC

2) the option works but the respective TOC entry isn't navigable; mousing over with ctrl down does not show 'pointing hand' and ctrl+click does nothing

BTW, this use is for side-stepping the virtual lack of capability in LO to create TOC entries from/for non-heading paragraphs.
Comment 12 QA Administrators 2017-05-22 13:41:05 UTC Comment hidden (obsolete)
Comment 13 Paul 2017-05-22 16:06:54 UTC
Bug still exists in 5.3.3.2, on Linux x64. This is an important bug for anyone using multiple TOCs in documents, as often is the case with longer, more technical documents, because a functional second TOC, targeting specific index entries, is not possible.
Comment 14 Timur 2017-12-25 16:54:54 UTC
*** Bug 73295 has been marked as a duplicate of this bug. ***
Comment 15 Timur 2017-12-25 16:55:06 UTC
*** Bug 90495 has been marked as a duplicate of this bug. ***
Comment 16 Johnny_M 2017-12-26 22:00:27 UTC
*** Bug 93146 has been marked as a duplicate of this bug. ***
Comment 17 nicholas 2018-01-07 19:07:51 UTC
Still a bug. Windows user here.

Index marks are not hyperlinked in a ToC.
Comment 18 Mike Kaganski 2018-01-19 08:56:12 UTC
(In reply to retired from comment #8)
> While I agree that this is a strange use-case which makes very little sense ...

The one very interesting use case which makes perfect sense is using inline headings, i.e. some forst words of a paragraph as a ToC entry without need of a new paragraph for the heading (which is a valid formatting style).
Comment 19 Yury 2018-01-19 10:44:12 UTC
(In reply to Mike Kaganski from comment #18)
> (In reply to retired from comment #8)
> > While I agree that this is a strange use-case which makes very little sense ...
> 
> The one very interesting use case which makes perfect sense is using inline
> headings, i.e. some forst words of a paragraph as a ToC entry without need
> of a new paragraph for the heading (which is a valid formatting style).

Which is what I've been trying to do. Had to make do with a workaround. Same result (on paper), more footwork.
Comment 20 iostrym 2018-07-27 22:13:56 UTC
Hello, I met the bug in 5.2 version and bug  is still present in 5.4.7 version on windows.
Comment 21 RGB 2018-09-15 07:50:18 UTC
(In reply to Mike Kaganski from comment #18)
> The one very interesting use case which makes perfect sense is using inline
> headings, i.e. some forst words of a paragraph as a ToC entry without need
> of a new paragraph for the heading (which is a valid formatting style).

Indeed. In fact, the problem is not only a non clickable index in Writer, but also a non clickable index in the exported PDF, which makes this easy workaround to get in-line headings almost useless.
Comment 22 kan 2020-07-14 15:56:23 UTC
bug presence verified, useful feature awaited.

Version: 6.4.5.2
Build ID: a726b36747cf2001e06b58ad5db1aa3a9a1872d6
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: en-IN (en_IN); UI-Language: en-US
Calc: threaded
Comment 23 jeroen van gorkum 2021-06-23 14:45:18 UTC
• another use case

i'm writing a ~70 page technical document, with ~85 (level 1-5) headings. 8 of those headings deserve special mention. i need a normal TOC at the start of the document, with heading text and page numbers, hyperlinked to their location (in doc and pdf). for the special list, i'd like a second table somewhere else in the document, with similar formatting and hyperlinking (in doc and pdf).

normally, the most appropriate type for my second table would be a 'User-Defined' Index, but LO Help instructs that hyperlinked index entries are "Available only for a table of contents" [1], so i chose the TOC type.

• steps to reproduce (on macOS)

1. create an index entry from a heading
   a. select heading text
   b. from the Insert menu, choose Table of Contents and Index: Index Entry...
   c. in the Insert Index Entry dialog, select Table of Contents for Index, then click Insert
   d. click Close to dismiss the Insert Index Entry dialog

2. insert a TOC for index entries only
   a. place the cursor in the document where you want to insert the TOC 
   b. from the Insert menu, choose Table of Contents and Index: Table of Contents, Index or Bibliography...
   c. on the Type tab of the Table of Contents, Index or Bibliography dialog, make sure the selected Type is Table of Contents
   d. under Create From, deselect Outline and Additional styles, select Index marks
   e. click OK to close the dialog and insert the TOC into the document

• result

the TOC lists the index entries created from heading texts, referring to the right page numbers. it can be updated and edited as a normal TOC. if the document already contained a TOC, its name will be 'Table of Contents2'.

• expected result

next to the actual result, i expected a click (command + click on macOS) on a TOC line to jump to the index entry (heading text in my case) on the page in the document it refers to. i'd also expect that these hyperlinks would still work when the document is exported as PDF. this is the implemented behavior when Create From: Outline, or Create From: Additional styles is selected in step 2d, above.

--
[1] Entries (table of contents). (n.d.) LibreOffice Help (6.4). https://help.libreoffice.org/6.4/en-US/text/swriter/01/04120221.html (see heading 'Hyperlink (LS and LE)')

Version: 6.4.7.2
Build ID: 639b8ac485750d5696d7590a72ef1b496725cfb5
CPU threads: 4; OS: Mac OS X 10.15.7; UI render: default; VCL: osx; 
Locale: nl-NL (en_GB.UTF-8); UI-Language: en-US
Calc: threaded
Comment 24 Mike Kaganski 2021-09-05 20:13:30 UTC
Fixed in 7.2 by https://git.libreoffice.org/core/+/7685c0746cf0db6f51c6a7a488f4a960f8eab3c9 - thanks Michael!
Comment 25 Timur 2021-09-06 07:57:19 UTC
Confirmed for original sample attachment 109094 [details] and attachment from duplicate bug 93146 and sample from bug 73295.
Export to PDF also works, bug 90495.
Needs an update of index on those files (it's saved later) - crash in Linux reported as bug 144321.