I have a Writer document. I only use 2 text styles in the document: Heading 1 and Default Style. I create a table of contents. I set the number of levels to 1. I expected that my TOC would be a list of those lines of text that had been assigned the Heading 1 style. Instead not only do I get Heading 1 but a total of 22 pages worth of assorted Default Style lines as entries as well. I can see no rhyme or reason behind why LO decides to make some regular lines of text into TOC entries and not others.
On this page Defining Index or Table of Contents Entries - LibreOffice Help
there are some instructions but that changed nothing.
Also on that page is a link to an item Creating a Table of Contents located at Creating a Table of Contents - LibreOffice Help
but that page returns a database error
Bottom line: My question: How can I get LO to create a TOC that only indexes lines of text defined using the Heading 1 style?
This is version 188.8.131.52 of LibreOffice Writer on Windows 7