English
Ask Your Question
0

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 delete

2 answers

Sort by » oldest newest most voted
1

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 publish link more
0

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="http://www.oooforum.org/forum/viewtopic.phtml?t=41113">http://www.oooforum.org/forum/viewtopic.phtml?t=41113</a>
dim document   as object
dim dispatcher as object
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
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 publish link more
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

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

Seen: 227 times

Last updated: Sep 25 '13