1#include "selectioninterface.h"
2#include "selectiondcopinterface.h"
10 class PrivateSelectionInterface
13 PrivateSelectionInterface()
17 ~PrivateSelectionInterface(){}
19 SelectionDCOPInterface *interface;
24unsigned int SelectionInterface::globalSelectionInterfaceNumber = 0;
26SelectionInterface::SelectionInterface()
28 d =
new PrivateSelectionInterface();
29 globalSelectionInterfaceNumber++;
30 mySelectionInterfaceNumber = globalSelectionInterfaceNumber;
31 TQString name =
"SelectionInterface#" + TQString::number(mySelectionInterfaceNumber);
32 d->interface =
new SelectionDCOPInterface(
this, name.latin1());
34SelectionInterface::~SelectionInterface()
40unsigned int SelectionInterface::selectionInterfaceNumber ()
const
42 return mySelectionInterfaceNumber;
45void SelectionInterface::setSelectionInterfaceDCOPSuffix (
const TQCString &suffix)
47 d->interface->setObjId (
"SelectionInterface#"+suffix);
55 return dynamic_cast<KTextEditor::SelectionInterface*
>(doc);
63 return dynamic_cast<KTextEditor::SelectionInterface*
>(view);
The main class representing a text document.
This is an interface to text selection for the Document class.
The View class represents a single view of a Document .
KTextEditor is KDE's standard text editing KPart interface.