I am trying to export some text from Python into a Writer document which I created according to these instructions.
For example, using
cursor.setPropertyValue("CharHeight", 20)
cursor.setPropertyValue("CharWeight", 150)
document.Text.insertString(cursor, "This Is Heading One", 0)
I can make a line of text look like a heading, but it’s just text and not an actual heading. What property values do I have to modify to generate a heading line that’s picked up for the TOC?
In general, where is the documentation for the properties, and how to navigate the Writer document in general? I’m having a very hard time digging up anything at all!