Exemplo n.º 1
0
		void OnDocumentChanged(TextDocument oldValue, TextDocument newValue)
		{
			if (oldValue != null) {
				TextDocumentWeakEventManager.Changing.RemoveListener(oldValue, this);
				TextDocumentWeakEventManager.Changed.RemoveListener(oldValue, this);
				TextDocumentWeakEventManager.UpdateStarted.RemoveListener(oldValue, this);
			}
			if (newValue != null) {
				TextDocumentWeakEventManager.Changing.AddListener(newValue, this);
				TextDocumentWeakEventManager.Changed.AddListener(newValue, this);
				TextDocumentWeakEventManager.UpdateStarted.AddListener(newValue, this);
			}
			CommandManager.InvalidateRequerySuggested();
		}
Exemplo n.º 2
0
		protected virtual void OnDocumentChanged(TextDocument oldDocument, TextDocument newDocument) 
		{ 
			//TODO: AbstractMargin.OnDocumentChanged()
			throw new NotImplementedException();
		}
Exemplo n.º 3
0
		public TextAnchorTree(TextDocument document)
		{
		}
		public DocumentHighlighter(TextDocument document, HighlightingRuleSet ruleSet)
		{
		}
Exemplo n.º 5
0
		public HeightTree(TextDocument document, double defaultLineHeight)
		{
		}
Exemplo n.º 6
0
		internal DocumentLine(TextDocument document)
		{
		}
		public DocumentChangeOperation(TextDocument document, int offset, string removedText, string insertedText)
		{
		}
Exemplo n.º 8
0
		public AnchorSegment(TextDocument document, int offset, int length)
		{
			
		}
Exemplo n.º 9
0
		TextDocument GetOrCreateDocument()
		{
			var doc = this.Document;
			if (doc == null) {
				doc = new TextDocument();
				this.Document = doc;
			}
			return doc;
		}
Exemplo n.º 10
0
		public FoldingManager(TextView textView, TextDocument document)
		{
			this.textView = textView;
			this.document = document;
		}
Exemplo n.º 11
0
		public AnchorSegment(TextDocument document, ISegment segment)
			: this(document, segment.Offset, segment.Length)
		{
		}
Exemplo n.º 12
0
		public virtual string GetText(TextDocument document) 
		{ 
			//TODO: Selection.GetText()
			throw new NotImplementedException();
		}
Exemplo n.º 13
0
		public virtual bool GetIsMultiline(TextDocument document) 
		{ 
			//TODO: Selection.GetIsMultiline()
			throw new NotImplementedException();
		}
Exemplo n.º 14
0
		public TextAnchor(TextDocument document)
		{
		}
Exemplo n.º 15
0
		internal void AttachToDocument(TextDocument document) 
		{ 
			//TODO: UndoStack.AttachToDocument()
			throw new NotImplementedException();
		}
Exemplo n.º 16
0
			public ChangeBlock(TextDocument document)
			{
				this.document = document;
				document.BeginUpdate();
			}
Exemplo n.º 17
0
		protected override void OnDocumentChanged(TextDocument oldDocument, TextDocument newDocument)
		{
			base.OnDocumentChanged(oldDocument, newDocument);
		}
Exemplo n.º 18
0
		public WeakLineTracker(TextDocument document, ILineTracker tracker)
		{
		}
Exemplo n.º 19
0
		public LineManager(GapTextBuffer textBuffer, DocumentLineTree documentLineTree, TextDocument document)
		{
		}
			public TextViewDocumentHighlighter(HighlightingColorizer colorizer, TextDocument document, HighlightingRuleSet ruleSet)
				: base(document, ruleSet)
			{
				
			}