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

List:       koffice
Subject:    Re: Plugin development
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-09-16 14:18:35
[Download RAW message or body]

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

On Monday 16 September 2002 12:05, David Findlay wrote:
> Is it currently possible to develop third party plugins for Kword? I have a
> couple of things I'd like to do with Kword, but they aren't going to be any
> use to anyone who doesn't have a particular(non-free) application that I use,
> so it's no point releasing it. And in any case if everyone did this it would
> end up hugely bloated with features most people never use.
> 
> I'd like to be able to write a plugin that lets me press a key, and then via
> an API the plugin could read the text of a document immediately before the
> cursor, and paste in the data I from the program. Is there currently a way to
> do this with the DCOP system? Thanks,

Sounds like something that could done with a KDataTool, please have a look
at kdelibs/kio/kio/kdatatool.h
and koffice/tools/{spell|kthesaurus} for example datatools.

They are dl'opened, which is exactly what you want. The datatool interface
might not be powerful enough though (the text before the cursor - do you
mean a word, a paragraph, or the whole document up until there?)

- -- 
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)

iD8DBQE9heg772KcVAmwbhARAtl3AKCA75VbdZBfwLrnS+7ZXQqHhBiubACggIkp
d6PpGYgZ5zcp82kRGT//WhU=
=/ZSW
-----END PGP SIGNATURE-----

____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
http://mail.kde.org/mailman/listinfo/koffice
[prev in list] [next in list] [prev in thread] [next in thread] 

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