summaryrefslogtreecommitdiffstats
path: root/interfaces/ktexteditor/clipboarddcopinterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/ktexteditor/clipboarddcopinterface.cpp')
-rw-r--r--interfaces/ktexteditor/clipboarddcopinterface.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/interfaces/ktexteditor/clipboarddcopinterface.cpp b/interfaces/ktexteditor/clipboarddcopinterface.cpp
new file mode 100644
index 000000000..334046ee5
--- /dev/null
+++ b/interfaces/ktexteditor/clipboarddcopinterface.cpp
@@ -0,0 +1,40 @@
+#include "clipboarddcopinterface.h"
+#include "clipboardinterface.h"
+
+#include <dcopclient.h>
+using namespace KTextEditor;
+
+ClipboardDCOPInterface::ClipboardDCOPInterface( ClipboardInterface *Parent, const char *name)
+ : DCOPObject(name)
+{
+ m_parent = Parent;
+}
+
+ClipboardDCOPInterface::~ClipboardDCOPInterface()
+{
+
+}
+
+ /**
+ * Copies selected text.
+ */
+ void ClipboardDCOPInterface::copy ( )
+ {
+ m_parent->copy();
+ }
+
+ /**
+ * Cuts selected text.
+ */
+ void ClipboardDCOPInterface::cut ( )
+ {
+ m_parent->cut();
+ }
+
+ /**
+ * Pastes text from clipboard.
+ */
+ void ClipboardDCOPInterface::paste ( )
+ {
+ m_parent->paste();
+ }