Ask Your Question

Is there automatic table of contents in writer?

asked 2013-09-24 21:02:34 +0200

FeroxTL gravatar image

I would like the table of contents automatically updates when I change my headlines, is it possible to do?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted

answered 2013-09-24 23:14:08 +0200

ajlittoz gravatar image

You can refresh your table of contents with menu command Tools->Update->Update All.

edit flag offensive delete link more

answered 2013-09-25 00:03:55 +0200

w_whalley gravatar image

You can use a macro that is triggered by the Save Document event that refreshes all tables and saves the document.

sub Refresh
rem UpdateAllIndexes hint from <a href=""></a>
dim document   as object
dim dispatcher as object
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("")
dispatcher.executeDispatch(document, ".uno:UpdateAllIndexes", "", 0, Array())
end sub

Assign this macro to the Save event Tools->Customize->Events.

Macro execution must be allowed for the document.

edit flag offensive delete link more


I love this answer :). It works flawlessly. (After I figured out how to change a macro below the 'organize macros' dialoge and in 'my macros' this thingy.)

But I am not yet allowed to vote it up :)

Drinc gravatar imageDrinc ( 2015-04-14 12:39:50 +0200 )edit
Login/Signup to Answer

Question Tools



Asked: 2013-09-24 21:02:34 +0200

Seen: 1,094 times

Last updated: Sep 25 '13