\section{KText\-Editor::Selection\-Interface Class Reference}
\label{classKTextEditor_1_1SelectionInterface}\index{KTextEditor::SelectionInterface@{KTextEditor::SelectionInterface}}
This is an interface to text selection for the {\bf Document}{\rm (p.\,\pageref{classKTextEditor_1_1Document})} class.  


{\tt \#include $<$selectioninterface.h$>$}

\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
unsigned int {\bf selection\-Interface\-Number} () const \label{classKTextEditor_1_1SelectionInterface_a2}

\item 
virtual bool {\bf set\-Selection} (unsigned int start\-Line, unsigned int start\-Col, unsigned int end\-Line, unsigned int end\-Col)=0
\item 
virtual bool {\bf clear\-Selection} ()=0
\item 
virtual bool {\bf has\-Selection} () const =0
\item 
virtual {\bf QString} {\bf selection} () const =0
\item 
virtual bool {\bf remove\-Selected\-Text} ()=0
\item 
virtual bool {\bf select\-All} ()=0
\item 
virtual void {\bf selection\-Changed} ()=0\label{classKTextEditor_1_1SelectionInterface_a9}

\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void {\bf set\-Selection\-Interface\-DCOPSuffix} (const {\bf QCString} \&suffix)\label{classKTextEditor_1_1SelectionInterface_b0}

\end{CompactItemize}
\subsection*{Friends}
\begin{CompactItemize}
\item 
class {\bf Private\-Selection\-Interface}\label{classKTextEditor_1_1SelectionInterface_n0}

\end{CompactItemize}


\subsection{Detailed Description}
This is an interface to text selection for the {\bf Document}{\rm (p.\,\pageref{classKTextEditor_1_1Document})} class. 



Definition at line 33 of file selectioninterface.h.

\subsection{Member Function Documentation}
\index{KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}!setSelection@{setSelection}}
\index{setSelection@{setSelection}!KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KText\-Editor::Selection\-Interface::set\-Selection (unsigned int {\em start\-Line}, unsigned int {\em start\-Col}, unsigned int {\em end\-Line}, unsigned int {\em end\-Col})\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKTextEditor_1_1SelectionInterface_a3}


\begin{Desc}
\item[Returns:]set the selection from line\_\-start,col\_\-start to line\_\-end,col\_\-end \end{Desc}
\index{KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}!clearSelection@{clearSelection}}
\index{clearSelection@{clearSelection}!KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KText\-Editor::Selection\-Interface::clear\-Selection ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKTextEditor_1_1SelectionInterface_a4}


removes the current Selection (not Text) 

\index{KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}!hasSelection@{hasSelection}}
\index{hasSelection@{hasSelection}!KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KText\-Editor::Selection\-Interface::has\-Selection () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKTextEditor_1_1SelectionInterface_a5}


\begin{Desc}
\item[Returns:]true if there is a selection \end{Desc}
\index{KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}!selection@{selection}}
\index{selection@{selection}!KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual {\bf QString} KText\-Editor::Selection\-Interface::selection () const\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKTextEditor_1_1SelectionInterface_a6}


\begin{Desc}
\item[Returns:]a {\bf QString} for the selected text \end{Desc}
\index{KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}!removeSelectedText@{removeSelectedText}}
\index{removeSelectedText@{removeSelectedText}!KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KText\-Editor::Selection\-Interface::remove\-Selected\-Text ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKTextEditor_1_1SelectionInterface_a7}


removes the selected Text 

\index{KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}!selectAll@{selectAll}}
\index{selectAll@{selectAll}!KTextEditor::SelectionInterface@{KText\-Editor::Selection\-Interface}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}virtual bool KText\-Editor::Selection\-Interface::select\-All ()\hspace{0.3cm}{\tt  [pure virtual]}}\label{classKTextEditor_1_1SelectionInterface_a8}


select the whole text 



The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
selectioninterface.h\item 
selectioninterface.cpp\end{CompactItemize}
