Features in Office
This is the first part of a Table Of Contents implementation for KWord.
Basically, it's implemented using a KoVariable, but its paint & resize functions are overloaded to allow displaying more than a single piece of raw unformated text.
Currently, it parses the ODF attributes, displays the ToC stored in "cache" in the document... and that's all.
There is no code to save it so far.
The demo you could see on my blog is there, but commented out, it's too dirty and rely on uncommitable things in kotext.
Next part will be to mess around heading stuffs in kotext, then I'll be able to add the fun part of the ToC: "automatic" building...
(Some other things are gonna be missing... Also, I have no idea about how to support a table of content that goes over more than one page...)
Thanks for reading, happy testing :)