21#include "printinterface.h"
22#include "printdcopinterface.h"
28class PrivatePrintInterface
31 PrivatePrintInterface() {interface=0;}
32 ~PrivatePrintInterface() {}
33 PrintDCOPInterface *interface;
40unsigned int PrintInterface::globalPrintInterfaceNumber = 0;
42PrintInterface::PrintInterface()
44 globalPrintInterfaceNumber++;
45 myPrintInterfaceNumber = globalPrintInterfaceNumber++;
47 d =
new PrivatePrintInterface();
48 TQString
name =
"PrintInterface#" + TQString::number(myPrintInterfaceNumber);
49 d->interface =
new PrintDCOPInterface(
this,
name.latin1());
52PrintInterface::~PrintInterface()
58unsigned int PrintInterface::printInterfaceNumber ()
const
60 return myPrintInterfaceNumber;
63void PrintInterface::setPrintInterfaceDCOPSuffix (
const TQCString &suffix)
65 d->interface->setObjId (
"PrintInterface#"+suffix);
73 return dynamic_cast<KTextEditor::PrintInterface*
>(doc);
The main class representing a text document.
This is an interface to printing functions of a Document.
KTextEditor is KDE's standard text editing KPart interface.
TQString name(StdAccel id)