Hello,
thank you. I don't reuse the script, but it gives me the name
("com.sun.star.text.ContentIndex") of the object to instantiate to create Table
Of Contents.
I'm not yet fully satisfied of I get, but it is a good start point. Here, I
wrote my code for future people who get the same problem.
Forgot to add the link:
http://www.pitonyak.org/OOME_4_0.odt
On 2/8/19 8:42 AM, LORENZO Vincent wrote:
Hello,
I’m looking for a code example to create a table of contents and fill
it programmatically. I thought find something like an object called
XTableOfContents in the unoil library,
From OOME on my web site, well, part of that section:
Finding and inserting a table of contents (TOC) is easy unless you want
to change the defaults. The following macro checks ThisComponent to see
if the document contains a content index.
REM Find TOC if it exists.
oIndexes =
Hello,
I'm looking for a code example to create a table of contents
and fill it programmatically. I thought find something like an object called
XTableOfContents in the unoil library, but nothing and Google didn't really
help me.
So, please if you some pointers, code examples,