summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/clipboardinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/ktexteditor/clipboardinterface.cpp')
-rw-r--r--interfaces/ktexteditor/clipboardinterface.cpp56
1 files changed, 0 insertions, 56 deletions
diff --git a/interfaces/ktexteditor/clipboardinterface.cpp b/interfaces/ktexteditor/clipboardinterface.cpp
deleted file mode 100644
index 89f92d089..000000000
--- a/interfaces/ktexteditor/clipboardinterface.cpp
+++ /dev/null
@@ -1,56 +0,0 @@
-#include "clipboardinterface.h"
-#include "clipboarddcopinterface.h"
-
-#include "view.h"
-
-using namespace KTextEditor;
-
-namespace KTextEditor
-{
- class PrivateClipboardInterface
- {
- public:
- PrivateClipboardInterface()
- {
- interface = 0;
- }
- ~PrivateClipboardInterface(){}
- // Data Members
- ClipboardDCOPInterface *interface;
- };
-
-}
-
-unsigned int ClipboardInterface::globalClipboardInterfaceNumber = 0;
-
-ClipboardInterface::ClipboardInterface()
-{
- d = new PrivateClipboardInterface();
- globalClipboardInterfaceNumber++;
- myClipboardInterfaceNumber = globalClipboardInterfaceNumber++;
- TQString name = "ClipboardInterface#" + TQString::number(myClipboardInterfaceNumber);
- d->interface = new ClipboardDCOPInterface(this, name.latin1());
-}
-ClipboardInterface::~ClipboardInterface()
-{
- delete d->interface;
- delete d;
-}
-
-unsigned int ClipboardInterface::clipboardInterfaceNumber () const
-{
- return myClipboardInterfaceNumber;
-}
-
-void ClipboardInterface::setClipboardInterfaceDCOPSuffix (const TQCString &suffix)
-{
- d->interface->setObjId ("ClipboardInterface#"+suffix);
-}
-
-ClipboardInterface *KTextEditor::clipboardInterface (View *view)
-{
- if (!view)
- return 0;
-
- return dynamic_cast<KTextEditor::ClipboardInterface*>(view);
-}