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

List:       koffice
Subject:    Re: KWord scripting
From:       Matej Cepl <cepl () surfbest ! net>
Date:       2005-02-23 19:31:38
Message-ID: 1236369.qBYo8AlEtq () blahoslav ! ceplovi ! cz
[Download RAW message or body]

I am not sure, whether this message went correctly to this group, so
reposting.

Matej

Raphael Langerhorst wrote:
> In fact, KOffice scripting is currently done only with DCOP... DCOP is
> basically a protocol, so there are various ways to use DCOP, either
> in your own KDE application (a library is included in kdelibs) or
> through a shell script, or you can use DCOP with python though!! You
> only need the python bindings for KDE (can be found in the
> kdebindings package)
> 
> Kexi has some Python bindings that you can use directly in python. I'm
> not sure about the other KOffice components though.

OK, I can try DCOP calls, but is there anywhere a commented list of all
available ones? How can I do with the DCOP calls this?

 <select-character-before-cursor>
 <cut-selection-to-some-temporary-variable> (OK, I would settle
  for <cut-selection-to-clipboard>, but I prefer the
  former)
 <move-cursor-one-character-forward>
 <paste-character-from-temporary-variable>
 <move-cursor-one-character-backward>

Moreover, how can I attach this script to key shortcut (<Ctrl-T>)? I know
something about DCOP (as indicated by the Kate script attached to the
original message in this thread), but lack of documentation is something
which impedes my attempts a lot.

> I would suggest to have a look at Kommander. Kommander is a tool for
> scripting KDE. Here are the links:

The same as for DCOP -- how to do the above shown commands with Kommander?

> As you see there are probably more possibilities to get what you want
> although I guess you can expect difficulties every now and then. I'm
> also not completely sure how well your final DCOP script or
> application can be best integrated in KWord, but I guess it can be
> done somehow.

That is the question and same probably applies to Kommander? Any thoughts on
that?

Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
A child can go only so far in life without potty training.  It is not
mere coincidence that six of the last seven presidents were potty
trained, not to mention nearly half of the nation's state legislators.
                -- Dave Barry


____________________________________
koffice mailing list
koffice@mail.kde.org
To unsubscribe please visit:
https://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