Hi,

Nicole Scholz wrote:
Hi!

I created a sWriter document with a table of content. The document contains different headlines with different heading styles. The headlines with heading 1 or heading 2 are displayed in the toc but not the headlines with heading 3. Do I have to change some properties of the toc that the heading 3 headlines? I set the ParaStyleName to Heading 3 the same way like I set it to Heading 2.
heading = "Heading 3"
   props~setPropertyValue("ParaStyleName",heading)  -- change heading style of 
a text


In the default table of content all paragraphs, which have a paragraph style applied, which is assigned to one of the list level of the outline style (see Menu - Tools - Outline Numbering), will be included in the table of content. Such paragraph styles have by side effect the outline style set as its list style. Paragraph styles "Heading 1", "Heading 2", "Heading 3", ... , "Heading 10" are by default assigned to the list levels of the outline style.

Thus I assume, that in your case "Heading 3" has lost its assignment to the third list level of the outline style. This can happen directly by using dialog "Menu - Tools - Outline Numbering". It will also happen, when the list style attribute of paragraph style "Heading 3" is changed.
May be the one or the other is the case.

It can also be the case that in your table of content definition you have configured that it should only contain headings up to level 2.

If paragraph style "Heading 3" is still assigned to a list level of the outline style and you have used a table of content, which contains headings up to level 10, then something else seems to be wrong - probably a defect.


Hope this helps, Oliver.


--
=======================================================================
Sun Microsystems GmbH    Oliver-Rainer Wittmann
Nagelsweg 55             Software Engineer - OpenOffice.org/StarOffice
20097 Hamburg
Germany                  Fax:   (+49 40) 23 646 955
http://www.sun.de        mailto:[EMAIL PROTECTED]
-----------------------------------------------------------------------
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

=======================================================================
Oliver-Rainer Wittmann (od) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to