• Skip to content
  • Skip to link menu
The KOffice Project
  • KOffice Homepage / Developer Resources
 

DCOP Resources

  • General information on developer.kde.org about DCOP
  • More technical details about DCOP

A simple example of using DCOP with kword

Set this to the PID of a running kword, or use e.g. appid=`dcopstart kword foo.kwd`
appid=kword-14966
Get main text frameset
fs=$(dcopobject "`dcop $appid Document-0 textFrameSet 0`")
Start editing it
edit=$(dcopobject "`dcop $appid "$fs" startEditing`")
Now you can insert text
dcop $appid $edit insertText 'Hello world!'
Use this to create new paragraphs (only available from KOffice version 1.3.2 upwards)
dcop $appid $edit newParagraph
See "dcop kword-$pid $edit" for more (e.g. setBold true, moving the cursor, etc.)

Inform

Skip menu "Inform"
  • Home
  • KDE Home
  • News
  • Information
  • FAQ
  • Add-ons for KOffice
  • People
  • Mailing Lists
  • Support KOffice

Latest Releases

Skip menu "Latest Releases"
  • KOffice 1.6.3
  • KOffice 2.0-alpha-6
  • Security

KOffice Applications

Skip menu "KOffice Applications"
  • KOffice Workspace
  • KWord
  • KSpread
  • KPresenter
  • Kexi
  • Kivio
  • Karbon14
  • Krita
  • KPlato
  • KChart
  • KFormula
  • Kugar

Documentation

Skip menu "Documentation"
  • KOffice 1.6.3
  • Supported File Formats

Competitions

Skip menu "Competitions"
  • Recent Competitions
  • KOffice2 Design

Download

Skip menu "Download"
  • Download

Development

Skip menu "Development"
  • Developer Resources
    • Information
    • API Reference
    • Tasks
    • Filters
    • File Format
    • Website
    • KDE Developer Site
  • Get Involved
  • KOffice Sprints

Global navigation links

  • KDE Home
  • KDE Accessibility Home
  • Description of Access Keys
  • Back to content
  • Back to menu
Maintained by koffice.org Web Team
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal