https://bugs.documentfoundation.org/show_bug.cgi?id=169212
--- Comment #2 from Eyal Rozenberg <[email protected]> --- (In reply to Heiko Tietze from comment #1) > What kind of edits? Changes that affect thew page numbers, any formatting or > just indentation/spacing, all key events to notice when the heading text is > altered, etc.? I mean, _all_ document edits. So, all of those you mentioned. Now > I think this is not feasible. Of course it's _feasible_ - if in no other way, then by triggering a ToC re-generation after each edit. But of course that would be rather wasteful. Developers would need to work out how to do this more lazily, while still having the same effect. Approaches could be: * Regenerate ToC every fixed period of time (if any edits were made) * Regenerate ToC whenever it comes into view (plus when saving, exporting, or printing) - so the user never sees it with invalid content, although this would mean we do not allow for the ToC's overflowing into another page or underflowing to take up one less page, i.e. there are noticeable effect of lazyness. * Regenerate ToC on any edit to a paragraph with a style that's captured in the ToC * Regenerate when LO is "idling", provided edits have been made ... or some combination of the above. -- You are receiving this mail because: You are on the CC list for the bug.
