1 implementation of IParentUndoUnit
PresentationFramework (1)
MS\Internal\Documents\ParentUndoUnit.cs (1)
19
internal class ParentUndoUnit :
IParentUndoUnit
63 references to IParentUndoUnit
PresentationFramework (63)
MS\Internal\Documents\IParentUndoUnit.cs (3)
43
void Open(
IParentUndoUnit
newUnit);
55
void Close(
IParentUndoUnit
closingUnit, UndoCloseAction closeAction);
101
IParentUndoUnit
OpenedUnit
MS\Internal\Documents\ParentUndoUnit.cs (29)
59
public virtual void Open(
IParentUndoUnit
newUnit)
61
IParentUndoUnit
deepestOpen;
113
public virtual void Close(
IParentUndoUnit
unit, UndoCloseAction closeAction)
127
IParentUndoUnit
closeParent;
169
((
IParentUndoUnit
)OpenedUnit).Do();
181
((
IParentUndoUnit
)TopContainer).OnNextDiscard();
197
IParentUndoUnit
openedUnit = OpenedUnit;
223
IParentUndoUnit
parentUndoUnit;
249
if (LastUnit is
IParentUndoUnit
)
251
((
IParentUndoUnit
)LastUnit).OnNextAdd();
287
if (unit is
IParentUndoUnit
)
289
((
IParentUndoUnit
)unit).OnNextAdd();
300
IParentUndoUnit
lastParent = this;
303
if (unit is
IParentUndoUnit
)
305
lastParent = unit as
IParentUndoUnit
;
321
IParentUndoUnit
redo;
402
public
IParentUndoUnit
OpenedUnit
448
if (!(value is
IParentUndoUnit
|| value is UndoManager))
498
protected void SetOpenedUnit(
IParentUndoUnit
value)
520
protected virtual
IParentUndoUnit
CreateParentUndoUnitForSelf()
539
protected
IParentUndoUnit
DeepestOpenUnit
543
IParentUndoUnit
openedUnit;
567
while (container is
IParentUndoUnit
&& ((
IParentUndoUnit
)container).Container != null)
569
container = ((
IParentUndoUnit
)container).Container;
605
if (unit is
IParentUndoUnit
)
607
IParentUndoUnit
parent;
617
parent = parent.Container as
IParentUndoUnit
;
641
private
IParentUndoUnit
_openedUnit;
MS\Internal\Documents\UndoManager.cs (20)
185
internal void Open(
IParentUndoUnit
unit)
187
IParentUndoUnit
deepestOpen;
236
internal void Reopen(
IParentUndoUnit
unit)
265
if (RedoStack.Count == 0 || (
IParentUndoUnit
)RedoStack.Peek() != unit)
312
internal void Close(
IParentUndoUnit
unit, UndoCloseAction closeAction)
329
IParentUndoUnit
closeParent;
405
IParentUndoUnit
parent;
419
else if (unit is
IParentUndoUnit
)
421
((
IParentUndoUnit
)unit).Container = this;
422
if (LastUnit is
IParentUndoUnit
)
424
((
IParentUndoUnit
)LastUnit).OnNextAdd();
621
IParentUndoUnit
lastParent = (
IParentUndoUnit
)PeekUndoStack();
823
internal
IParentUndoUnit
OpenedUnit
850
internal
IParentUndoUnit
LastReopenedUnit
1016
protected void SetOpenedUnit(
IParentUndoUnit
value)
1035
protected
IParentUndoUnit
DeepestOpenUnit
1039
IParentUndoUnit
openedUnit;
1163
private
IParentUndoUnit
_openedUnit;
1169
private
IParentUndoUnit
_lastReopenedUnit;
System\Windows\Controls\Primitives\TextBoxBase.cs (4)
355
IParentUndoUnit
openedUnit = undoManager.OpenedUnit;
362
if (openedUnit.LastUnit is
IParentUndoUnit
)
367
else if (undoManager.LastUnit is
IParentUndoUnit
)
369
((
IParentUndoUnit
)undoManager.LastUnit).OnNextAdd(); // Should IParentUndoUnit have a Lock() instead, now that Undo is internal?
System\Windows\Documents\ChangeBlockUndoRecord.cs (3)
81
IParentUndoUnit
openedUnit;
89
openedUnit = ((
IParentUndoUnit
)_parentUndoUnit.Container).OpenedUnit;
117
private readonly
IParentUndoUnit
_parentUndoUnit;
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
39
IParentUndoUnit
redo;
System\windows\Documents\TextEditor.cs (1)
2026
internal
IParentUndoUnit
_typingUndoUnit;
System\Windows\Documents\TextParentUndoUnit.cs (1)
136
protected override
IParentUndoUnit
CreateParentUndoUnitForSelf()
System\Windows\Documents\TextRangeEditTables.cs (1)
1765
IParentUndoUnit
columnResizeUndoUnit = new ColumnResizeUndoUnit(table.ContentStart, columnIndex, _columnWidths, dx);