Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KTextEditor::SelectionDCOPInterface Class Reference

DCOP interface to SelectionInterface. More...

#include <selectiondcopinterface.h>

Inheritance diagram for KTextEditor::SelectionDCOPInterface:

DCOPObject List of all members.

DCOP Methods

bool setSelection (uint startLine, uint startCol, uint endLine, uint endCol)
bool clearSelection ()
bool hasSelection ()
QString selection ()
bool removeSelectedText ()
bool selectAll ()

Public Methods

 SelectionDCOPInterface (SelectionInterface *Parent, const char *name)
virtual ~SelectionDCOPInterface ()

Detailed Description

DCOP interface to SelectionInterface.

This is the main interface to the SelectionInterface of KTextEdit. This will provide a consistant dcop interface to all KDE applications that use it.

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

Definition at line 18 of file selectiondcopinterface.h.


Constructor & Destructor Documentation

KTextEditor::SelectionDCOPInterface::SelectionDCOPInterface (  SelectionInterface *    Parent,
const char *    name
) 
 

Construct a new interface object for the text editor.

Parameters:
ParentSelectionInterface  - The parent SelectionInterface object that will provide us with the functions for the interface.

virtual KTextEditor::SelectionDCOPInterface::~SelectionDCOPInterface (    )  [virtual]
 

Destructor Cleans up the object.


Member Function Documentation

bool KTextEditor::SelectionDCOPInterface::clearSelection (    ) 
 

removes the current Selection (not Text)

bool KTextEditor::SelectionDCOPInterface::hasSelection (    ) 
 

Returns:
true if there is a selection

bool KTextEditor::SelectionDCOPInterface::removeSelectedText (    ) 
 

removes the selected Text

bool KTextEditor::SelectionDCOPInterface::selectAll (    ) 
 

select the whole text

QString KTextEditor::SelectionDCOPInterface::selection (    ) 
 

Returns:
a QString for the selected text

bool KTextEditor::SelectionDCOPInterface::setSelection (  uint    startLine,
uint    startCol,
uint    endLine,
uint    endCol
) 
 

Returns:
set the selection from line_start,col_start to line_end,col_end


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:38 2003 for kdelibs by doxygen1.2.18