Class InsertOperationConsolidator
Consolidates a list of edit operations based on a subsequent insert operation.
Implements
Inherited Members
Namespace: Sdl.DesktopEditor.EditorApi.Implementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class InsertOperationConsolidator : AbstractOperationConsolidator, IEditOperationVisitor
Remarks
To use, construct from the subsequent edit operation and call ApplyTo(List<IAbstractEditOperation>) with the list of preceding edit operations to be updated. The subsequent operation will be added to the end of the list of operations if appropriate.
Constructors
InsertOperationConsolidator(IInsertNodeOperation)
Construct from a subsequent insert operation
Declaration
public InsertOperationConsolidator(IInsertNodeOperation subsequentInsert)
Parameters
Type | Name | Description |
---|---|---|
IInsertNodeOperation | subsequentInsert |
Remarks
To use, construct from the subsequent edit operation and call ApplyTo(List<IAbstractEditOperation>) with the list of preceding edit operations to be updated. The subsequent operation will be added to the end of the list of operations if appropriate.
Methods
VisitChangeGhostStatusOperation(IChangeGhostStatusOperation)
consolidate with a preceding ghost status change
Declaration
public override void VisitChangeGhostStatusOperation(IChangeGhostStatusOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChangeGhostStatusOperation | operation |
Overrides
Remarks
To use, construct from the subsequent edit operation and call ApplyTo(List<IAbstractEditOperation>) with the list of preceding edit operations to be updated. The subsequent operation will be added to the end of the list of operations if appropriate.
VisitChangeTextOperation(IChangeTextOperation)
consolidate with a preceding text change
Declaration
public override void VisitChangeTextOperation(IChangeTextOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChangeTextOperation | operation |
Overrides
Remarks
To use, construct from the subsequent edit operation and call ApplyTo(List<IAbstractEditOperation>) with the list of preceding edit operations to be updated. The subsequent operation will be added to the end of the list of operations if appropriate.
VisitDeleteNodeOperation(IDeleteNodeOperation)
consolidate with preceding delete
Declaration
public override void VisitDeleteNodeOperation(IDeleteNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IDeleteNodeOperation | operation |
Overrides
Remarks
To use, construct from the subsequent edit operation and call ApplyTo(List<IAbstractEditOperation>) with the list of preceding edit operations to be updated. The subsequent operation will be added to the end of the list of operations if appropriate.
VisitInsertNodeOperation(IInsertNodeOperation)
consolidate with a preceding insert
Declaration
public override void VisitInsertNodeOperation(IInsertNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IInsertNodeOperation | operation |
Overrides
Remarks
To use, construct from the subsequent edit operation and call ApplyTo(List<IAbstractEditOperation>) with the list of preceding edit operations to be updated. The subsequent operation will be added to the end of the list of operations if appropriate.