# PasteUndoEntry

## Constructors

### constructor 

\+ **new PasteUndoEntry**(`targetLeftCorner`: [SimpleCellAddress](../interfaces/simplecelladdress.md), `oldContent`: [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][], `newContent`: [ClipboardCell](../globals.md#clipboardcell)[][], `addedGlobalNamedExpressions`: string[]): *[PasteUndoEntry](pasteundoentry.md)*

*Defined in [hyperformula/src/UndoRedo.ts:371](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L371)*

**Parameters:**

Name | Type |
------ | ------ |
`targetLeftCorner` | [SimpleCellAddress](../interfaces/simplecelladdress.md) |
`oldContent` | [[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][] |
`newContent` | [ClipboardCell](../globals.md#clipboardcell)[][] |
`addedGlobalNamedExpressions` | string[] |

**Returns:** *[PasteUndoEntry](pasteundoentry.md)*

## Properties

### addedGlobalNamedExpressions

• **addedGlobalNamedExpressions**: *string[]*

*Defined in [hyperformula/src/UndoRedo.ts:376](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L376)*

___

### newContent

• **newContent**: *[ClipboardCell](../globals.md#clipboardcell)[][]*

*Defined in [hyperformula/src/UndoRedo.ts:375](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L375)*

___

### oldContent

• **oldContent**: *[[SimpleCellAddress](../interfaces/simplecelladdress.md), [ClipboardCell](../globals.md#clipboardcell)][]*

*Defined in [hyperformula/src/UndoRedo.ts:374](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L374)*

___

### targetLeftCorner

• **targetLeftCorner**: *[SimpleCellAddress](../interfaces/simplecelladdress.md)*

*Defined in [hyperformula/src/UndoRedo.ts:373](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L373)*

## Methods

### doRedo 

▸ **doRedo**(`undoRedo`: [UndoRedo](undoredo.md)): *void*

*Defined in [hyperformula/src/UndoRedo.ts:385](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L385)*

**Parameters:**

Name | Type |
------ | ------ |
`undoRedo` | [UndoRedo](undoredo.md) |

**Returns:** *void*

___

### doUndo 

▸ **doUndo**(`undoRedo`: [UndoRedo](undoredo.md)): *void*

*Defined in [hyperformula/src/UndoRedo.ts:381](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L381)*

**Parameters:**

Name | Type |
------ | ------ |
`undoRedo` | [UndoRedo](undoredo.md) |

**Returns:** *void*

___

### getReferencedOldDataVersions 

▸ **getReferencedOldDataVersions**(): *number[]*

*Defined in [hyperformula/src/UndoRedo.ts:42](https://github.com/handsontable/hyperformula/blob/7aecb9f/hyperformula/src/UndoRedo.ts#L42)*

Returns LazilyTransformingAstService version keys referenced by this entry's oldData.
Default implementation returns empty — override in entries that store oldData.

**Returns:** *number[]*