clipboarddcopinterface.cpp
#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()
{
}
void ClipboardDCOPInterface::copy ( )
{
m_parent->copy();
}
void ClipboardDCOPInterface::cut ( )
{
m_parent->cut();
}
void ClipboardDCOPInterface::paste ( )
{
m_parent->paste();
}
KTextEditor::ClipboardInterface::copy
virtual void copy() const =0
slots !!!
KTextEditor::ClipboardDCOPInterface::~ClipboardDCOPInterface
virtual ~ClipboardDCOPInterface()
Destructor Cleans up the object.
Definition: clipboarddcopinterface.cpp:13
KTextEditor::ClipboardInterface::paste
virtual void paste()=0
copies selected text
KTextEditor::ClipboardInterface::cut
virtual void cut()=0
copies selected text
KTextEditor::ClipboardDCOPInterface::ClipboardDCOPInterface
ClipboardDCOPInterface(ClipboardInterface *Parent, const char *name)
Construct a new interface object for the text editor.
Definition: clipboarddcopinterface.cpp:7
KTextEditor::ClipboardInterface
This is an interface for accessing the clipboard through the View class.
Definition: clipboardinterface.h:32
KTextEditor::ClipboardDCOPInterface::cut
void cut()
cuts selected text
Definition: clipboarddcopinterface.cpp:29
KTextEditor::ClipboardDCOPInterface::paste
void paste()
pastes selected text
Definition: clipboarddcopinterface.cpp:37
KTextEditor::ClipboardDCOPInterface::copy
void copy()
copies selected text
Definition: clipboarddcopinterface.cpp:21

KDE Home | KDE Accessibility Home | Description of Access Keys