21#include "blockselectioninterface.h"
22#include "blockselectiondcopinterface.h"
28class PrivateBlockSelectionInterface
31 PrivateBlockSelectionInterface() {
interface = 0;}
32 ~PrivateBlockSelectionInterface() {}
33 BlockSelectionDCOPInterface *interface;
40unsigned int BlockSelectionInterface::globalBlockSelectionInterfaceNumber = 0;
42BlockSelectionInterface::BlockSelectionInterface()
44 globalBlockSelectionInterfaceNumber++;
45 myBlockSelectionInterfaceNumber = globalBlockSelectionInterfaceNumber++;
46 TQString
name =
"BlockSelectionInterface#" + TQString::number(myBlockSelectionInterfaceNumber);
48 d =
new PrivateBlockSelectionInterface();
49 d->interface =
new BlockSelectionDCOPInterface(
this,
name.latin1());
52BlockSelectionInterface::~BlockSelectionInterface()
58unsigned int BlockSelectionInterface::blockSelectionInterfaceNumber ()
const
60 return myBlockSelectionInterfaceNumber;
63void BlockSelectionInterface::setBlockSelectionInterfaceDCOPSuffix (
const TQCString &suffix)
65 d->interface->setObjId (
"BlockSelectionInterface#"+suffix);
An interface for the Document class which allows the selection method to be changed between selecting...
The main class representing a text document.
KTextEditor is KDE's standard text editing KPart interface.
KTEXTEDITOR_EXPORT BlockSelectionInterface * blockSelectionInterface(class Document *doc)
Access the block selection interface of document.
TQString name(StdAccel id)