https://bugs.documentfoundation.org/show_bug.cgi?id=44448

--- Comment #37 from Viktor <[email protected]> ---
Hello together,

for me this is also a missing option in Writer.

I use following MACRO (find on
https://forum.openoffice.org/en/forum/viewtopic.php?p=316538&sid=a0a4b71bb2908d87deb08b9b96e05e9f#p316538)

Wich works better for me, because Writer not always jump to first page...

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
sub TOC_Update

if ((ThisComponent.supportsService("com.sun.star.text.TextDocument")) OR
(ThisComponent.supportsService("com.sun.star.text.WebDocument"))) Then
        oIndexes = ThisComponent.getDocumentIndexes()

        for i = 0 to oIndexes.getCount() - 1
        oIndexes (i).update
        REM If you want to get a message box when the index is updated
        REM remove the "REM" in front of the msgBox line below!!
        REM msgBox ("Index updated: " + oIndexes.getByIndex (i).getServiceName
())
        next i
end if

end sub
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Maybe it will be available in future, because many of my templates are also
used by my colleagues at work.
And if the macro is not available for them, it doesn't work and only produces
annoying error messages.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to