270 references to DocumentNodeType
PresentationFramework (270)
System\Windows\Documents\RtfToXamlReader.cs (190)
4633
internal DocumentNode(
DocumentNodeType
documentNodeType)
4683
internal DocumentNode GetParentOfType(
DocumentNodeType
parentType)
4702
if (dn.Type ==
DocumentNodeType
.dnTable)
4720
if (dn.Type ==
DocumentNodeType
.dnList)
4724
else if (dn.Type ==
DocumentNodeType
.dnCell)
5027
if (Type ==
DocumentNodeType
.dnImage)
5034
if (Type ==
DocumentNodeType
.dnText || Type ==
DocumentNodeType
.dnInline)
5046
xamlStringBuilder.Append(XamlNames[(int)
DocumentNodeType
.dnInline]);
5056
case
DocumentNodeType
.dnTable:
5061
case
DocumentNodeType
.dnCell:
5066
case
DocumentNodeType
.dnParagraph:
5070
case
DocumentNodeType
.dnListItem:
5075
case
DocumentNodeType
.dnList:
5080
case
DocumentNodeType
.dnHyperlink:
5096
xamlStringBuilder.Append(XamlNames[(int)
DocumentNodeType
.dnInline]);
5103
case
DocumentNodeType
.dnTable:
5141
DocumentNode dnRow = GetParentOfType(
DocumentNodeType
.dnRow);
5362
if (Type ==
DocumentNodeType
.dnImage)
5369
if (Type ==
DocumentNodeType
.dnText || Type ==
DocumentNodeType
.dnInline)
5459
if (Type !=
DocumentNodeType
.dnParagraph)
5462
DocumentNode dnCell = GetParentOfType(
DocumentNodeType
.dnCell);
5493
if (Type ==
DocumentNodeType
.dnTable)
5502
if (dnRow.Type ==
DocumentNodeType
.dnRow && this == dnRow.GetParentOfType(
DocumentNodeType
.dnTable))
5517
if (Type ==
DocumentNodeType
.dnRow)
5526
if (dnCell.Type ==
DocumentNodeType
.dnCell && this == dnCell.GetParentOfType(
DocumentNodeType
.dnRow))
5541
if (Type ==
DocumentNodeType
.dnCell)
5543
DocumentNode dnRow = this.GetParentOfType(
DocumentNodeType
.dnRow);
5559
if (dnCell.Type ==
DocumentNodeType
.dnCell && dnCell.GetParentOfType(
DocumentNodeType
.dnRow) == dnRow)
5573
Debug.Assert(Type ==
DocumentNodeType
.dnTable);
5665
return _type ==
DocumentNodeType
.dnText
5666
|| _type ==
DocumentNodeType
.dnInline
5667
|| _type ==
DocumentNodeType
.dnImage
5668
|| _type ==
DocumentNodeType
.dnLineBreak
5669
|| _type ==
DocumentNodeType
.dnListText
5670
|| _type ==
DocumentNodeType
.dnHyperlink;
5678
return _type ==
DocumentNodeType
.dnParagraph
5679
|| _type ==
DocumentNodeType
.dnList
5680
|| _type ==
DocumentNodeType
.dnListItem
5681
|| _type ==
DocumentNodeType
.dnTable
5682
|| _type ==
DocumentNodeType
.dnTableBody
5683
|| _type ==
DocumentNodeType
.dnRow
5684
|| _type ==
DocumentNodeType
.dnCell
5685
|| _type ==
DocumentNodeType
.dnSection
5686
|| _type ==
DocumentNodeType
.dnFigure
5687
|| _type ==
DocumentNodeType
.dnFloater;
5695
return _type ==
DocumentNodeType
.dnLineBreak;
5703
return _type ==
DocumentNodeType
.dnFieldBegin
5704
|| _type ==
DocumentNodeType
.dnFieldEnd
5705
|| _type ==
DocumentNodeType
.dnShape
5706
|| _type ==
DocumentNodeType
.dnListText;
5720
if (_type ==
DocumentNodeType
.dnText)
5759
if (Type ==
DocumentNodeType
.dnFieldBegin)
5781
if (Type ==
DocumentNodeType
.dnFieldEnd)
5853
internal
DocumentNodeType
Type
5880
if (dnPa != null && dnPa.Type ==
DocumentNodeType
.dnHyperlink)
5885
if (Type ==
DocumentNodeType
.dnParagraph || dnPa == null)
6036
if (Type ==
DocumentNodeType
.dnTable)
6045
else if (Type ==
DocumentNodeType
.dnList || Type ==
DocumentNodeType
.dnParagraph)
6055
case
DocumentNodeType
.dnList:
6056
case
DocumentNodeType
.dnParagraph:
6057
case
DocumentNodeType
.dnTable:
6121
private
DocumentNodeType
_type;
6311
internal bool TestTop(
DocumentNodeType
documentNodeType)
6355
|| dnn.Type ==
DocumentNodeType
.dnHyperlink
6366
DocumentNode dnNewDir = new DocumentNode(
DocumentNodeType
.dnInline);
6377
else if (dn.Type ==
DocumentNodeType
.dnListItem)
6382
else if (dn.Type ==
DocumentNodeType
.dnList)
6387
else if (dn.Type ==
DocumentNodeType
.dnTable)
6394
else if (dn.Type ==
DocumentNodeType
.dnRow)
6633
case
DocumentNodeType
.dnTableBody:
6634
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnTable);
6636
case
DocumentNodeType
.dnRow:
6637
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnTableBody);
6639
case
DocumentNodeType
.dnCell:
6640
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnRow);
6642
case
DocumentNodeType
.dnListItem:
6643
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnList);
6662
internal int CountOpenNodes(
DocumentNodeType
documentNodeType)
6681
else if (dn.Type ==
DocumentNodeType
.dnShape)
6694
return CountOpenNodes(
DocumentNodeType
.dnCell);
6716
internal
DocumentNodeType
GetTableScope()
6727
if (dn.Type ==
DocumentNodeType
.dnTable
6728
|| dn.Type ==
DocumentNodeType
.dnTableBody
6729
|| dn.Type ==
DocumentNodeType
.dnRow
6730
|| dn.Type ==
DocumentNodeType
.dnCell)
6736
else if (dn.Type ==
DocumentNodeType
.dnShape)
6738
return
DocumentNodeType
.dnParagraph;
6744
return
DocumentNodeType
.dnParagraph;
6759
if (dn.IsPending && dn.Type ==
DocumentNodeType
.dnShape)
6769
if (dn.IsPending && dn.Type ==
DocumentNodeType
.dnList)
6795
if (dn.Type ==
DocumentNodeType
.dnCell || dn.Type ==
DocumentNodeType
.dnTable)
6800
if (dn.Type ==
DocumentNodeType
.dnListItem)
6803
DocumentNode dnCell = dn.GetParentOfType(
DocumentNodeType
.dnCell);
6810
DocumentNode dnShape = dn.GetParentOfType(
DocumentNodeType
.dnShape);
6820
if (dnList.Type ==
DocumentNodeType
.dnList)
6857
if (dn.Type ==
DocumentNodeType
.dnListItem)
6860
DocumentNode dnShape = dn.GetParentOfType(
DocumentNodeType
.dnShape);
6869
if (dnPa.Type ==
DocumentNodeType
.dnList || dnPa.Type ==
DocumentNodeType
.dnListItem)
6892
if (dn.Type ==
DocumentNodeType
.dnCell)
6897
else if (dn.Type ==
DocumentNodeType
.dnTable
6898
|| dn.Type ==
DocumentNodeType
.dnTableBody
6899
|| dn.Type ==
DocumentNodeType
.dnRow)
6913
if (ddn.Type ==
DocumentNodeType
.dnCell && ddn.GetParentOfType(dn.Type) == dn)
6929
internal int FindPendingFrom(
DocumentNodeType
documentNodeType, int nStart, int nLow)
6955
else if (dn.Type ==
DocumentNodeType
.dnShape)
6966
internal int FindPending(
DocumentNodeType
documentNodeType, int nLow)
6971
internal int FindPending(
DocumentNodeType
documentNodeType)
6976
internal int FindUnmatched(
DocumentNodeType
dnType)
7200
if (ddn.Type ==
DocumentNodeType
.dnParagraph)
7217
if (ddn.Type ==
DocumentNodeType
.dnParagraph)
7240
if (ddn.Type ==
DocumentNodeType
.dnParagraph && ddn.IsNonEmpty)
7260
if (ddn.Type ==
DocumentNodeType
.dnList || ddn.Type ==
DocumentNodeType
.dnListItem)
7291
DocumentNode dnNewTable = new DocumentNode(
DocumentNodeType
.dnTable);
7292
DocumentNode dnNewTableBody = new DocumentNode(
DocumentNodeType
.dnTableBody);
7330
DocumentNode dnTable = dn.GetParentOfType(
DocumentNodeType
.dnTable);
7947
if (documentNode.Type ==
DocumentNodeType
.dnParagraph ||
7948
documentNode.Type ==
DocumentNodeType
.dnList ||
7949
documentNode.Type ==
DocumentNodeType
.dnTable)
8049
if (dn.Type ==
DocumentNodeType
.dnFieldBegin)
8064
else if (dn.Type ==
DocumentNodeType
.dnFieldEnd)
8104
if (dnChild.Type ==
DocumentNodeType
.dnText)
8155
if (dnImage.Type ==
DocumentNodeType
.dnImage)
8193
if (dnInstruction.Type ==
DocumentNodeType
.dnText || nChildCount != 0)
8202
else if (dnInstruction.Type ==
DocumentNodeType
.dnHyperlink)
8209
if (dn.Type ==
DocumentNodeType
.dnParagraph && !dn.IsTerminated)
8237
if (dn.Type ==
DocumentNodeType
.dnParagraph && !dn.IsTerminated)
8345
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnHyperlink);
8452
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnText);
8663
DocumentNode dnImage = new DocumentNode(
DocumentNodeType
.dnImage);
8791
int ndnListText = dna.FindPending(
DocumentNodeType
.dnListText);
8829
int nAt = dna.FindPending(
DocumentNodeType
.dnShape);
8853
nAt = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin);
8856
DocumentNode dnEnd = new DocumentNode(
DocumentNodeType
.dnFieldEnd);
8867
nAt = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin);
8870
DocumentNode dnEnd = new DocumentNode(
DocumentNodeType
.dnFieldEnd);
9815
else if (dn.Type ==
DocumentNodeType
.dnListText && !dn.IsPending
9855
dn = new DocumentNode(
DocumentNodeType
.dnParagraph);
9872
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnParagraph);
9951
nCellAt = dna.FindPending(
DocumentNodeType
.dnCell);
9972
DocumentNodeType
scope = dna.GetTableScope();
9974
if (scope !=
DocumentNodeType
.dnCell || nOpenCells < 2)
9980
nCellAt = dna.FindPending(
DocumentNodeType
.dnCell);
10003
int nRowAt = dna.FindPending(
DocumentNodeType
.dnRow);
10013
int nTable = dna.FindPendingFrom(
DocumentNodeType
.dnTable, nRowAt - 1, -1);
10156
DocumentNode dnl = new DocumentNode(
DocumentNodeType
.dnListText);
10300
DocumentNodeType
t = dna.GetTableScope();
10301
if (t !=
DocumentNodeType
.dnParagraph)
10303
if (t ==
DocumentNodeType
.dnTableBody)
10306
int nAt = dna.FindPending(
DocumentNodeType
.dnTable);
10323
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnShape);
10332
int ndnListText = dna.FindPending(
DocumentNodeType
.dnListText);
10433
DocumentNode dnl = new DocumentNode(
DocumentNodeType
.dnListText);
11002
DocumentNode dnf = new DocumentNode(
DocumentNodeType
.dnFieldBegin);
11021
int nTables = dna.CountOpenNodes(
DocumentNodeType
.dnTable);
11034
bool bInField = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin) >= 0;
11037
int nOpen = dna.FindPending(
DocumentNodeType
.dnTable);
11058
int nListAt = dna.FindPending(
DocumentNodeType
.dnList);
11069
nListAt = dna.FindPending(
DocumentNodeType
.dnList);
11078
Debug.Assert(dna.Count > 0 && dna.EntryAt(dna.Count - 1).Type ==
DocumentNodeType
.dnParagraph);
11083
int nTable = dna.FindPending(
DocumentNodeType
.dnTable);
11086
int nRow = dna.FindPending(
DocumentNodeType
.dnRow, nTable);
11089
DocumentNode dnRow = new DocumentNode(
DocumentNodeType
.dnRow);
11094
int nCell = dna.FindPending(
DocumentNodeType
.dnCell, nRow);
11097
DocumentNode dnCell = new DocumentNode(
DocumentNodeType
.dnCell);
11105
DocumentNode dnTable = new DocumentNode(
DocumentNodeType
.dnTable);
11106
DocumentNode dnTableBody = new DocumentNode(
DocumentNodeType
.dnTableBody);
11107
DocumentNode dnRow = new DocumentNode(
DocumentNodeType
.dnRow);
11108
DocumentNode dnCell = new DocumentNode(
DocumentNodeType
.dnCell);
11291
if (dna.Count > 1 && dna.EntryAt(dna.Count - 2).Type ==
DocumentNodeType
.dnListItem)
11493
if (dnTop != null && (dnTop.Type ==
DocumentNodeType
.dnText))
11504
if (dnTop == null || dnTop.Type !=
DocumentNodeType
.dnText)
11506
dnTop = new DocumentNode(
DocumentNodeType
.dnText);
11521
if (dna.TestTop(
DocumentNodeType
.dnText))
11526
DocumentNode documentNode = new DocumentNode(
DocumentNodeType
.dnLineBreak);
11632
bool bInField = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin) >= 0;
11638
int nOpen = dna.FindPending(
DocumentNodeType
.dnList);
11677
DocumentNode dnList = new DocumentNode(
DocumentNodeType
.dnList);
11678
DocumentNode dnLI = new DocumentNode(
DocumentNodeType
.dnListItem);
11696
int nList = dna.FindPending(
DocumentNodeType
.dnList);
11699
int nLI = dna.FindPending(
DocumentNodeType
.dnListItem, nList);
11714
DocumentNode dnLI = new DocumentNode(
DocumentNodeType
.dnListItem);
System\Windows\Documents\XamlToRtfWriter.cs (80)
267
case
DocumentNodeType
.dnList:
273
case
DocumentNodeType
.dnListItem:
277
case
DocumentNodeType
.dnParagraph:
362
if (dn.Type ==
DocumentNodeType
.dnParagraph)
370
if (dnParent.Type ==
DocumentNodeType
.dnCell)
374
if (dnParent.Type ==
DocumentNodeType
.dnListItem || dnParent.Type ==
DocumentNodeType
.dnList)
427
case
DocumentNodeType
.dnList:
436
case
DocumentNodeType
.dnListItem:
445
case
DocumentNodeType
.dnParagraph:
467
if (dn.Type ==
DocumentNodeType
.dnParagraph)
476
if (dnParent.Type ==
DocumentNodeType
.dnCell)
678
case
DocumentNodeType
.dnLineBreak:
835
if (documentNode.Type ==
DocumentNodeType
.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri))
862
if (documentNode.Type ==
DocumentNodeType
.dnImage)
884
if (documentNode.Type ==
DocumentNodeType
.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri))
911
if (documentNodeChild.Parent == documentNode && documentNodeChild.Type ==
DocumentNodeType
.dnImage)
918
if (documentNode.Type ==
DocumentNodeType
.dnBlockUIContainer)
1162
DocumentNode dnCell = dnThis.GetParentOfType(
DocumentNodeType
.dnCell);
1233
bool isTopLevelParagraph = dnThis.Type ==
DocumentNodeType
.dnParagraph &&
1235
dnThis.Parent.Type ==
DocumentNodeType
.dnSection &&
1287
DocumentNode dnList = dnThis.GetParentOfType(
DocumentNodeType
.dnList);
1428
DocumentNode dnTable = dnRow.GetParentOfType(
DocumentNodeType
.dnTable);
1614
DocumentNode dnTable = dnCell.GetParentOfType(
DocumentNodeType
.dnTable);
1687
if (dnChildTable.Type ==
DocumentNodeType
.dnTable)
1709
if (dnChild.Type ==
DocumentNodeType
.dnRow)
1725
else if (dnChild.Type ==
DocumentNodeType
.dnTable)
1768
DocumentNode dnNew = new DocumentNode(
DocumentNodeType
.dnCell);
1826
DocumentNode dnNew = new DocumentNode(
DocumentNodeType
.dnCell);
1869
bool nested = dnThis.GetParentOfType(
DocumentNodeType
.dnCell) != null;
1874
case
DocumentNodeType
.dnSection:
1880
case
DocumentNodeType
.dnParagraph:
1886
case
DocumentNodeType
.dnInline:
1892
case
DocumentNodeType
.dnInlineUIContainer:
1893
case
DocumentNodeType
.dnBlockUIContainer:
1899
case
DocumentNodeType
.dnList:
1900
case
DocumentNodeType
.dnListItem:
1904
case
DocumentNodeType
.dnTable:
1914
case
DocumentNodeType
.dnTableBody:
1918
case
DocumentNodeType
.dnRow:
1922
case
DocumentNodeType
.dnCell:
1931
if (dnThis.Type !=
DocumentNodeType
.dnRow)
1950
case
DocumentNodeType
.dnList:
1951
case
DocumentNodeType
.dnListItem:
1955
case
DocumentNodeType
.dnTable:
1958
case
DocumentNodeType
.dnTableBody:
1961
case
DocumentNodeType
.dnRow:
1965
case
DocumentNodeType
.dnCell:
2463
dn = new DocumentNode(
DocumentNodeType
.dnText);
2511
DocumentNodeType
documentNodeType =
DocumentNodeType
.dnUnknown;
2586
DocumentNodeType
documentNodeType =
DocumentNodeType
.dnUnknown;
2602
if (documentNodeType !=
DocumentNodeType
.dnParagraph && !documentNode.IsInline)
2624
if (converterState.DocumentNodeArray.FindPending(
DocumentNodeType
.dnParagraph) >= 0 ||
2625
converterState.DocumentNodeArray.FindPending(
DocumentNodeType
.dnInline) >= 0)
2796
private DocumentNode CreateDocumentNode(ConverterState converterState,
DocumentNodeType
documentNodeType, DocumentNode dnTop, XamlTag xamlTag)
2948
else if (documentNode.Type ==
DocumentNodeType
.dnTable)
2960
if (documentNode.Type ==
DocumentNodeType
.dnList)
3022
if (documentNode.Type ==
DocumentNodeType
.dnCell)
3036
if (documentNode.Type ==
DocumentNodeType
.dnCell)
3050
if (documentNode.Type ==
DocumentNodeType
.dnTable)
3075
int nTableAt = dna.FindPending(
DocumentNodeType
.dnTable);
3705
internal static bool ConvertTagToNodeType(XamlTag xamlTag, ref
DocumentNodeType
documentNodeType)
3707
documentNodeType =
DocumentNodeType
.dnUnknown;
3719
documentNodeType =
DocumentNodeType
.dnInline;
3723
documentNodeType =
DocumentNodeType
.dnHyperlink;
3727
documentNodeType =
DocumentNodeType
.dnLineBreak;
3731
documentNodeType =
DocumentNodeType
.dnInlineUIContainer;
3735
documentNodeType =
DocumentNodeType
.dnBlockUIContainer;
3739
documentNodeType =
DocumentNodeType
.dnImage;
3743
documentNodeType =
DocumentNodeType
.dnParagraph;
3747
documentNodeType =
DocumentNodeType
.dnSection;
3751
documentNodeType =
DocumentNodeType
.dnList;
3755
documentNodeType =
DocumentNodeType
.dnListItem;
3759
documentNodeType =
DocumentNodeType
.dnTable;
3763
documentNodeType =
DocumentNodeType
.dnTableBody;
3767
documentNodeType =
DocumentNodeType
.dnRow;
3771
documentNodeType =
DocumentNodeType
.dnCell;
3912
int paragraphIndex = dna.FindPending(
DocumentNodeType
.dnParagraph);