Bug 123673 - Add a command to update all indices
Summary: Add a command to update all indices
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: UNO-Command-New TableofContents-Indexes
  Show dependency treegraph
 
Reported: 2019-02-23 21:50 UTC by Stefan_Lange_KA@T-Online.de
Modified: 2019-02-25 21:51 UTC (History)
4 users (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 Stefan_Lange_KA@T-Online.de 2019-02-23 21:50:35 UTC
Actual State:
- A Table of Contents (ToC) can be created only for the entire document or for a chapter (means document part belonging to a Heading 1).
- The Table of Contents for a chapter contains entries for the content of the chapter but I haven't found a way to place an entry (link) pointing to the main ToC.
- When in a document is created more than one ToC every ToC must be updated separately, because in the Popup menu exists only the item "Update index".

I propose:
- ToC can be be created also for subchapters, means parts of the document belonging to lower headings (Heading 2, 3 etc.).
- (Optionally) one can define in a ToC for a chapter or subchapter also entries for "father index/indices" and/or main ToC. This woluld be useful especially when index entries are built as hyperlinks.
- In the Popup Menu for indices will inserted a menu item "Update all indces" to easier handle the indices when in a document is created more than one index.
Comment 1 Dieter 2019-02-24 14:41:56 UTC
Workaround is probably using a master-document.
Comment 2 RGB 2019-02-24 16:59:12 UTC
See 

 Bug 112301  - Set outline level for chapters  

and related 

 Bug 94218 - footnote numbering per chapter: define outline level that resets numbering

It seems this cannot be done because of limitations in the ODT file format.
Comment 3 Stefan_Lange_KA@T-Online.de 2019-02-25 09:50:26 UTC
OK! 
I have looked into the ODF documentation "Open Document Format for Office Applications (OpenDocument) Version 1.2, Part 1: OpenDocument Schema, OASIS Standard, 29 September 2011" and there I have found what Regina Henschel has written in Comment 4 of Bug 112301: For the attribute text:index-scope are defined only the both values "chapter" and "document". 
The problem would not be to create an index on the level of a lower heading but to save it in the document - nearly like the problem with "Add value for Optimal Row Height" in Calc: It is defined and used in LO but not saved in the document (Bug 108601).
A great pity!

But also when the enhancement of TOC can't be realized my last proposal (insert a menu item "Update all indces" in the Popup Menu for indices) could be useful and I think it is not affected from ODF standard.
Comment 4 Stefan_Lange_KA@T-Online.de 2019-02-25 10:38:02 UTC
Correction to Commnt 3:
Not Comment 4 of Bug 112301, but Comment 2 of Bug 112301!
Comment 5 Heiko Tietze 2019-02-25 10:53:30 UTC
Could imagine a command/menu entry to update all indices. That includes not only the ToC (don't see a use case for more than one, btw.) but also the alphabetical index and list of figures etc. Would that be sufficient, Stefan?
Comment 6 Stefan_Lange_KA@T-Online.de 2019-02-25 12:03:48 UTC
(In reply to Heiko Tietze from comment #5)
> Could imagine a command/menu entry to update all indices. That includes not
> only the ToC (don't see a use case for more than one, btw.) but also the
> alphabetical index and list of figures etc. Would that be sufficient, Stefan?

Absolutely! This was my itentiion´, when I have proposed to insert a menu item "Update all indces".
Comment 7 Heiko Tietze 2019-02-25 15:54:29 UTC
So let's do it. Could be an easyhack since we do update before printing, hopefully we do.
Comment 8 Regina Henschel 2019-02-25 16:15:11 UTC
It exists already. The command is ".uno:UpdateAllIndexes". It is available via menu Tools > Update > Indexes and Tables.
Comment 9 Heiko Tietze 2019-02-25 17:58:16 UTC
(In reply to Regina Henschel from comment #8)
> It exists already. The command is ".uno:UpdateAllIndexes". It is available
> via menu Tools > Update > Indexes and Tables.

Oups, that works (not easy to find, though).
Comment 10 Stefan_Lange_KA@T-Online.de 2019-02-25 21:51:28 UTC
Many thanks for the help! My problem related to update (many) indices is resolved, even if the function is good hidden in the Standard User Interface.
But in the new Tabbed User Interface exists an icon for the wider working function "Update All" in the tab "References" - easy to find and not hidden!