270 references to DocumentNodeType
PresentationFramework (270)
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (190)
4693
internal DocumentNode(
DocumentNodeType
documentNodeType)
4743
internal DocumentNode GetParentOfType(
DocumentNodeType
parentType)
4762
if (dn.Type ==
DocumentNodeType
.dnTable)
4780
if (dn.Type ==
DocumentNodeType
.dnList)
4784
else if (dn.Type ==
DocumentNodeType
.dnCell)
5089
if (Type ==
DocumentNodeType
.dnImage)
5096
if (Type ==
DocumentNodeType
.dnText || Type ==
DocumentNodeType
.dnInline)
5108
xamlStringBuilder.Append(XamlNames[(int)
DocumentNodeType
.dnInline]);
5118
case
DocumentNodeType
.dnTable:
5123
case
DocumentNodeType
.dnCell:
5128
case
DocumentNodeType
.dnParagraph:
5132
case
DocumentNodeType
.dnListItem:
5137
case
DocumentNodeType
.dnList:
5142
case
DocumentNodeType
.dnHyperlink:
5158
xamlStringBuilder.Append(XamlNames[(int)
DocumentNodeType
.dnInline]);
5165
case
DocumentNodeType
.dnTable:
5203
DocumentNode dnRow = GetParentOfType(
DocumentNodeType
.dnRow);
5424
if (Type ==
DocumentNodeType
.dnImage)
5431
if (Type ==
DocumentNodeType
.dnText || Type ==
DocumentNodeType
.dnInline)
5540
if (Type !=
DocumentNodeType
.dnParagraph)
5543
DocumentNode dnCell = GetParentOfType(
DocumentNodeType
.dnCell);
5574
if (Type ==
DocumentNodeType
.dnTable)
5583
if (dnRow.Type ==
DocumentNodeType
.dnRow && this == dnRow.GetParentOfType(
DocumentNodeType
.dnTable))
5598
if (Type ==
DocumentNodeType
.dnRow)
5607
if (dnCell.Type ==
DocumentNodeType
.dnCell && this == dnCell.GetParentOfType(
DocumentNodeType
.dnRow))
5622
if (Type ==
DocumentNodeType
.dnCell)
5624
DocumentNode dnRow = this.GetParentOfType(
DocumentNodeType
.dnRow);
5640
if (dnCell.Type ==
DocumentNodeType
.dnCell && dnCell.GetParentOfType(
DocumentNodeType
.dnRow) == dnRow)
5654
Debug.Assert(Type ==
DocumentNodeType
.dnTable);
5746
return _type ==
DocumentNodeType
.dnText
5747
|| _type ==
DocumentNodeType
.dnInline
5748
|| _type ==
DocumentNodeType
.dnImage
5749
|| _type ==
DocumentNodeType
.dnLineBreak
5750
|| _type ==
DocumentNodeType
.dnListText
5751
|| _type ==
DocumentNodeType
.dnHyperlink;
5759
return _type ==
DocumentNodeType
.dnParagraph
5760
|| _type ==
DocumentNodeType
.dnList
5761
|| _type ==
DocumentNodeType
.dnListItem
5762
|| _type ==
DocumentNodeType
.dnTable
5763
|| _type ==
DocumentNodeType
.dnTableBody
5764
|| _type ==
DocumentNodeType
.dnRow
5765
|| _type ==
DocumentNodeType
.dnCell
5766
|| _type ==
DocumentNodeType
.dnSection
5767
|| _type ==
DocumentNodeType
.dnFigure
5768
|| _type ==
DocumentNodeType
.dnFloater;
5776
return _type ==
DocumentNodeType
.dnLineBreak;
5784
return _type ==
DocumentNodeType
.dnFieldBegin
5785
|| _type ==
DocumentNodeType
.dnFieldEnd
5786
|| _type ==
DocumentNodeType
.dnShape
5787
|| _type ==
DocumentNodeType
.dnListText;
5801
if (_type ==
DocumentNodeType
.dnText)
5840
if (Type ==
DocumentNodeType
.dnFieldBegin)
5862
if (Type ==
DocumentNodeType
.dnFieldEnd)
5934
internal
DocumentNodeType
Type
5961
if (dnPa != null && dnPa.Type ==
DocumentNodeType
.dnHyperlink)
5966
if (Type ==
DocumentNodeType
.dnParagraph || dnPa == null)
6117
if (Type ==
DocumentNodeType
.dnTable)
6126
else if (Type ==
DocumentNodeType
.dnList || Type ==
DocumentNodeType
.dnParagraph)
6136
case
DocumentNodeType
.dnList:
6137
case
DocumentNodeType
.dnParagraph:
6138
case
DocumentNodeType
.dnTable:
6202
private
DocumentNodeType
_type;
6392
internal bool TestTop(
DocumentNodeType
documentNodeType)
6436
|| dnn.Type ==
DocumentNodeType
.dnHyperlink
6448
DocumentNode dnNewDir = new DocumentNode(
DocumentNodeType
.dnInline);
6459
else if (dn.Type ==
DocumentNodeType
.dnListItem)
6464
else if (dn.Type ==
DocumentNodeType
.dnList)
6469
else if (dn.Type ==
DocumentNodeType
.dnTable)
6476
else if (dn.Type ==
DocumentNodeType
.dnRow)
6715
case
DocumentNodeType
.dnTableBody:
6716
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnTable);
6718
case
DocumentNodeType
.dnRow:
6719
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnTableBody);
6721
case
DocumentNodeType
.dnCell:
6722
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnRow);
6724
case
DocumentNodeType
.dnListItem:
6725
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnList);
6744
internal int CountOpenNodes(
DocumentNodeType
documentNodeType)
6763
else if (dn.Type ==
DocumentNodeType
.dnShape)
6776
return CountOpenNodes(
DocumentNodeType
.dnCell);
6798
internal
DocumentNodeType
GetTableScope()
6809
if (dn.Type ==
DocumentNodeType
.dnTable
6810
|| dn.Type ==
DocumentNodeType
.dnTableBody
6811
|| dn.Type ==
DocumentNodeType
.dnRow
6812
|| dn.Type ==
DocumentNodeType
.dnCell)
6818
else if (dn.Type ==
DocumentNodeType
.dnShape)
6820
return
DocumentNodeType
.dnParagraph;
6826
return
DocumentNodeType
.dnParagraph;
6841
if (dn.IsPending && dn.Type ==
DocumentNodeType
.dnShape)
6851
if (dn.IsPending && dn.Type ==
DocumentNodeType
.dnList)
6877
if (dn.Type ==
DocumentNodeType
.dnCell || dn.Type ==
DocumentNodeType
.dnTable)
6882
if (dn.Type ==
DocumentNodeType
.dnListItem)
6885
DocumentNode dnCell = dn.GetParentOfType(
DocumentNodeType
.dnCell);
6892
DocumentNode dnShape = dn.GetParentOfType(
DocumentNodeType
.dnShape);
6902
if (dnList.Type ==
DocumentNodeType
.dnList)
6939
if (dn.Type ==
DocumentNodeType
.dnListItem)
6942
DocumentNode dnShape = dn.GetParentOfType(
DocumentNodeType
.dnShape);
6951
if (dnPa.Type ==
DocumentNodeType
.dnList || dnPa.Type ==
DocumentNodeType
.dnListItem)
6974
if (dn.Type ==
DocumentNodeType
.dnCell)
6979
else if (dn.Type ==
DocumentNodeType
.dnTable
6980
|| dn.Type ==
DocumentNodeType
.dnTableBody
6981
|| dn.Type ==
DocumentNodeType
.dnRow)
6995
if (ddn.Type ==
DocumentNodeType
.dnCell && ddn.GetParentOfType(dn.Type) == dn)
7011
internal int FindPendingFrom(
DocumentNodeType
documentNodeType, int nStart, int nLow)
7037
else if (dn.Type ==
DocumentNodeType
.dnShape)
7048
internal int FindPending(
DocumentNodeType
documentNodeType, int nLow)
7053
internal int FindPending(
DocumentNodeType
documentNodeType)
7058
internal int FindUnmatched(
DocumentNodeType
dnType)
7282
if (ddn.Type ==
DocumentNodeType
.dnParagraph)
7299
if (ddn.Type ==
DocumentNodeType
.dnParagraph)
7322
if (ddn.Type ==
DocumentNodeType
.dnParagraph && ddn.IsNonEmpty)
7342
if (ddn.Type ==
DocumentNodeType
.dnList || ddn.Type ==
DocumentNodeType
.dnListItem)
7373
DocumentNode dnNewTable = new DocumentNode(
DocumentNodeType
.dnTable);
7374
DocumentNode dnNewTableBody = new DocumentNode(
DocumentNodeType
.dnTableBody);
7412
DocumentNode dnTable = dn.GetParentOfType(
DocumentNodeType
.dnTable);
8029
if (documentNode.Type ==
DocumentNodeType
.dnParagraph ||
8030
documentNode.Type ==
DocumentNodeType
.dnList ||
8031
documentNode.Type ==
DocumentNodeType
.dnTable)
8131
if (dn.Type ==
DocumentNodeType
.dnFieldBegin)
8146
else if (dn.Type ==
DocumentNodeType
.dnFieldEnd)
8186
if (dnChild.Type ==
DocumentNodeType
.dnText)
8237
if (dnImage.Type ==
DocumentNodeType
.dnImage)
8275
if (dnInstruction.Type ==
DocumentNodeType
.dnText || nChildCount != 0)
8284
else if (dnInstruction.Type ==
DocumentNodeType
.dnHyperlink)
8291
if (dn.Type ==
DocumentNodeType
.dnParagraph && !dn.IsTerminated)
8322
if (dn.Type ==
DocumentNodeType
.dnParagraph && !dn.IsTerminated)
8434
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnHyperlink);
8541
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnText);
8752
DocumentNode dnImage = new DocumentNode(
DocumentNodeType
.dnImage);
8883
int ndnListText = dna.FindPending(
DocumentNodeType
.dnListText);
8921
int nAt = dna.FindPending(
DocumentNodeType
.dnShape);
8945
nAt = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin);
8948
DocumentNode dnEnd = new DocumentNode(
DocumentNodeType
.dnFieldEnd);
8959
nAt = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin);
8962
DocumentNode dnEnd = new DocumentNode(
DocumentNodeType
.dnFieldEnd);
9907
else if (dn.Type ==
DocumentNodeType
.dnListText && !dn.IsPending
9947
dn = new DocumentNode(
DocumentNodeType
.dnParagraph);
9964
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnParagraph);
10043
nCellAt = dna.FindPending(
DocumentNodeType
.dnCell);
10064
DocumentNodeType
scope = dna.GetTableScope();
10066
if (scope !=
DocumentNodeType
.dnCell || nOpenCells < 2)
10072
nCellAt = dna.FindPending(
DocumentNodeType
.dnCell);
10095
int nRowAt = dna.FindPending(
DocumentNodeType
.dnRow);
10105
int nTable = dna.FindPendingFrom(
DocumentNodeType
.dnTable, nRowAt - 1, -1);
10248
DocumentNode dnl = new DocumentNode(
DocumentNodeType
.dnListText);
10393
DocumentNodeType
t = dna.GetTableScope();
10394
if (t !=
DocumentNodeType
.dnParagraph)
10396
if (t ==
DocumentNodeType
.dnTableBody)
10399
int nAt = dna.FindPending(
DocumentNodeType
.dnTable);
10416
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnShape);
10425
int ndnListText = dna.FindPending(
DocumentNodeType
.dnListText);
10526
DocumentNode dnl = new DocumentNode(
DocumentNodeType
.dnListText);
11095
DocumentNode dnf = new DocumentNode(
DocumentNodeType
.dnFieldBegin);
11114
int nTables = dna.CountOpenNodes(
DocumentNodeType
.dnTable);
11127
bool bInField = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin) >= 0;
11131
int nOpen = dna.FindPending(
DocumentNodeType
.dnTable);
11152
int nListAt = dna.FindPending(
DocumentNodeType
.dnList);
11163
nListAt = dna.FindPending(
DocumentNodeType
.dnList);
11172
Debug.Assert(dna.Count > 0 && dna.EntryAt(dna.Count - 1).Type ==
DocumentNodeType
.dnParagraph);
11177
int nTable = dna.FindPending(
DocumentNodeType
.dnTable);
11180
int nRow = dna.FindPending(
DocumentNodeType
.dnRow, nTable);
11183
DocumentNode dnRow = new DocumentNode(
DocumentNodeType
.dnRow);
11188
int nCell = dna.FindPending(
DocumentNodeType
.dnCell, nRow);
11191
DocumentNode dnCell = new DocumentNode(
DocumentNodeType
.dnCell);
11199
DocumentNode dnTable = new DocumentNode(
DocumentNodeType
.dnTable);
11200
DocumentNode dnTableBody = new DocumentNode(
DocumentNodeType
.dnTableBody);
11201
DocumentNode dnRow = new DocumentNode(
DocumentNodeType
.dnRow);
11202
DocumentNode dnCell = new DocumentNode(
DocumentNodeType
.dnCell);
11385
if (dna.Count > 1 && dna.EntryAt(dna.Count - 2).Type ==
DocumentNodeType
.dnListItem)
11592
if (dnTop != null && (dnTop.Type ==
DocumentNodeType
.dnText))
11603
if (dnTop == null || dnTop.Type !=
DocumentNodeType
.dnText)
11605
dnTop = new DocumentNode(
DocumentNodeType
.dnText);
11620
if (dna.TestTop(
DocumentNodeType
.dnText))
11625
DocumentNode documentNode = new DocumentNode(
DocumentNodeType
.dnLineBreak);
11732
bool bInField = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin) >= 0;
11738
int nOpen = dna.FindPending(
DocumentNodeType
.dnList);
11777
DocumentNode dnList = new DocumentNode(
DocumentNodeType
.dnList);
11778
DocumentNode dnLI = new DocumentNode(
DocumentNodeType
.dnListItem);
11796
int nList = dna.FindPending(
DocumentNodeType
.dnList);
11799
int nLI = dna.FindPending(
DocumentNodeType
.dnListItem, nList);
11814
DocumentNode dnLI = new DocumentNode(
DocumentNodeType
.dnListItem);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (80)
268
case
DocumentNodeType
.dnList:
274
case
DocumentNodeType
.dnListItem:
278
case
DocumentNodeType
.dnParagraph:
363
if (dn.Type ==
DocumentNodeType
.dnParagraph)
371
if (dnParent.Type ==
DocumentNodeType
.dnCell)
375
if (dnParent.Type ==
DocumentNodeType
.dnListItem || dnParent.Type ==
DocumentNodeType
.dnList)
428
case
DocumentNodeType
.dnList:
437
case
DocumentNodeType
.dnListItem:
446
case
DocumentNodeType
.dnParagraph:
468
if (dn.Type ==
DocumentNodeType
.dnParagraph)
477
if (dnParent.Type ==
DocumentNodeType
.dnCell)
679
case
DocumentNodeType
.dnLineBreak:
836
if (documentNode.Type ==
DocumentNodeType
.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri))
863
if (documentNode.Type ==
DocumentNodeType
.dnImage)
885
if (documentNode.Type ==
DocumentNodeType
.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri))
912
if (documentNodeChild.Parent == documentNode && documentNodeChild.Type ==
DocumentNodeType
.dnImage)
919
if (documentNode.Type ==
DocumentNodeType
.dnBlockUIContainer)
1163
DocumentNode dnCell = dnThis.GetParentOfType(
DocumentNodeType
.dnCell);
1235
bool isTopLevelParagraph = dnThis.Type ==
DocumentNodeType
.dnParagraph &&
1237
dnThis.Parent.Type ==
DocumentNodeType
.dnSection &&
1289
DocumentNode dnList = dnThis.GetParentOfType(
DocumentNodeType
.dnList);
1430
DocumentNode dnTable = dnRow.GetParentOfType(
DocumentNodeType
.dnTable);
1616
DocumentNode dnTable = dnCell.GetParentOfType(
DocumentNodeType
.dnTable);
1689
if (dnChildTable.Type ==
DocumentNodeType
.dnTable)
1711
if (dnChild.Type ==
DocumentNodeType
.dnRow)
1727
else if (dnChild.Type ==
DocumentNodeType
.dnTable)
1770
DocumentNode dnNew = new DocumentNode(
DocumentNodeType
.dnCell);
1828
DocumentNode dnNew = new DocumentNode(
DocumentNodeType
.dnCell);
1871
bool nested = dnThis.GetParentOfType(
DocumentNodeType
.dnCell) != null;
1876
case
DocumentNodeType
.dnSection:
1882
case
DocumentNodeType
.dnParagraph:
1888
case
DocumentNodeType
.dnInline:
1894
case
DocumentNodeType
.dnInlineUIContainer:
1895
case
DocumentNodeType
.dnBlockUIContainer:
1901
case
DocumentNodeType
.dnList:
1902
case
DocumentNodeType
.dnListItem:
1906
case
DocumentNodeType
.dnTable:
1916
case
DocumentNodeType
.dnTableBody:
1920
case
DocumentNodeType
.dnRow:
1924
case
DocumentNodeType
.dnCell:
1933
if (dnThis.Type !=
DocumentNodeType
.dnRow)
1952
case
DocumentNodeType
.dnList:
1953
case
DocumentNodeType
.dnListItem:
1957
case
DocumentNodeType
.dnTable:
1960
case
DocumentNodeType
.dnTableBody:
1963
case
DocumentNodeType
.dnRow:
1967
case
DocumentNodeType
.dnCell:
2464
dn = new DocumentNode(
DocumentNodeType
.dnText);
2512
DocumentNodeType
documentNodeType =
DocumentNodeType
.dnUnknown;
2587
DocumentNodeType
documentNodeType =
DocumentNodeType
.dnUnknown;
2603
if (documentNodeType !=
DocumentNodeType
.dnParagraph && !documentNode.IsInline)
2625
if (converterState.DocumentNodeArray.FindPending(
DocumentNodeType
.dnParagraph) >= 0 ||
2626
converterState.DocumentNodeArray.FindPending(
DocumentNodeType
.dnInline) >= 0)
2802
private DocumentNode CreateDocumentNode(ConverterState converterState,
DocumentNodeType
documentNodeType, DocumentNode dnTop, XamlTag xamlTag)
2954
else if (documentNode.Type ==
DocumentNodeType
.dnTable)
2966
if (documentNode.Type ==
DocumentNodeType
.dnList)
3028
if (documentNode.Type ==
DocumentNodeType
.dnCell)
3042
if (documentNode.Type ==
DocumentNodeType
.dnCell)
3056
if (documentNode.Type ==
DocumentNodeType
.dnTable)
3081
int nTableAt = dna.FindPending(
DocumentNodeType
.dnTable);
3712
internal static bool ConvertTagToNodeType(XamlTag xamlTag, ref
DocumentNodeType
documentNodeType)
3714
documentNodeType =
DocumentNodeType
.dnUnknown;
3726
documentNodeType =
DocumentNodeType
.dnInline;
3730
documentNodeType =
DocumentNodeType
.dnHyperlink;
3734
documentNodeType =
DocumentNodeType
.dnLineBreak;
3738
documentNodeType =
DocumentNodeType
.dnInlineUIContainer;
3742
documentNodeType =
DocumentNodeType
.dnBlockUIContainer;
3746
documentNodeType =
DocumentNodeType
.dnImage;
3750
documentNodeType =
DocumentNodeType
.dnParagraph;
3754
documentNodeType =
DocumentNodeType
.dnSection;
3758
documentNodeType =
DocumentNodeType
.dnList;
3762
documentNodeType =
DocumentNodeType
.dnListItem;
3766
documentNodeType =
DocumentNodeType
.dnTable;
3770
documentNodeType =
DocumentNodeType
.dnTableBody;
3774
documentNodeType =
DocumentNodeType
.dnRow;
3778
documentNodeType =
DocumentNodeType
.dnCell;
3919
int paragraphIndex = dna.FindPending(
DocumentNodeType
.dnParagraph);