summaryrefslogtreecommitdiffstats
path: root/interfaces/tdetexteditor/undodcopinterface.cpp
blob: 69eb2ebd5519be37ce3bafb2f5e01c9c1124055c (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "undodcopinterface.h"
#include "undointerface.h"

#include <dcopclient.h>
using namespace KTextEditor;

UndoDCOPInterface::UndoDCOPInterface( UndoInterface *Parent, const char *name)
	: DCOPObject(name)
{
	m_parent = Parent;
}

UndoDCOPInterface::~UndoDCOPInterface()
{

}

uint UndoDCOPInterface::undoInterfaceNumber ()
{
	return m_parent->undoInterfaceNumber();
}
void UndoDCOPInterface::undo ()
{
	m_parent->undo();
}
void UndoDCOPInterface::redo () 
{
	m_parent->redo();
}
void UndoDCOPInterface::clearUndo () 
{
	m_parent->clearUndo();
}
void UndoDCOPInterface::clearRedo () 
{
	m_parent->clearRedo();
}
uint UndoDCOPInterface::undoCount () 
{
	return m_parent->undoCount();
}
uint UndoDCOPInterface::redoCount ()
{
	return m_parent->redoCount();
}
uint UndoDCOPInterface::undoSteps ()
{
	return m_parent->undoSteps();
}
void UndoDCOPInterface::setUndoSteps ( uint steps )
{
	m_parent->setUndoSteps(steps);
}
void UndoDCOPInterface::undoChanged ()
{
	m_parent->undoChanged();
}