public BaseTextViewCommand(ITextViewReadonly textViewReader, ICaretViewReadonly caretViewReader) { this.textViewReader = textViewReader; this.caretViewReader = caretViewReader; BeforeCommandExecutedState = new ViewState(); AfterCommandExecutedState = new ViewState(); }
public TextView(ICaretViewReadonly caretViewReader) { updatingAlgorithm = new TextUpdatingAlgorithm(); removingAlgorithm = new TextRemovingAlgorithm(); collapsingAlgorithm = new TextCollapsingAlgorithm(); parsingAlgorithm = new TextParsingAlgorithm(); this.caretViewReader = caretViewReader; visuals.Add(new SingleVisualTextLine(new SimpleTextSource(string.Empty, TextConfiguration.GetGlobalTextRunProperties()), 0)); }
public UndoRemoveTextCommand(ITextViewReadonly textViewReader, ICaretViewReadonly caretViewReader) : base(textViewReader, caretViewReader) { }
public TextSelectionAlgorithm(ICaretViewReadonly caretViewReader, ITextViewReadonly textViewReader, SelectionView parent) { this.caretViewReader = caretViewReader; this.textViewReader = textViewReader; this.parent = parent; }