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

List:       koffice-devel
Subject:    Re: document classes
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-08-29 11:42:25
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 29 August 2002 03:01, Tomasz Grobelny wrote:
> On śro 28. sierpień 2002 22:52, Tomasz Grobelny wrote:
> > I'd like to do a bit of development on KWord/Koffice but first I need to
> > know what is the purpose of several classes:
> >
> > KoDocument-seems to be base class for all document classes across Koffice
> > so I guess it it should not be modified if not adding fundamental features
> > for all Koffice apps.

Right.

> > KoTextDocument-seemed to be the right class to do the development but I
> > noticed KWDocument does not inherit it.

They are two *completely* different things. In a KWord document, if you have
5 framesets, each of them has a KoTextDocument.
A KoTextDocument (the name comes from QTextDocument in QRichText)
is a list of paragraphs (nothing else).

> > KWDocument-here I found functions which do reading and writing from/to
> > files so I implemented them here.
Right, like in all koffice documents.

> > But the data (global for document) must be accesible from lib/kotext. So
> > which (document) class should I extend?
Depends for which features. Please elaborate.

> I did a little bit of investigation and I have a question:
> How do I get a pointer to KWDocument/KoDocument from KoTextDocument? Is it 
> possible?
Not from a base KoTextDocument (since that's used by kpresenter too ;)
but a KWTextDocument knows about its host frameset, which knows about
its host KWDocument. I'm not sure you need that though. Well, that really 
depends what you're trying to do ;-)

- -- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2-rc1 is out. ftp://ftp.kde.org/pub/kde/unstable/koffice-1.2-rc1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9bgih72KcVAmwbhARAhmwAKCTYWl0oX53ukSUKJKpP9mEwdQp/gCgnKAR
oRWguwVGOl4pp8fuAYzphLw=
=LImp
-----END PGP SIGNATURE-----

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://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