protected abstract void ColorizeLine(DocumentLine line);
		internal HeightTreeNode(DocumentLine line, double height)
		{
			
		}
		public void SetLineLength(DocumentLine line, int newTotalLength)
		{
			throw new NotImplementedException();
		}
		public void LineInserted(DocumentLine line, DocumentLine newLine)
		{
			throw new NotImplementedException();
		}
		protected virtual void OnHighlightStateChanged(DocumentLine line, int lineNumber) 
		{ 
			//TODO: DocumentHighlighter.OnHighlightStateChanged()
			throw new NotImplementedException();
		}
		public void BeforeRemoveLine(DocumentLine line)
		{
			throw new NotImplementedException();
		}
Example #7
0
		public void SetHeight(DocumentLine line, double value) 
		{ 
			//TODO: HeightTree.SetHeight()
			throw new NotImplementedException();
		}
Example #8
0
		public CollapsedLineSection CollapseLines(DocumentLine start, DocumentLine end)
		{
			VerifyAccess();
			return heightTree.CollapseText(start, end);
		}
Example #9
0
		public bool GetIsCollapsed(DocumentLine line) 
		{ 
			//TODO: HeightTree.GetIsCollapsed()
			throw new NotImplementedException();
		}
Example #10
0
		public double GetVisualPosition(DocumentLine line) 
		{ 
			//TODO: HeightTree.GetVisualPosition()
			throw new NotImplementedException();
		}
Example #11
0
		public CollapsedLineSection CollapseText(DocumentLine start, DocumentLine end) 
		{ 
			//TODO: HeightTree.CollapseText()
			throw new NotImplementedException();
		}
Example #12
0
		VisualLine BuildVisualLine(DocumentLine documentLine, TextRunProperties textRunProperties, 
			TextParagraphProperties paragraphProperties, VisualLineElementGenerator[] generators, 
			IVisualLineTransformer[] transformers, Size availableSize)
		{
			if (heightTree.GetIsCollapsed(documentLine)) {
				throw new InvalidOperationException();
			}
			
			var visualLine = new VisualLine(documentLine);
			var textSource = new VisualLineTextSource(visualLine) {
				Document = this.Document,
				GlobalTextRunProperties = textRunProperties,
				TextView = this
			};
			visualLine.ConstructVisualElements(textSource, generators);
			visualLine.RunTransformers(textSource, transformers);
			
			int offset = 0;
			TextLineBreak lineBreak = null;
			var textLines = new List<TextLine>();
			while (offset <= visualLine.VisualLength) {
				TextLine tl = textFormatter.FormatLine(textSource, offset, 
					              availableSize.Width, paragraphProperties, lineBreak);
				textLines.Add(tl);
				offset += tl.Length;
				lineBreak = tl.GetTextLineBreak();
			}
			visualLine.SetTextLines(textLines);
			heightTree.SetHeight(visualLine.FirstDocumentLine, visualLine.Height);
			
			return visualLine;
		}
Example #13
0
		public VisualLine GetOrConstructVisualLine(DocumentLine documentLine)
		{
			if (documentLine == null) {
				throw new ArgumentNullException("documentLine");
			}
			if (documentLine.Document != Document) {
				throw new InvalidOperationException();
			}
			VerifyAccess();
			
			VisualLine vl = GetVisualLine(documentLine.LineNumber);
			if (vl == null) {
				var globalTextRunProperties = CreateGlobalTextRunProperties();
				var paragraphProperties = CreateParagraphProperties(globalTextRunProperties);
				while (heightTree.GetIsCollapsed(documentLine)) {
					documentLine = heightTree.GetLineByNumber(documentLine.LineNumber - 1);
				}
				vl = BuildVisualLine(documentLine, globalTextRunProperties, paragraphProperties,
					ElementGenerators.ToArray(), LineTransformers.ToArray(), lastAvailableSize);
				vl.VisualTop = heightTree.GetVisualPosition(documentLine);
				allVisualLines.Add(vl);
			}
			return vl;
		}
		public CollapsedLineSection(HeightTree heightTree, DocumentLine start, DocumentLine end)
		{
		}
		public HighlightedLine HighlightLine(DocumentLine line) 
		{ 
			//TODO: DocumentHighlighter.HighlightLine()
			throw new NotImplementedException();
		}
Example #16
0
		public VisualLine(DocumentLine firstDocumentLine)
		{
		}
		protected override void ColorizeLine(DocumentLine line)
		{
			throw new NotImplementedException();
		}