• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • interfaces
 

interfaces

  • KTextEditor
  • EditDCOPInterface
Public Member Functions
KTextEditor::EditDCOPInterface Class Reference

#include <editdcopinterface.h>

Inheritance diagram for KTextEditor::EditDCOPInterface:
DCOPObject

List of all members.

Public Member Functions

 EditDCOPInterface (EditInterface *Parent, const char *name)
virtual ~EditDCOPInterface ()

Detailed Description

This is the main interface to the EditInterface of KTextEdit.

This will provide a consistant dcop interface to all KDE applications that use it. DCOP interface to EditInterface.

Author:
Ian Reinhart Geiser <geiseri@kde.org>

Definition at line 18 of file editdcopinterface.h.


Constructor & Destructor Documentation

EditDCOPInterface::EditDCOPInterface ( EditInterface *  Parent,
const char *  name 
)

Construct a new interface object for the text editor.

Parameters:
Parentthe parent EditInterface object that will provide us with the functions for the interface.
namethe QObject's name

Definition at line 7 of file editdcopinterface.cpp.

EditDCOPInterface::~EditDCOPInterface ( ) [virtual]

Destructor Cleans up the object.

Definition at line 13 of file editdcopinterface.cpp.


Member Function Documentation

bool EditDCOPInterface::insertLine ( uint  line,
const TQString &  text 
) [virtual]

Insert line(s) at the given line number.

Definition at line 53 of file editdcopinterface.cpp.

bool EditDCOPInterface::insertText ( uint  line,
uint  col,
const TQString &  text 
) [virtual]

Inserts text at line "line", column "col" returns true if success.

Definition at line 43 of file editdcopinterface.cpp.

int EditDCOPInterface::length ( void  ) [virtual]
Returns:
the number of characters in the document

Definition at line 33 of file editdcopinterface.cpp.

int EditDCOPInterface::numLines ( ) [virtual]
Returns:
The current number of lines in the document

Definition at line 28 of file editdcopinterface.cpp.

bool EditDCOPInterface::removeLine ( uint  line) [virtual]

Insert line(s) at the given line number.

If only one line is in the current document, removeLine will fail (return false)

Definition at line 58 of file editdcopinterface.cpp.

bool EditDCOPInterface::removeText ( uint  startLine,
uint  startCol,
uint  endLine,
uint  endCol 
) [virtual]

remove text at line "line", column "col" returns true if success

Definition at line 48 of file editdcopinterface.cpp.

void EditDCOPInterface::setText ( const TQString &  text) [virtual]

Set the given text into the view.

Warning: This will overwrite any data currently held in this view.

Definition at line 38 of file editdcopinterface.cpp.

TQString EditDCOPInterface::text ( ) [virtual]
Returns:
the complete document as a single QString

Definition at line 18 of file editdcopinterface.cpp.

TQString EditDCOPInterface::textLine ( uint  line) [virtual]
Returns:
All the text from the requested line.

Definition at line 23 of file editdcopinterface.cpp.


The documentation for this class was generated from the following files:
  • editdcopinterface.h
  • editdcopinterface.cpp

interfaces

Skip menu "interfaces"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

interfaces

Skip menu "interfaces"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for interfaces by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |