Revision 828148

Go back to digest for 6th July 2008

Features in Office

Pierre Ducroquet committed changes in /trunk/koffice/plugins/variables:

Hello world!
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 :)

File Changes

Added 4 files
  • /trunk/koffice/plugins/variables
  •   /TOCVariable.cpp
  •   /TOCVariable.h
  •   /TOCVariableFactory.cpp
  •   /TOCVariableFactory.h
Modified 2 files
  • /trunk/koffice/plugins/variables
  •   /CMakeLists.txt
  •   /VariablesPlugin.cpp
6 files changed in total