RE: how to create and fill a table of contents ? (solved)

2019-02-11 Thread LORENZO Vincent
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.

Re: how to create and fill a table of contents ?

2019-02-09 Thread Andrew Douglas Pitonyak
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,

Re: how to create and fill a table of contents ?

2019-02-09 Thread Andrew Douglas Pitonyak
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 =

how to create and fill a table of contents ?

2019-02-08 Thread LORENZO Vincent
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,