[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: Re: A 'parts widget' ????
From: David Faure <david () mandrakesoft ! com>
Date: 2002-12-04 20:15:33
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 04 December 2002 20:37, Paul Campbell wrote:
> > Well, to be more precise, it depends whether you want to use
> > normal KParts (one widget per part) or KOffice parts (possibly
> > multiple views per part). KOffice parts support the "single
> > widget" mode though - this is what happens when they are
> > embedded into Konqueror.
>
> OK - I'll go and look at how this is implemented - I've already
> been thru kword/kspread/kpresenter which all seem so different
> it's hard to find the common stuff because they're pretty spread
> out thru the code
Hmm? You're not looking at the right place then. The common stuff is...
in koffice/lib/libkofficecore. If you're embedding various types of docs,
this is all you need to look at.
> > So if you don't need the KOffice-specific stuff
> > (KoDocumentEntry) you can simply use the standard way of
> > creating KParts.
>
> I'm using KoPartSelectAction as my select-part interface
Then you can just create the document from the KoDocumentEntry,
then ask that doc to create a view, and pass the tabwidget as the parent
to that view. Should take 5 lines of code in all :)
- --
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE97mJm72KcVAmwbhARAnjQAJ49QasV+1fg+SX2kYbOlmU9JkYoewCgnwBR
dvtsD17zOiwlSAbk5UNyuZM=
=hddb
-----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