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

interfaces

  • interfaces
  • ktexteditor
selectiondcopinterface.cpp
1 #include "selectiondcopinterface.h"
2 #include "selectioninterface.h"
3 
4 #include <dcopclient.h>
5 using namespace KTextEditor;
6 
7 SelectionDCOPInterface::SelectionDCOPInterface( SelectionInterface *Parent, const char *name)
8  : DCOPObject(name)
9 {
10  m_parent = Parent;
11 }
12 
13 SelectionDCOPInterface::~SelectionDCOPInterface()
14 {
15 
16 }
17 
21  bool SelectionDCOPInterface::setSelection ( uint startLine, uint startCol, uint endLine, uint endCol )
22  {
23  return m_parent->setSelection ( startLine, startCol, endLine, endCol );
24  }
25 
29  bool SelectionDCOPInterface::clearSelection ()
30  {
31  return m_parent->clearSelection();
32  }
33 
37  bool SelectionDCOPInterface::hasSelection ()
38  {
39  return m_parent->hasSelection();
40  }
41 
45  TQString SelectionDCOPInterface::selection ()
46  {
47  return m_parent->selection();
48  }
49 
53  bool SelectionDCOPInterface::removeSelectedText ()
54  {
55  return m_parent->removeSelectedText();
56  }
57 
61  bool SelectionDCOPInterface::selectAll ()
62  {
63  return m_parent->selectAll();
64  }
KTextEditor::SelectionInterface::clearSelection
virtual bool clearSelection()=0
removes the current Selection (not Text)
KTextEditor::SelectionDCOPInterface::selection
TQString selection()
Definition: selectiondcopinterface.cpp:45
KTextEditor::SelectionInterface::setSelection
virtual bool setSelection(unsigned int startLine, unsigned int startCol, unsigned int endLine, unsigned int endCol)=0
KTextEditor::SelectionInterface::selection
virtual TQString selection() const =0
KTextEditor::SelectionInterface::selectAll
virtual bool selectAll()=0
select the whole text
KTextEditor::SelectionInterface::removeSelectedText
virtual bool removeSelectedText()=0
removes the selected Text
KTextEditor::SelectionInterface
This is an interface to text selection for the Document class.
Definition: selectioninterface.h:33
KTextEditor::SelectionDCOPInterface::setSelection
bool setSelection(uint startLine, uint startCol, uint endLine, uint endCol)
Definition: selectiondcopinterface.cpp:21
KTextEditor::SelectionDCOPInterface::SelectionDCOPInterface
SelectionDCOPInterface(SelectionInterface *Parent, const char *name)
Construct a new interface object for the text editor.
Definition: selectiondcopinterface.cpp:7
KTextEditor::SelectionDCOPInterface::clearSelection
bool clearSelection()
removes the current Selection (not Text)
Definition: selectiondcopinterface.cpp:29
KTextEditor
KTextEditor is KDE&#39;s standard text editing KPart interface.
Definition: blockselectiondcopinterface.h:9
KTextEditor::SelectionDCOPInterface::removeSelectedText
bool removeSelectedText()
removes the selected Text
Definition: selectiondcopinterface.cpp:53
KTextEditor::SelectionDCOPInterface::selectAll
bool selectAll()
select the whole text
Definition: selectiondcopinterface.cpp:61
KTextEditor::SelectionDCOPInterface::hasSelection
bool hasSelection()
Definition: selectiondcopinterface.cpp:37
KTextEditor::SelectionDCOPInterface::~SelectionDCOPInterface
virtual ~SelectionDCOPInterface()
Destructor Cleans up the object.
Definition: selectiondcopinterface.cpp:13
DCOPObject
KTextEditor::SelectionInterface::hasSelection
virtual bool hasSelection() const =0

interfaces

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

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.8.13
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |