From koffice Thu Feb 24 10:43:58 2005 From: David Faure Date: Thu, 24 Feb 2005 10:43:58 +0000 To: koffice Subject: Re: KWord scripting Message-Id: <200502241143.59332.faure () kde ! org> X-MARC-Message: https://marc.info/?l=koffice&m=110924184723213 On Wednesday 23 February 2005 20:31, Matej Cepl wrote: > OK, I can try DCOP calls, but is there anywhere a commented list of all > available ones? I'm afraid there isn't. The long-term plan is to provide the docu in kdcop [via dcopidlng]. But this needs both a dcopidlng improvement and to actually document the DCOP calls in the *Iface.h files, which isn't done yet. > How can I do with the DCOP calls this? After the usual "startEditing" stuff (see www.koffice.org's kword dcop example), > moveCursorLeft(true) > (OK, I would settle > for , but I prefer the > former) cut() (to clipboard) preserves formatting. selectedText() would give you only plain text. > moveCursorRight(false) > paste() > moveCursorLeft(false) > Moreover, how can I attach this script to key shortcut ()? You can't - DCOP is out of process... We'd need a dialog for defining new actions and binding arbitrary shell commands to them... And those actions would need to be saved - into the document? or into the app's config file? [snip kommander - no clue about that myself] -- David Faure, faure@kde.org, sponsored by Trolltech to work on KDE, Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org). ____________________________________ koffice mailing list koffice@mail.kde.org To unsubscribe please visit: https://mail.kde.org/mailman/listinfo/koffice