Bug 153774 - wrong page linked to "Evaluate up to level" option in Entries tab of Insert ToC/Index dialog
Summary: wrong page linked to "Evaluate up to level" option in Entries tab of Insert T...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
7.6.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Help-Link
  Show dependency treegraph
 
Reported: 2023-02-21 15:45 UTC by sdc.blanco
Modified: 2024-08-30 08:05 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sdc.blanco 2023-02-21 15:45:38 UTC
Insert - Table of Contents and Index - Table of Contents, Index, or Bibliography - Entries tab

Insert a Chapter No. in structure, then click on E# (which was just inserted).

Place cursor in spinbox for "Evaluate up to level" and press F1

Actual: https://help.libreoffice.org/7.6/en-US/text/swriter/01/04120222.html

Expected: https://help.libreoffice.org/7.6/en-US/text/swriter/01/04120221.html
Comment 1 sdc.blanco 2023-02-21 23:34:37 UTC
The OP should have specified that Type: Table of Contents was selected on the Type tab, before switching to the Entries tab.

I believe this problem arises because:

<bookmark xml-lang="en-US" branch="hid/modules/swriter/ui/tocentriespage/entryoutlinelevel" id="bm_id354930" localize="false"/>

appears on line 45 of source/text/swriter/01/04120222.xhp

The bookmark is part of the <eval> section, which gets embedded into   source/text/swriter/01/04120221.xhp (the help page for ToC).  

This probably explains why "Alphabetical Index" is shown.

But it gets worse.  The embedding in 04120221.xhp is part of the <format> section in that file, which gets embedded into 04120223.xhp (Illustration), 04120224.xhp (Tables), 04120225.xhp (user-defined), and 04120226.xhp (objects)
  -- so the same problem happens if these Types are selected on the Type tab, and then F1 is used in the "Evaluate up to level"

Note that "Evaluate up to level" is becoming "Show up to level" (bug 105628).
Comment 2 Olivier Hallot 2023-02-22 19:54:28 UTC
What is "OP" here? (and "DF" in another report?)
Comment 3 sdc.blanco 2023-02-22 22:07:35 UTC
OP is:  Place cursor in spinbox for "Evaluate up to level"  in Entries tab and press F1, where Type is "Table of Contents"
Comment 4 Dione Maddern 2024-08-09 13:49:21 UTC
It looks like the real problem here is that the same spinbox widget (modules/swriter/ui/tocentriespage/entryoutlinelevel) is used in the ui regardless of whether you select "Table of Contents" or "Alphabetical Index" in the "Type" tab.

I'm sure it's an efficient way to design the ui, but it occasionally creates problems when we're trying to place bookmarks on the right page.

I ran across the same problem in Bug 155012, and I'm not sure what we can do about it yet.
Comment 5 Dione Maddern 2024-08-09 13:50:43 UTC
Also it looks like "E#" is not "N#" now, if anybody is trying to reproduce the bug.
Comment 6 fpy 2024-08-30 08:05:09 UTC
(In reply to Olivier Hallot from comment #2)
> What is "OP" here? (and "DF" in another report?)

OP: https://english.stackexchange.com/questions/424366/does-op-mean-original-poster-or-original-post

DF: direct formatting