21 #include "encodinginterface.h"
22 #include "encodingdcopinterface.h"
30 class PrivateEncodingInterface
33 PrivateEncodingInterface() {interface=0;}
34 ~PrivateEncodingInterface() {}
42 unsigned int EncodingInterface::globalEncodingInterfaceNumber = 0;
44 EncodingInterface::EncodingInterface()
46 globalEncodingInterfaceNumber++;
47 myEncodingInterfaceNumber = globalEncodingInterfaceNumber++;
49 d =
new PrivateEncodingInterface();
50 ::TQString name =
"EncodingInterface#" + ::TQString::number(myEncodingInterfaceNumber);
54 EncodingInterface::~EncodingInterface()
60 unsigned int EncodingInterface::encodingInterfaceNumber ()
const
62 return myEncodingInterfaceNumber;
65 void EncodingInterface::setEncodingInterfaceDCOPSuffix (
const TQCString &suffix)
67 d->interface->setObjId (
"EncodingInterface#"+suffix);
The main class representing a text document.
This is the main interface to the EncodingInterface of KTextEdit.
This is an interface to the text encoding of a Document class.
KTextEditor is KDE's standard text editing KPart interface.