1 implementation of IParentUndoUnit
PresentationFramework (1)
MS\Internal\Documents\ParentUndoUnit.cs (1)
21
internal class ParentUndoUnit :
IParentUndoUnit
63 references to IParentUndoUnit
PresentationFramework (63)
MS\Internal\Documents\IParentUndoUnit.cs (3)
47
void Open(
IParentUndoUnit
newUnit);
59
void Close(
IParentUndoUnit
closingUnit, UndoCloseAction closeAction);
105
IParentUndoUnit
OpenedUnit
MS\Internal\Documents\ParentUndoUnit.cs (29)
61
public virtual void Open(
IParentUndoUnit
newUnit)
63
IParentUndoUnit
deepestOpen;
115
public virtual void Close(
IParentUndoUnit
unit, UndoCloseAction closeAction)
129
IParentUndoUnit
closeParent;
171
((
IParentUndoUnit
)OpenedUnit).Do();
183
((
IParentUndoUnit
)TopContainer).OnNextDiscard();
199
IParentUndoUnit
openedUnit = OpenedUnit;
225
IParentUndoUnit
parentUndoUnit;
251
if (LastUnit is
IParentUndoUnit
)
253
((
IParentUndoUnit
)LastUnit).OnNextAdd();
289
if (unit is
IParentUndoUnit
)
291
((
IParentUndoUnit
)unit).OnNextAdd();
302
IParentUndoUnit
lastParent = this;
305
if (unit is
IParentUndoUnit
)
307
lastParent = unit as
IParentUndoUnit
;
323
IParentUndoUnit
redo;
404
public
IParentUndoUnit
OpenedUnit
450
if (!(value is
IParentUndoUnit
|| value is UndoManager))
500
protected void SetOpenedUnit(
IParentUndoUnit
value)
522
protected virtual
IParentUndoUnit
CreateParentUndoUnitForSelf()
541
protected
IParentUndoUnit
DeepestOpenUnit
545
IParentUndoUnit
openedUnit;
569
while (container is
IParentUndoUnit
&& ((
IParentUndoUnit
)container).Container != null)
571
container = ((
IParentUndoUnit
)container).Container;
607
if (unit is
IParentUndoUnit
)
609
IParentUndoUnit
parent;
619
parent = parent.Container as
IParentUndoUnit
;
643
private
IParentUndoUnit
_openedUnit;
MS\Internal\Documents\UndoManager.cs (20)
194
internal void Open(
IParentUndoUnit
unit)
196
IParentUndoUnit
deepestOpen;
245
internal void Reopen(
IParentUndoUnit
unit)
274
if (RedoStack.Count == 0 || (
IParentUndoUnit
)RedoStack.Peek() != unit)
321
internal void Close(
IParentUndoUnit
unit, UndoCloseAction closeAction)
338
IParentUndoUnit
closeParent;
414
IParentUndoUnit
parent;
428
else if (unit is
IParentUndoUnit
)
430
((
IParentUndoUnit
)unit).Container = this;
431
if (LastUnit is
IParentUndoUnit
)
433
((
IParentUndoUnit
)LastUnit).OnNextAdd();
630
IParentUndoUnit
lastParent = (
IParentUndoUnit
)PeekUndoStack();
832
internal
IParentUndoUnit
OpenedUnit
859
internal
IParentUndoUnit
LastReopenedUnit
1025
protected void SetOpenedUnit(
IParentUndoUnit
value)
1044
protected
IParentUndoUnit
DeepestOpenUnit
1048
IParentUndoUnit
openedUnit;
1172
private
IParentUndoUnit
_openedUnit;
1178
private
IParentUndoUnit
_lastReopenedUnit;
System\Windows\Controls\Primitives\TextBoxBase.cs (4)
364
IParentUndoUnit
openedUnit = undoManager.OpenedUnit;
371
if (openedUnit.LastUnit is
IParentUndoUnit
)
376
else if (undoManager.LastUnit is
IParentUndoUnit
)
378
((
IParentUndoUnit
)undoManager.LastUnit).OnNextAdd(); // Should IParentUndoUnit have a Lock() instead, now that Undo is internal?
System\Windows\Documents\ChangeBlockUndoRecord.cs (3)
83
IParentUndoUnit
openedUnit;
91
openedUnit = ((
IParentUndoUnit
)_parentUndoUnit.Container).OpenedUnit;
119
private readonly
IParentUndoUnit
_parentUndoUnit;
System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
39
IParentUndoUnit
redo;
System\windows\Documents\TextEditor.cs (1)
2032
internal
IParentUndoUnit
_typingUndoUnit;
System\Windows\Documents\TextParentUndoUnit.cs (1)
147
protected override
IParentUndoUnit
CreateParentUndoUnitForSelf()
System\Windows\Documents\TextRangeEditTables.cs (1)
1767
IParentUndoUnit
columnResizeUndoUnit = new ColumnResizeUndoUnit(table.ContentStart, columnIndex, _columnWidths, dx);