[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Review Request: Table Of Content, first step.
From:       "Pierre Ducroquet" <pinaraf () pinaraf ! info>
Date:       2009-12-18 11:59:11
Message-ID: 20091218115911.16929.40079 () localhost
[Download RAW message or body]


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/2410/#review3448
-----------------------------------------------------------


You could find some interesting code somewhere in the history of the SVN tree \
(removed in commit 955276). I suggest you first find a way to mark a pice of text as \
read-only in KWord. The text:protected attribute (my memory may be failing, check the \
spec) is not supported, and without this your TOC will always feel strange : users \
will be able to freely edit it, you will not like that.

BTW, one year ago, it was said that the TOC had to be implemented as a KoVariable, \
through a plugin. Thinking about it again, I think it was a bad choice, doing it \
directly in KoTextLoader is much better IMHO.

In the old code, I think you can find some classes to represent the TOC generation \
rules.

I hope this helps.

- Pierre


On 2009-12-18 09:00:45, Jean-Nicolas Artaud wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/2410/
> -----------------------------------------------------------
> 
> (Updated 2009-12-18 09:00:45)
> 
> 
> Review request for KOffice.
> 
> 
> Summary
> -------
> 
> Hello,
> 
> As you know, I work on the Table of Content (ToC) I've begining by making it 
> displayable when you load a ToC in a file. Here is my result :
> 
> a ToC created in OOo writer : http://img20.imageshack.us/img20/8933/tocooo.png
> a ToC opened in KWord : http://img695.imageshack.us/img695/9203/tockoffice.png
> 
> As I said, ToC are not yet noted ToC in the code, just as normal paragraphs.
> It is a good beginning to have it displayed than nothing.
> btw, you can edit it as normal texts.
> 
> 
> Diffs
> -----
> 
> trunk/koffice/libs/kotext/opendocument/KoTextLoader.h 1063150 
> trunk/koffice/libs/kotext/opendocument/KoTextLoader.cpp 1063150 
> 
> Diff: http://reviewboard.kde.org/r/2410/diff
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Jean-Nicolas
> 
> 

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic