summaryrefslogtreecommitdiffstats
path: root/interfaces/tdetexteditor/clipboarddcopinterface.cpp
blob: 334046ee59aa1b39fa21944dfe4b2f9311870fa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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();
    }