Class ChangeTextConsolidator
Consolidates a list of edit operations based on a subsequent text change operation.
Implements
Inherited Members
Namespace: Sdl.DesktopEditor.EditorApi.Implementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class ChangeTextConsolidator : 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
ChangeTextConsolidator(IChangeTextOperation)
construct from a subsequent text change operation
Declaration
public ChangeTextConsolidator(IChangeTextOperation subsequentOperation)
Parameters
Type | Name | Description |
---|---|---|
IChangeTextOperation | subsequentOperation |
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.