public TextFormatAction(ISupportsUndo executor, int index, int[] oldFormats, int[] newFormats) : base(executor) { Index = index; OldFormats = oldFormats; NewFormats = newFormats; }
public ModeChangeAction(ISupportsUndo executor, int index, EditorMode[] oldModes, EditorMode[] newModes) : base(executor) { Index = index; OldModes = oldModes; NewModes = newModes; }
public RowContainerAction(ISupportsUndo executor, int index, int childIndexInRow, int caretIndex, EquationRow equation) : base(executor) { Index = index; ChildIndexInRow = childIndexInRow; CaretIndex = caretIndex; Equation = equation; }
public RowAction(ISupportsUndo executor, EquationBase equation, TextEquation equationAfter, int index, int caretIndex) : base(executor) { Index = index; Equation = equation; CaretIndex = caretIndex; EquationAfter = equationAfter; }
public TextAction(ISupportsUndo executor, int index, string text, int[] formats, EditorMode[] modes, CharacterDecorationInfo[] decorations) : base(executor) { Index = index; Text = text; Formats = formats; Modes = modes; Decorations = decorations; }
public TextRemoveAction(ISupportsUndo executor, int index, string text, int selectionStartIndex, int selectionCout, int parentSelectionStartIndex, int[] formats, EditorMode[] modes, CharacterDecorationInfo[] decorations) : base(executor) { Index = index; Text = text; Formats = formats; Modes = modes; Decorations = decorations; SelectionStartIndex = selectionStartIndex; SelectionCount = selectionCout; ParentSelectionStartIndex = parentSelectionStartIndex; }
public DecorationAction(ISupportsUndo executor, CharacterDecorationInfo [] cdi) : base(executor) { CharacterDecorations = cdi; }
public TextAction(ISupportsUndo executor) : base(executor) { }
public EquationAction(ISupportsUndo executor) { Executor = executor; UndoFlag = true; }
public RowRemoveAction(ISupportsUndo executor) : base(executor) { }
public EquationRowFormatAction(ISupportsUndo executor) : base(executor) { }
public RowContainerFormatAction(ISupportsUndo executor) : base(executor) { }
public RowContainerTextAction(ISupportsUndo executor) : base(executor) { }
public EquationRowPasteAction(ISupportsUndo executor) : base(executor) { }
public DecorationAction(ISupportsUndo executor, CharacterDecorationInfo [] cdi, bool added) : base(executor) { Added = added; CharacterDecorations = cdi; }
public RowContainerRemoveAction(ISupportsUndo executor) : base(executor) { }
/// <summary> /// Starts an undo batch, which is ended when this instance is disposed. Designed for use in a using statement. /// </summary> /// <param name="instance">An object that implements ISupportsUndo. The batch will call GetUndoRoot() to get the root.</param> /// <param name="description">The description of this batch of changes.</param> /// <param name="consolidateChangesForSameInstance">Should the batch consolidate changes.</param> public UndoBatch(ISupportsUndo instance, string description, bool consolidateChangesForSameInstance) : this(UndoService.Current[instance.GetUndoRoot()], description, consolidateChangesForSameInstance) { }