interfaces Library API Documentation

KTextEditor::SelectionInterface Class Reference

This is an interface to text selection for the Document class. More...

#include <selectioninterface.h>

List of all members.

Public Methods

 SelectionInterface ()
virtual ~SelectionInterface ()
unsigned int selectionInterfaceNumber () const
virtual bool setSelection (unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol)=0
virtual bool clearSelection ()=0
virtual bool hasSelection () const=0
virtual QString selection () const=0
virtual bool removeSelectedText ()=0
virtual bool selectAll ()=0
virtual void selectionChanged ()=0

Protected Methods

void setSelectionInterfaceDCOPSuffix (const QCString &suffix)

Friends

class PrivateSelectionInterface


Detailed Description

This is an interface to text selection for the Document class.

Definition at line 31 of file selectioninterface.h.


Member Function Documentation

virtual bool KTextEditor::SelectionInterface::setSelection unsigned int    startLine,
unsigned int    startCol,
unsigned int    endLine,
unsigned int    endCol
[pure virtual]
 

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

virtual bool KTextEditor::SelectionInterface::clearSelection   [pure virtual]
 

removes the current Selection (not Text).

virtual bool KTextEditor::SelectionInterface::hasSelection   const [pure virtual]
 

Returns:
true if there is a selection

virtual QString KTextEditor::SelectionInterface::selection   const [pure virtual]
 

Returns:
a QString for the selected text

virtual bool KTextEditor::SelectionInterface::removeSelectedText   [pure virtual]
 

removes the selected Text.

virtual bool KTextEditor::SelectionInterface::selectAll   [pure virtual]
 

select the whole text.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for interfaces Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sun May 16 22:04:59 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003