Hi!
I searched, but couldn’t find any examples for JavaScript macros. Are there any somewhere? Most of the examples are VBScript.
What I want to do is the following:
- Find all Headings with the type of “Heading 2”
- Under every Heading 2, there is a table with a specify table style. Read the value from the second row, second column(High-Low-Medium).
- Insert sorted cross-references to heading 2 into a table under Heading 1 (table has different table style)
- Also sort all chapters with Heading 2 according the value from the table.
Could someone please help me get started? I honestly don’t know where do I even begin. I found this site: LibreOffice: JavaScript Service Reference but this doesn’t help me.
Thanks in advance!