SEP
7
2006

List Items

In KOffice 2.0 (based on Qt4/KDE4) we long ago decided to remove the old text engine and base our new one on scribe which is a part of Qt4.

This looks like a simple job; but there are a lot of features an application like KWord needs that are not supplied by Qt. An example of this is numbering paragraphs. That is, Qt supports simple numbered paragraphs, but not nested and certainly not with all the features that the OpenDocument Format specification supplies.

So, I added that 'feature' to KWord and just committed the last part to make it work pretty well. Lots of unit tests to keep it from regressing as I continue working on the text layout.

Features supported right now;
- restart numbering at any paragraph
- prefix / suffix
- just basic numbering now; I'll work on all the other numbering types, including bullets next.
- displayLevel option; to not show all counters of the list but only the right most ones.
- use a (separate) character-style for the rendering of the list-item.

And features supported that KWord1.5 did not:
- Alignment of lists greater than 10. See how the paragraph text of 3.9 and 3.10 both start at the same point.
- Allow list items without any prefix. So now you can have a chapter heading without a number.

Comments

Will list items be cross-reference-able? I mean, when I am elsewhere in the current document or in another document, will I be able to insert a "reference" to an existing list and format it to my liking?

For instance, say in document A, I have:
2.5 First header in second header

Then in document B, I want to insert:
... please see "2.5 First header in second header, on page 43 of chapter 2" for more information ...

And the thing I insert appears just as I show it (wysiwyg), and updates itself (page number, section name, chapter number etc.) when I update cross-references across a multi-file book? If I break the source of the cross-reference, of course the places where it is used become un-resolveable, but there would be a function to help me resolve the broken cross-references.

Thanks.


By [email protected] at Tue, 03/06/2007 - 00:38

Sure, I've added it to the list of things we need inline object plugins for ;)
http://wiki.koffice.org/index.php?title=KWord


By Thomas Zander at Thu, 03/08/2007 - 08:26

Thank you very very much. FYI, I just found a bug related to my request:
http://bugs.kde.org/show_bug.cgi?id=50588


By [email protected] at Tue, 03/13/2007 - 14:24