1 implementation of IParentUndoUnit
PresentationFramework (1)
src\Framework\MS\Internal\Documents\ParentUndoUnit.cs (1)
27
internal class ParentUndoUnit :
IParentUndoUnit
63 references to IParentUndoUnit
PresentationFramework (63)
src\Framework\MS\Internal\Documents\IParentUndoUnit.cs (3)
53
void Open(
IParentUndoUnit
newUnit);
65
void Close(
IParentUndoUnit
closingUnit, UndoCloseAction closeAction);
111
IParentUndoUnit
OpenedUnit
src\Framework\MS\Internal\Documents\ParentUndoUnit.cs (29)
67
public virtual void Open(
IParentUndoUnit
newUnit)
69
IParentUndoUnit
deepestOpen;
124
public virtual void Close(
IParentUndoUnit
unit, UndoCloseAction closeAction)
141
IParentUndoUnit
closeParent;
183
((
IParentUndoUnit
)OpenedUnit).Do();
195
((
IParentUndoUnit
)TopContainer).OnNextDiscard();
211
IParentUndoUnit
openedUnit = OpenedUnit;
237
IParentUndoUnit
parentUndoUnit;
266
if (LastUnit is
IParentUndoUnit
)
268
((
IParentUndoUnit
)LastUnit).OnNextAdd();
304
if (unit is
IParentUndoUnit
)
306
((
IParentUndoUnit
)unit).OnNextAdd();
317
IParentUndoUnit
lastParent = this;
320
if (unit is
IParentUndoUnit
)
322
lastParent = unit as
IParentUndoUnit
;
338
IParentUndoUnit
redo;
419
public
IParentUndoUnit
OpenedUnit
465
if (!(value is
IParentUndoUnit
|| value is UndoManager))
515
protected void SetOpenedUnit(
IParentUndoUnit
value)
537
protected virtual
IParentUndoUnit
CreateParentUndoUnitForSelf()
556
protected
IParentUndoUnit
DeepestOpenUnit
560
IParentUndoUnit
openedUnit;
584
while (container is
IParentUndoUnit
&& ((
IParentUndoUnit
)container).Container != null)
586
container = ((
IParentUndoUnit
)container).Container;
622
if (unit is
IParentUndoUnit
)
624
IParentUndoUnit
parent;
634
parent = parent.Container as
IParentUndoUnit
;
658
private
IParentUndoUnit
_openedUnit;
src\Framework\MS\Internal\Documents\UndoManager.cs (20)
211
internal void Open(
IParentUndoUnit
unit)
213
IParentUndoUnit
deepestOpen;
265
internal void Reopen(
IParentUndoUnit
unit)
297
if (RedoStack.Count == 0 || (
IParentUndoUnit
)RedoStack.Peek() != unit)
344
internal void Close(
IParentUndoUnit
unit, UndoCloseAction closeAction)
364
IParentUndoUnit
closeParent;
440
IParentUndoUnit
parent;
457
else if (unit is
IParentUndoUnit
)
459
((
IParentUndoUnit
)unit).Container = this;
460
if (LastUnit is
IParentUndoUnit
)
462
((
IParentUndoUnit
)LastUnit).OnNextAdd();
663
IParentUndoUnit
lastParent = (
IParentUndoUnit
)PeekUndoStack();
865
internal
IParentUndoUnit
OpenedUnit
892
internal
IParentUndoUnit
LastReopenedUnit
1058
protected void SetOpenedUnit(
IParentUndoUnit
value)
1077
protected
IParentUndoUnit
DeepestOpenUnit
1081
IParentUndoUnit
openedUnit;
1205
private
IParentUndoUnit
_openedUnit;
1211
private
IParentUndoUnit
_lastReopenedUnit;
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (4)
387
IParentUndoUnit
openedUnit = undoManager.OpenedUnit;
394
if (openedUnit.LastUnit is
IParentUndoUnit
)
399
else if (undoManager.LastUnit is
IParentUndoUnit
)
401
((
IParentUndoUnit
)undoManager.LastUnit).OnNextAdd(); // TODO: Should IParentUndoUnit have a Lock() instead, now that Undo is internal?
src\Framework\System\Windows\Documents\ChangeBlockUndoRecord.cs (3)
83
IParentUndoUnit
openedUnit;
91
openedUnit = ((
IParentUndoUnit
)_parentUndoUnit.Container).OpenedUnit;
119
private readonly
IParentUndoUnit
_parentUndoUnit;
src\Framework\System\Windows\Documents\ColumnResizeUndoUnit.cs (1)
45
IParentUndoUnit
redo;
src\Framework\System\windows\Documents\TextEditor.cs (1)
2083
internal
IParentUndoUnit
_typingUndoUnit;
src\Framework\System\Windows\Documents\TextParentUndoUnit.cs (1)
152
protected override
IParentUndoUnit
CreateParentUndoUnitForSelf()
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (1)
1770
IParentUndoUnit
columnResizeUndoUnit = new ColumnResizeUndoUnit(table.ContentStart, columnIndex, _columnWidths, dx);