Class AbstractOperationConsolidator
Base class for operation consolidators. Derive from this
class to save some implementation work.
Inheritance
System.Object
AbstractOperationConsolidator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public abstract class AbstractOperationConsolidator : IEditOperationVisitor
Constructors
AbstractOperationConsolidator(IAbstractEditOperation)
Declaration
public AbstractOperationConsolidator(IAbstractEditOperation thisOperation)
Parameters
Properties
AddThisOperationToList
When set to true this edit operation will be added to the end of the preceding
edit operations after consolidation. Set this to false
if this operation
is compensated for by consolidations.
Declaration
protected bool AddThisOperationToList { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
OperationsToRemove
edit operations that should be removed as part of the consolidation.
Declaration
protected List<IAbstractEditOperation> OperationsToRemove { get; set; }
Property Value
PrecedingOperations
preceding edit operations
Declaration
protected List<IAbstractEditOperation> PrecedingOperations { get; set; }
Property Value
ThisOperation
the subsequent operation being evaluated against the list of preceding operations
Declaration
protected IAbstractEditOperation ThisOperation { get; set; }
Property Value
Methods
ApplyTo(List<IAbstractEditOperation>)
Apply the delete operation to the list of preceding operations to
consolidate it as appropriate.
Declaration
public void ApplyTo(List<IAbstractEditOperation> precedingOperations)
Parameters
IsParentNode(INode, INode)
helper to determine if a node is a parent node of another node
Declaration
public static bool IsParentNode(INode nodeToTest, INode referenceNode)
Parameters
Type |
Name |
Description |
INode |
nodeToTest |
|
INode |
referenceNode |
|
Returns
Type |
Description |
System.Boolean |
|
IsSameOrParentNode(INode, INode)
helper to determine if a node is the same or a parent node of another node
Declaration
public static bool IsSameOrParentNode(INode nodeToTest, INode referenceNode)
Parameters
Type |
Name |
Description |
INode |
nodeToTest |
|
INode |
referenceNode |
|
Returns
Type |
Description |
System.Boolean |
|
VisitChangeGhostStatusOperation(IChangeGhostStatusOperation)
implement by consolidating this operation with a preceding ghost status change
Declaration
public abstract void VisitChangeGhostStatusOperation(IChangeGhostStatusOperation operation)
Parameters
VisitChangeTextOperation(IChangeTextOperation)
implement by consolidating this operation with a preceding text change
Declaration
public abstract void VisitChangeTextOperation(IChangeTextOperation operation)
Parameters
VisitDeleteNodeOperation(IDeleteNodeOperation)
implement by consolidating this operation with a preceding delete
Declaration
public abstract void VisitDeleteNodeOperation(IDeleteNodeOperation operation)
Parameters
VisitInsertNodeOperation(IInsertNodeOperation)
implement by consolidating this operation with a preceding insert
Declaration
public abstract void VisitInsertNodeOperation(IInsertNodeOperation operation)
Parameters
Implements
Extension Methods