5 types derived from TextTreeNode
PresentationFramework (5)
System\Windows\Documents\TextTreeFixupNode.cs (1)
18
internal class TextTreeFixupNode :
TextTreeNode
System\Windows\Documents\TextTreeObjectNode.cs (1)
17
internal class TextTreeObjectNode :
TextTreeNode
System\Windows\Documents\TextTreeRootNode.cs (1)
21
internal class TextTreeRootNode :
TextTreeNode
System\Windows\Documents\TextTreeTextElementNode.cs (1)
19
internal class TextTreeTextElementNode :
TextTreeNode
System\Windows\Documents\TextTreeTextNode.cs (1)
34
internal class TextTreeTextNode :
TextTreeNode
194 references to TextTreeNode
PresentationFramework (194)
System\Windows\Documents\TextContainer.cs (70)
470
TextTreeNode
node;
507
TextTreeNode
node = (
TextTreeNode
)pointer.Handle0;
534
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
557
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
573
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
589
private
TextTreeNode
GetScopingNode(StaticTextPointer position)
591
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
593
TextTreeNode
scopingNode;
620
TextTreeNode
node = (
TextTreeNode
)position.Handle0;
634
node = (
TextTreeNode
)node.GetContainingNode();
1174
TextTreeNode
objectNode;
1221
TextTreeNode
containingNode;
1379
internal void GetNodeAndEdgeAtCharOffset(int charOffset, out
TextTreeNode
node, out ElementEdge edge)
1459
node = (
TextTreeNode
)node.ContainedNode;
1463
node = (
TextTreeNode
)node.GetSiblingAtCharOffset(charOffset - nodeCharOffset, out siblingTreeCharOffset);
1470
node = (
TextTreeNode
)AdjustForZeroWidthNode(node, edge);
1935
internal
TextTreeNode
FirstContainedNode
1939
return (_rootNode == null) ? null : (
TextTreeNode
)_rootNode.GetFirstContainedNode();
1944
internal
TextTreeNode
LastContainedNode
1948
return (_rootNode == null) ? null : (
TextTreeNode
)_rootNode.GetLastContainedNode();
2206
if (previousNode != null && previousNode.SymbolCount == 0 && !((
TextTreeNode
)previousNode).AfterEndReferenceCount)
2220
if (nextNode != null && nextNode.SymbolCount == 0 && !((
TextTreeNode
)nextNode).BeforeStartReferenceCount)
2282
TextTreeNode
.Join(elementNode, leftSubTree, rightSubTree);
2303
TextTreeNode
previousNode;
2305
TextTreeNode
nextNode;
2334
previousNode = (
TextTreeNode
)leftSubTree.GetMaxSibling();
2339
previousNode = (
TextTreeNode
)containingNode;
2344
nextNode = (
TextTreeNode
)rightSubTree.GetMinSibling();
2349
nextNode = (
TextTreeNode
)containingNode;
2355
AdjustRefCountsForContentDelete(ref previousNode, previousEdge, ref nextNode, nextEdge, (
TextTreeNode
)middleSubTree);
2378
rootNode =
TextTreeNode
.Join(leftSubTree, rightSubTree);
2421
private int CutTopLevelLogicalNodes(
TextTreeNode
containingNode, TextPointer startPosition, TextPointer endPosition, out int charCount)
2530
private void AdjustRefCountsForContentDelete(ref
TextTreeNode
previousNode, ElementEdge previousEdge,
2531
ref
TextTreeNode
nextNode, ElementEdge nextEdge,
2532
TextTreeNode
middleSubTree)
2541
GetReferenceCounts((
TextTreeNode
)middleSubTree.GetMinSibling(), ref leftEdgeReferenceCount, ref rightEdgeReferenceCount);
2548
private void GetReferenceCounts(
TextTreeNode
node, ref bool leftEdgeReferenceCount, ref bool rightEdgeReferenceCount)
2559
GetReferenceCounts((
TextTreeNode
)node.ContainedNode.GetMinSibling(), ref leftEdgeReferenceCount, ref rightEdgeReferenceCount);
2562
node = (
TextTreeNode
)node.GetNextNode();
2585
private void AdjustRefCountsForShallowDelete(ref
TextTreeNode
previousNode, ElementEdge previousEdge,
2586
ref
TextTreeNode
nextNode,ElementEdge nextEdge,
2587
ref
TextTreeNode
firstContainedNode, ref
TextTreeNode
lastContainedNode,
2804
oldLogicalParent = ((
TextTreeNode
)containingNode).GetLogicalTreeNode();
2974
TextTreeNode
previousNode;
2976
TextTreeNode
nextNode;
2982
TextTreeNode
firstContainedNode;
2983
TextTreeNode
lastContainedNode;
2986
previousNode = (
TextTreeNode
)elementNode.GetPreviousNode();
2990
previousNode = (
TextTreeNode
)containingNode;
2993
nextNode = (
TextTreeNode
)elementNode.GetNextNode();
2997
nextNode = (
TextTreeNode
)containingNode;
3027
firstContainedNode = (
TextTreeNode
)childNode.GetMinSibling();
3028
lastContainedNode = (
TextTreeNode
)childNode.GetMaxSibling();
3112
clone.ContainedNode = DeepCopyContainedNodes((
TextTreeNode
)elementNode.ContainedNode.GetMinSibling());
3120
private
TextTreeNode
DeepCopyContainedNodes(
TextTreeNode
node)
3122
TextTreeNode
rootClone;
3123
TextTreeNode
previousClone;
3124
TextTreeNode
clone;
3164
node = (
TextTreeNode
)node.GetNextNode();
3434
private void RaiseEventForFormerFirstIMEVisibleNode(
TextTreeNode
node)
3446
private void RaiseEventForNewFirstIMEVisibleNode(
TextTreeNode
node)
3682
private int _debugId =
TextTreeNode
.GetDebugId();
System\Windows\Documents\TextPointer.cs (59)
300
Initialize(textContainer, (
TextTreeNode
)node, edge, direction, textContainer.PositionGeneration, false, false, textContainer.LayoutGeneration);
304
internal TextPointer(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
310
internal TextPointer(TextContainer tree,
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
598
TextTreeNode
textNode = GetAdjacentTextNodeSibling(direction);
1816
internal static DependencyObject GetAdjacentElement(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
1818
TextTreeNode
adjacentNode;
1936
MoveToNode(_tree, (
TextTreeNode
)node, edge);
1974
TextTreeNode
node;
2275
SetNodeAndEdge(AdjustRefCounts((
TextTreeNode
)newNode, edge, _node, this.Edge), edge);
2431
TextTreeNode
parent1;
2432
TextTreeNode
parent2;
2633
TextTreeNode
scopingNode = GetScopingNode();
2822
internal static TextTreeTextNode GetAdjacentTextNodeSibling(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
2843
internal
TextTreeNode
GetAdjacentSiblingNode(LogicalDirection direction)
2850
internal static
TextTreeNode
GetAdjacentSiblingNode(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
2899
return (
TextTreeNode
)sibling;
2911
internal static int GetSymbolOffset(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
3051
SetNodeAndEdge((
TextTreeNode
)node, edge);
3061
internal
TextTreeNode
GetScopingNode()
3066
internal static
TextTreeNode
GetScopingNode(
TextTreeNode
node, ElementEdge edge)
3068
TextTreeNode
scopingNode;
3074
scopingNode = (
TextTreeNode
)node.GetContainingNode();
3093
internal bool GetNextNodeAndEdge(out
TextTreeNode
node, out ElementEdge edge)
3103
internal static bool GetNextNodeAndEdge(
TextTreeNode
sourceNode, ElementEdge sourceEdge, bool plainTextOnly, out
TextTreeNode
node, out ElementEdge edge)
3257
node = (
TextTreeNode
)newNode;
3263
internal bool GetPreviousNodeAndEdge(out
TextTreeNode
node, out ElementEdge edge)
3273
internal static bool GetPreviousNodeAndEdge(
TextTreeNode
sourceNode, ElementEdge sourceEdge, bool plainTextOnly, out
TextTreeNode
node, out ElementEdge edge)
3426
node = (
TextTreeNode
)newNode;
3432
internal static TextPointerContext GetPointerContextForward(
TextTreeNode
node, ElementEdge edge)
3434
TextTreeNode
nextNode;
3435
TextTreeNode
firstContainedNode;
3447
firstContainedNode = (
TextTreeNode
)node.GetFirstContainedNode();
3463
nextNode = (
TextTreeNode
)node.GetNextNode();
3486
internal static TextPointerContext GetPointerContextBackward(
TextTreeNode
node, ElementEdge edge)
3489
TextTreeNode
previousNode;
3490
TextTreeNode
lastChildNode;
3495
previousNode = (
TextTreeNode
)node.GetPreviousNode();
3515
lastChildNode = (
TextTreeNode
)node.GetLastContainedNode();
3846
internal
TextTreeNode
Node
3925
Initialize(position.TextContainer, (
TextTreeNode
)node, edge, direction, position.TextContainer.PositionGeneration,
3930
private void Initialize(TextContainer tree,
TextTreeNode
node, ElementEdge edge, LogicalDirection gravity, uint generation,
3967
private
TextTreeNode
AdjustRefCounts(
TextTreeNode
newNode, ElementEdge newNodeEdge,
TextTreeNode
oldNode, ElementEdge oldNodeEdge)
3969
TextTreeNode
node;
3990
private static void RepositionForGravity(ref
TextTreeNode
node, ref ElementEdge edge, LogicalDirection gravity)
4053
node = (
TextTreeNode
)newNode;
4073
internal
TextTreeNode
GetAdjacentNode(LogicalDirection direction)
4078
internal static
TextTreeNode
GetAdjacentNode(
TextTreeNode
node, ElementEdge edge, LogicalDirection direction)
4080
TextTreeNode
adjacentNode;
4093
adjacentNode = (
TextTreeNode
)node.GetContainingNode();
4102
private void MoveToNode(TextContainer tree,
TextTreeNode
node, ElementEdge edge)
4259
private void SetNodeAndEdge(
TextTreeNode
node, ElementEdge edge)
4358
private
TextTreeNode
_node;
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (13)
35
TextTreeNode
node;
36
TextTreeNode
haltNode;
165
private ContentContainer CopyContent(
TextTreeNode
node,
TextTreeNode
haltNode)
216
private
TextTreeNode
CopyTextNode(TextTreeTextNode textNode,
TextTreeNode
haltNode, out ContentContainer container)
248
return (
TextTreeNode
)node;
256
private
TextTreeNode
CopyObjectNode(TextTreeObjectNode objectNode, out ContentContainer container)
263
return (
TextTreeNode
)objectNode.GetNextNode();
268
private
TextTreeNode
CopyElementNode(TextTreeTextElementNode elementNode, out ContentContainer container)
274
CopyContent((
TextTreeNode
)elementNode.GetFirstContainedNode(), null));
281
CopyContent((
TextTreeNode
)elementNode.GetFirstContainedNode(), null));
284
return (
TextTreeNode
)elementNode.GetNextNode();
System\Windows\Documents\TextTreeDumper.cs (2)
75
internal static void Dump(
TextTreeNode
node)
81
internal static void DumpFlat(
TextTreeNode
node)
System\Windows\Documents\TextTreeFixupNode.cs (15)
31
internal TextTreeFixupNode(
TextTreeNode
previousNode, ElementEdge previousEdge,
TextTreeNode
nextNode, ElementEdge nextEdge) :
42
internal TextTreeFixupNode(
TextTreeNode
previousNode, ElementEdge previousEdge,
TextTreeNode
nextNode, ElementEdge nextEdge,
43
TextTreeNode
firstContainedNode,
TextTreeNode
lastContainedNode)
100
internal override
TextTreeNode
Clone()
322
internal
TextTreeNode
PreviousNode
342
internal
TextTreeNode
NextNode
362
internal
TextTreeNode
FirstContainedNode
372
internal
TextTreeNode
LastContainedNode
409
private readonly
TextTreeNode
_previousNode;
415
private readonly
TextTreeNode
_nextNode;
422
private readonly
TextTreeNode
_firstContainedNode;
426
private readonly
TextTreeNode
_lastContainedNode;
System\Windows\Documents\TextTreeNode.cs (4)
267
internal abstract
TextTreeNode
Clone();
377
internal
TextTreeNode
IncrementReferenceCount(ElementEdge edge)
382
internal virtual
TextTreeNode
IncrementReferenceCount(ElementEdge edge, bool delta)
394
internal virtual
TextTreeNode
IncrementReferenceCount(ElementEdge edge, int delta)
System\Windows\Documents\TextTreeObjectNode.cs (7)
63
internal override
TextTreeNode
Clone()
99
_parentNode = (
TextTreeNode
)value;
155
_leftChildNode = (
TextTreeNode
)value;
169
_rightChildNode = (
TextTreeNode
)value;
323
private
TextTreeNode
_parentNode;
326
private
TextTreeNode
_leftChildNode;
329
private
TextTreeNode
_rightChildNode;
System\Windows\Documents\TextTreeRootNode.cs (3)
77
internal override
TextTreeNode
Clone()
126
_containedNode = (
TextTreeNode
)value;
446
private
TextTreeNode
_containedNode;
System\Windows\Documents\TextTreeTextElementNode.cs (9)
64
internal override
TextTreeNode
Clone()
105
_parentNode = (
TextTreeNode
)value;
119
_containedNode = (
TextTreeNode
)value;
161
_leftChildNode = (
TextTreeNode
)value;
175
_rightChildNode = (
TextTreeNode
)value;
358
private
TextTreeNode
_parentNode;
361
private
TextTreeNode
_leftChildNode;
364
private
TextTreeNode
_rightChildNode;
367
private
TextTreeNode
_containedNode;
System\Windows\Documents\TextTreeTextNode.cs (12)
82
internal override
TextTreeNode
Clone()
107
internal override
TextTreeNode
IncrementReferenceCount(ElementEdge edge, int delta)
202
TextTreeNode
previousNode;
207
previousNode = (
TextTreeNode
)GetPreviousNode();
213
TextTreeNode
nextNode;
218
nextNode = (
TextTreeNode
)GetNextNode();
286
_parentNode = (
TextTreeNode
)value;
342
_leftChildNode = (
TextTreeNode
)value;
356
_rightChildNode = (
TextTreeNode
)value;
569
private
TextTreeNode
_parentNode;
572
private
TextTreeNode
_leftChildNode;
575
private
TextTreeNode
_rightChildNode; // we could combine with _parentNode, if we can accept the increased complexity.