Class DeleteOperationConsolidator
Consolidates a list of edit operations based on a subsequent delete operation.
Implements
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApiImplementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class DeleteOperationConsolidator : 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 delete will be added to the end of the list of operations if appropriate.
Constructors
DeleteOperationConsolidator(IDeleteNodeOperation)
Construct froma subsequent delete operation.
Declaration
public DeleteOperationConsolidator(IDeleteNodeOperation subsequentDelete)
Parameters
Type | Name | Description |
---|---|---|
IDeleteNodeOperation | subsequentDelete |
Methods
VisitChangeGhostStatusOperation(IChangeGhostStatusOperation)
consolidate with preceding ghost status change
Declaration
public override void VisitChangeGhostStatusOperation(IChangeGhostStatusOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChangeGhostStatusOperation | operation |
Overrides
VisitChangeTextOperation(IChangeTextOperation)
consolidate with preceding text change operation
Declaration
public override void VisitChangeTextOperation(IChangeTextOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IChangeTextOperation | operation |
Overrides
VisitDeleteNodeOperation(IDeleteNodeOperation)
consolidate with preceding delete operation
Declaration
public override void VisitDeleteNodeOperation(IDeleteNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IDeleteNodeOperation | operation |
Overrides
VisitInsertNodeOperation(IInsertNodeOperation)
consolidate with preceding insert operation
Declaration
public override void VisitInsertNodeOperation(IInsertNodeOperation operation)
Parameters
Type | Name | Description |
---|---|---|
IInsertNodeOperation | operation |