--===============2116147739==
Content-Type: multipart/alternative; boundary=00151747838472055b047aec0d8f
--00151747838472055b047aec0d8f
Content-Type: text/plain; charset=ISO-8859-1
Hello everybody,
The table of content (ToC) is something really necessary in a lot of
documents : I think there are more documents which use than documents
without ToC. ToC could both be used in kword and in kpresenter I think. Is
it necessary in KPresenter ? I am not sure of that. Is it necessary in KWord
? Oh god yes, of course it is ! That's why I would like to play with it. For
now, nothing had been implemented in kword or libs about the ToC. For
example, if you make a document with OpenOffice.org, with a ToC, and you try
to open it with KWord, it will not crash, but it will display anything about
the ToC. I have looked at the KOffice 1.6 code, and it is already well done
there, and for sure something can be re-use.
As I have never added "loading" things in KOffice, I would like to know a
bit more where I have to add the basics lines :
KoXmlElement tocSequence = KoXml::namedItemNS(body, KoXmlNS::text,
"table-of-content");
if (! tocSequence.isNull()) {
kDebug()<<"Table Of Content found";
}
When I add it in KWOdfLoader::load, it does work good, but I am not sure it
is the good place for this. What is usualy done ? Have you got some docs
about it ? I am already sorry if I missed something here. I would also like
to know if we begin to only put it in KWord, or in something more general
like libs/ ? In 1.6, that was in KWord only, and I think it makes sense to
have it in KWord.
I should add a class in which we can find ::load, ::save and which will
treat the ToC to add it in a textShape for instance... Do you have advices
for this, or examples of what have been already done I could try to be near
with ?
Thank you for advance,
Jean-Nicolas.
--00151747838472055b047aec0d8f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello everybody,
The table of content (ToC) is something really nece=
ssary in a lot of documents : I think there are more documents which use th=
an documents without ToC. ToC could both be used in kword and in kpresenter=
I think. Is it necessary in KPresenter ? I am not sure of that. Is it nece=
ssary in KWord ? Oh god yes, of course it is ! That's why I would like =
to play with it. For now, nothing had been implemented in kword or libs abo=
ut the ToC. For example, if you make a document with OpenOffice.org, with a=
ToC, and you try to open it with KWord, it will not crash, but it will dis=
play anything about the ToC. I have looked at the KOffice 1.6 code, and it =
is already well done there, and for sure something can be re-use.
As I have never added "loading" things in KOffice, I would li=
ke to know a bit more where I have to add the basics lines :
KoXmlEl=
ement tocSequence =3D KoXml::namedItemNS(body, KoXmlNS::text,
=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 &q=
uot;table-of-content");
if (! tocSequence.isNull()) {=A0=A0=A0=A0
=A0=A0=A0=A0=A0=A0=A0 kDebug(=
)<<"Table Of Content found";
}
When I add it in K=
WOdfLoader::load, it does work good, but I am not sure it is the good place=
for this. What is usualy done ? Have you got some docs about it ? I am alr=
eady sorry if I missed something here. I would also like to know if we begi=
n to only put it in KWord, or in something more general like libs/ ? In 1.6=
, that was in KWord only, and I think it makes sense to have it in KWord.
I should add a class in which we can find ::load, ::save and which will=
treat the ToC to add it in a textShape for instance... Do you have advices=
for this, or examples of what have been already done I could try to be nea=
r with ?
Thank you for advance,
Jean-Nicolas.
--00151747838472055b047aec0d8f--
--===============2116147739==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
--===============2116147739==--