You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdelibs/interfaces/tdetexteditor/clipboarddcopinterface.cpp

41 lines
672 B

#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();
}