21#include "undointerface.h"
22#include "undodcopinterface.h"
28class PrivateUndoInterface
31 PrivateUndoInterface() {
interface = 0;}
32 ~PrivateUndoInterface() {}
33 UndoDCOPInterface *interface;
40unsigned int UndoInterface::globalUndoInterfaceNumber = 0;
42UndoInterface::UndoInterface()
44 globalUndoInterfaceNumber++;
45 myUndoInterfaceNumber = globalUndoInterfaceNumber++;
47 d =
new PrivateUndoInterface();
48 TQString name =
"UndoInterface#" + TQString::number(myUndoInterfaceNumber);
49 d->interface =
new UndoDCOPInterface(
this, name.latin1());
52UndoInterface::~UndoInterface()
58unsigned int UndoInterface::undoInterfaceNumber ()
const
60 return myUndoInterfaceNumber;
63void UndoInterface::setUndoInterfaceDCOPSuffix (
const TQCString &suffix)
65 d->interface->setObjId (
"UndoInterface#"+suffix);
73 return dynamic_cast<KTextEditor::UndoInterface*
>(doc);
The main class representing a text document.
This is an interface to undo functionality of a Document.
KTextEditor is KDE's standard text editing KPart interface.