Exemple #1
0
 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 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));
        }
Exemple #4
0
 public UndoRemoveTextCommand(ITextViewReadonly textViewReader, ICaretViewReadonly caretViewReader) : base(textViewReader, caretViewReader)
 {
 }
Exemple #5
0
 public TextSelectionAlgorithm(ICaretViewReadonly caretViewReader, ITextViewReadonly textViewReader, SelectionView parent)
 {
     this.caretViewReader = caretViewReader;
     this.textViewReader  = textViewReader;
     this.parent          = parent;
 }
 public UndoRemoveTextCommand(ITextViewReadonly textViewReader, ICaretViewReadonly caretViewReader) : base(textViewReader, caretViewReader) { }
 public BaseTextViewCommand(ITextViewReadonly textViewReader, ICaretViewReadonly caretViewReader) {
     this.textViewReader = textViewReader;
     this.caretViewReader = caretViewReader;
     BeforeCommandExecutedState = new ViewState();
     AfterCommandExecutedState = new ViewState();
 }
 public TextSelectionAlgorithm(ICaretViewReadonly caretViewReader, ITextViewReadonly textViewReader, SelectionView parent) {
     this.caretViewReader = caretViewReader;
     this.textViewReader = textViewReader;
     this.parent = parent;
 }