270 references to DocumentNodeType
PresentationFramework (270)
System\Windows\Documents\RtfToXamlReader.cs (190)
4632
internal DocumentNode(
DocumentNodeType
documentNodeType)
4682
internal DocumentNode GetParentOfType(
DocumentNodeType
parentType)
4701
if (dn.Type ==
DocumentNodeType
.dnTable)
4719
if (dn.Type ==
DocumentNodeType
.dnList)
4723
else if (dn.Type ==
DocumentNodeType
.dnCell)
5026
if (Type ==
DocumentNodeType
.dnImage)
5033
if (Type ==
DocumentNodeType
.dnText || Type ==
DocumentNodeType
.dnInline)
5045
xamlStringBuilder.Append(XamlNames[(int)
DocumentNodeType
.dnInline]);
5055
case
DocumentNodeType
.dnTable:
5060
case
DocumentNodeType
.dnCell:
5065
case
DocumentNodeType
.dnParagraph:
5069
case
DocumentNodeType
.dnListItem:
5074
case
DocumentNodeType
.dnList:
5079
case
DocumentNodeType
.dnHyperlink:
5095
xamlStringBuilder.Append(XamlNames[(int)
DocumentNodeType
.dnInline]);
5102
case
DocumentNodeType
.dnTable:
5140
DocumentNode dnRow = GetParentOfType(
DocumentNodeType
.dnRow);
5361
if (Type ==
DocumentNodeType
.dnImage)
5368
if (Type ==
DocumentNodeType
.dnText || Type ==
DocumentNodeType
.dnInline)
5458
if (Type !=
DocumentNodeType
.dnParagraph)
5461
DocumentNode dnCell = GetParentOfType(
DocumentNodeType
.dnCell);
5492
if (Type ==
DocumentNodeType
.dnTable)
5501
if (dnRow.Type ==
DocumentNodeType
.dnRow && this == dnRow.GetParentOfType(
DocumentNodeType
.dnTable))
5516
if (Type ==
DocumentNodeType
.dnRow)
5525
if (dnCell.Type ==
DocumentNodeType
.dnCell && this == dnCell.GetParentOfType(
DocumentNodeType
.dnRow))
5540
if (Type ==
DocumentNodeType
.dnCell)
5542
DocumentNode dnRow = this.GetParentOfType(
DocumentNodeType
.dnRow);
5558
if (dnCell.Type ==
DocumentNodeType
.dnCell && dnCell.GetParentOfType(
DocumentNodeType
.dnRow) == dnRow)
5572
Debug.Assert(Type ==
DocumentNodeType
.dnTable);
5664
return _type ==
DocumentNodeType
.dnText
5665
|| _type ==
DocumentNodeType
.dnInline
5666
|| _type ==
DocumentNodeType
.dnImage
5667
|| _type ==
DocumentNodeType
.dnLineBreak
5668
|| _type ==
DocumentNodeType
.dnListText
5669
|| _type ==
DocumentNodeType
.dnHyperlink;
5677
return _type ==
DocumentNodeType
.dnParagraph
5678
|| _type ==
DocumentNodeType
.dnList
5679
|| _type ==
DocumentNodeType
.dnListItem
5680
|| _type ==
DocumentNodeType
.dnTable
5681
|| _type ==
DocumentNodeType
.dnTableBody
5682
|| _type ==
DocumentNodeType
.dnRow
5683
|| _type ==
DocumentNodeType
.dnCell
5684
|| _type ==
DocumentNodeType
.dnSection
5685
|| _type ==
DocumentNodeType
.dnFigure
5686
|| _type ==
DocumentNodeType
.dnFloater;
5694
return _type ==
DocumentNodeType
.dnLineBreak;
5702
return _type ==
DocumentNodeType
.dnFieldBegin
5703
|| _type ==
DocumentNodeType
.dnFieldEnd
5704
|| _type ==
DocumentNodeType
.dnShape
5705
|| _type ==
DocumentNodeType
.dnListText;
5719
if (_type ==
DocumentNodeType
.dnText)
5758
if (Type ==
DocumentNodeType
.dnFieldBegin)
5780
if (Type ==
DocumentNodeType
.dnFieldEnd)
5852
internal
DocumentNodeType
Type
5879
if (dnPa != null && dnPa.Type ==
DocumentNodeType
.dnHyperlink)
5884
if (Type ==
DocumentNodeType
.dnParagraph || dnPa == null)
6035
if (Type ==
DocumentNodeType
.dnTable)
6044
else if (Type ==
DocumentNodeType
.dnList || Type ==
DocumentNodeType
.dnParagraph)
6054
case
DocumentNodeType
.dnList:
6055
case
DocumentNodeType
.dnParagraph:
6056
case
DocumentNodeType
.dnTable:
6120
private
DocumentNodeType
_type;
6310
internal bool TestTop(
DocumentNodeType
documentNodeType)
6354
|| dnn.Type ==
DocumentNodeType
.dnHyperlink
6365
DocumentNode dnNewDir = new DocumentNode(
DocumentNodeType
.dnInline);
6376
else if (dn.Type ==
DocumentNodeType
.dnListItem)
6381
else if (dn.Type ==
DocumentNodeType
.dnList)
6386
else if (dn.Type ==
DocumentNodeType
.dnTable)
6393
else if (dn.Type ==
DocumentNodeType
.dnRow)
6632
case
DocumentNodeType
.dnTableBody:
6633
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnTable);
6635
case
DocumentNodeType
.dnRow:
6636
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnTableBody);
6638
case
DocumentNodeType
.dnCell:
6639
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnRow);
6641
case
DocumentNodeType
.dnListItem:
6642
Debug.Assert(dnPa != null && dnPa.Type ==
DocumentNodeType
.dnList);
6661
internal int CountOpenNodes(
DocumentNodeType
documentNodeType)
6680
else if (dn.Type ==
DocumentNodeType
.dnShape)
6693
return CountOpenNodes(
DocumentNodeType
.dnCell);
6715
internal
DocumentNodeType
GetTableScope()
6726
if (dn.Type ==
DocumentNodeType
.dnTable
6727
|| dn.Type ==
DocumentNodeType
.dnTableBody
6728
|| dn.Type ==
DocumentNodeType
.dnRow
6729
|| dn.Type ==
DocumentNodeType
.dnCell)
6735
else if (dn.Type ==
DocumentNodeType
.dnShape)
6737
return
DocumentNodeType
.dnParagraph;
6743
return
DocumentNodeType
.dnParagraph;
6758
if (dn.IsPending && dn.Type ==
DocumentNodeType
.dnShape)
6768
if (dn.IsPending && dn.Type ==
DocumentNodeType
.dnList)
6794
if (dn.Type ==
DocumentNodeType
.dnCell || dn.Type ==
DocumentNodeType
.dnTable)
6799
if (dn.Type ==
DocumentNodeType
.dnListItem)
6802
DocumentNode dnCell = dn.GetParentOfType(
DocumentNodeType
.dnCell);
6809
DocumentNode dnShape = dn.GetParentOfType(
DocumentNodeType
.dnShape);
6819
if (dnList.Type ==
DocumentNodeType
.dnList)
6856
if (dn.Type ==
DocumentNodeType
.dnListItem)
6859
DocumentNode dnShape = dn.GetParentOfType(
DocumentNodeType
.dnShape);
6868
if (dnPa.Type ==
DocumentNodeType
.dnList || dnPa.Type ==
DocumentNodeType
.dnListItem)
6891
if (dn.Type ==
DocumentNodeType
.dnCell)
6896
else if (dn.Type ==
DocumentNodeType
.dnTable
6897
|| dn.Type ==
DocumentNodeType
.dnTableBody
6898
|| dn.Type ==
DocumentNodeType
.dnRow)
6912
if (ddn.Type ==
DocumentNodeType
.dnCell && ddn.GetParentOfType(dn.Type) == dn)
6928
internal int FindPendingFrom(
DocumentNodeType
documentNodeType, int nStart, int nLow)
6954
else if (dn.Type ==
DocumentNodeType
.dnShape)
6965
internal int FindPending(
DocumentNodeType
documentNodeType, int nLow)
6970
internal int FindPending(
DocumentNodeType
documentNodeType)
6975
internal int FindUnmatched(
DocumentNodeType
dnType)
7199
if (ddn.Type ==
DocumentNodeType
.dnParagraph)
7216
if (ddn.Type ==
DocumentNodeType
.dnParagraph)
7239
if (ddn.Type ==
DocumentNodeType
.dnParagraph && ddn.IsNonEmpty)
7259
if (ddn.Type ==
DocumentNodeType
.dnList || ddn.Type ==
DocumentNodeType
.dnListItem)
7290
DocumentNode dnNewTable = new DocumentNode(
DocumentNodeType
.dnTable);
7291
DocumentNode dnNewTableBody = new DocumentNode(
DocumentNodeType
.dnTableBody);
7329
DocumentNode dnTable = dn.GetParentOfType(
DocumentNodeType
.dnTable);
7946
if (documentNode.Type ==
DocumentNodeType
.dnParagraph ||
7947
documentNode.Type ==
DocumentNodeType
.dnList ||
7948
documentNode.Type ==
DocumentNodeType
.dnTable)
8048
if (dn.Type ==
DocumentNodeType
.dnFieldBegin)
8063
else if (dn.Type ==
DocumentNodeType
.dnFieldEnd)
8103
if (dnChild.Type ==
DocumentNodeType
.dnText)
8154
if (dnImage.Type ==
DocumentNodeType
.dnImage)
8192
if (dnInstruction.Type ==
DocumentNodeType
.dnText || nChildCount != 0)
8201
else if (dnInstruction.Type ==
DocumentNodeType
.dnHyperlink)
8208
if (dn.Type ==
DocumentNodeType
.dnParagraph && !dn.IsTerminated)
8236
if (dn.Type ==
DocumentNodeType
.dnParagraph && !dn.IsTerminated)
8344
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnHyperlink);
8451
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnText);
8662
DocumentNode dnImage = new DocumentNode(
DocumentNodeType
.dnImage);
8790
int ndnListText = dna.FindPending(
DocumentNodeType
.dnListText);
8828
int nAt = dna.FindPending(
DocumentNodeType
.dnShape);
8852
nAt = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin);
8855
DocumentNode dnEnd = new DocumentNode(
DocumentNodeType
.dnFieldEnd);
8866
nAt = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin);
8869
DocumentNode dnEnd = new DocumentNode(
DocumentNodeType
.dnFieldEnd);
9814
else if (dn.Type ==
DocumentNodeType
.dnListText && !dn.IsPending
9854
dn = new DocumentNode(
DocumentNodeType
.dnParagraph);
9871
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnParagraph);
9950
nCellAt = dna.FindPending(
DocumentNodeType
.dnCell);
9971
DocumentNodeType
scope = dna.GetTableScope();
9973
if (scope !=
DocumentNodeType
.dnCell || nOpenCells < 2)
9979
nCellAt = dna.FindPending(
DocumentNodeType
.dnCell);
10002
int nRowAt = dna.FindPending(
DocumentNodeType
.dnRow);
10012
int nTable = dna.FindPendingFrom(
DocumentNodeType
.dnTable, nRowAt - 1, -1);
10155
DocumentNode dnl = new DocumentNode(
DocumentNodeType
.dnListText);
10299
DocumentNodeType
t = dna.GetTableScope();
10300
if (t !=
DocumentNodeType
.dnParagraph)
10302
if (t ==
DocumentNodeType
.dnTableBody)
10305
int nAt = dna.FindPending(
DocumentNodeType
.dnTable);
10322
DocumentNode dn = new DocumentNode(
DocumentNodeType
.dnShape);
10331
int ndnListText = dna.FindPending(
DocumentNodeType
.dnListText);
10432
DocumentNode dnl = new DocumentNode(
DocumentNodeType
.dnListText);
11001
DocumentNode dnf = new DocumentNode(
DocumentNodeType
.dnFieldBegin);
11020
int nTables = dna.CountOpenNodes(
DocumentNodeType
.dnTable);
11033
bool bInField = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin) >= 0;
11036
int nOpen = dna.FindPending(
DocumentNodeType
.dnTable);
11057
int nListAt = dna.FindPending(
DocumentNodeType
.dnList);
11068
nListAt = dna.FindPending(
DocumentNodeType
.dnList);
11077
Debug.Assert(dna.Count > 0 && dna.EntryAt(dna.Count - 1).Type ==
DocumentNodeType
.dnParagraph);
11082
int nTable = dna.FindPending(
DocumentNodeType
.dnTable);
11085
int nRow = dna.FindPending(
DocumentNodeType
.dnRow, nTable);
11088
DocumentNode dnRow = new DocumentNode(
DocumentNodeType
.dnRow);
11093
int nCell = dna.FindPending(
DocumentNodeType
.dnCell, nRow);
11096
DocumentNode dnCell = new DocumentNode(
DocumentNodeType
.dnCell);
11104
DocumentNode dnTable = new DocumentNode(
DocumentNodeType
.dnTable);
11105
DocumentNode dnTableBody = new DocumentNode(
DocumentNodeType
.dnTableBody);
11106
DocumentNode dnRow = new DocumentNode(
DocumentNodeType
.dnRow);
11107
DocumentNode dnCell = new DocumentNode(
DocumentNodeType
.dnCell);
11290
if (dna.Count > 1 && dna.EntryAt(dna.Count - 2).Type ==
DocumentNodeType
.dnListItem)
11492
if (dnTop != null && (dnTop.Type ==
DocumentNodeType
.dnText))
11503
if (dnTop == null || dnTop.Type !=
DocumentNodeType
.dnText)
11505
dnTop = new DocumentNode(
DocumentNodeType
.dnText);
11520
if (dna.TestTop(
DocumentNodeType
.dnText))
11525
DocumentNode documentNode = new DocumentNode(
DocumentNodeType
.dnLineBreak);
11631
bool bInField = dna.FindUnmatched(
DocumentNodeType
.dnFieldBegin) >= 0;
11637
int nOpen = dna.FindPending(
DocumentNodeType
.dnList);
11676
DocumentNode dnList = new DocumentNode(
DocumentNodeType
.dnList);
11677
DocumentNode dnLI = new DocumentNode(
DocumentNodeType
.dnListItem);
11695
int nList = dna.FindPending(
DocumentNodeType
.dnList);
11698
int nLI = dna.FindPending(
DocumentNodeType
.dnListItem, nList);
11713
DocumentNode dnLI = new DocumentNode(
DocumentNodeType
.dnListItem);
System\Windows\Documents\XamlToRtfWriter.cs (80)
266
case
DocumentNodeType
.dnList:
272
case
DocumentNodeType
.dnListItem:
276
case
DocumentNodeType
.dnParagraph:
361
if (dn.Type ==
DocumentNodeType
.dnParagraph)
369
if (dnParent.Type ==
DocumentNodeType
.dnCell)
373
if (dnParent.Type ==
DocumentNodeType
.dnListItem || dnParent.Type ==
DocumentNodeType
.dnList)
426
case
DocumentNodeType
.dnList:
435
case
DocumentNodeType
.dnListItem:
444
case
DocumentNodeType
.dnParagraph:
466
if (dn.Type ==
DocumentNodeType
.dnParagraph)
475
if (dnParent.Type ==
DocumentNodeType
.dnCell)
677
case
DocumentNodeType
.dnLineBreak:
834
if (documentNode.Type ==
DocumentNodeType
.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri))
861
if (documentNode.Type ==
DocumentNodeType
.dnImage)
883
if (documentNode.Type ==
DocumentNodeType
.dnHyperlink && !string.IsNullOrEmpty(documentNode.NavigateUri))
910
if (documentNodeChild.Parent == documentNode && documentNodeChild.Type ==
DocumentNodeType
.dnImage)
917
if (documentNode.Type ==
DocumentNodeType
.dnBlockUIContainer)
1161
DocumentNode dnCell = dnThis.GetParentOfType(
DocumentNodeType
.dnCell);
1232
bool isTopLevelParagraph = dnThis.Type ==
DocumentNodeType
.dnParagraph &&
1234
dnThis.Parent.Type ==
DocumentNodeType
.dnSection &&
1286
DocumentNode dnList = dnThis.GetParentOfType(
DocumentNodeType
.dnList);
1427
DocumentNode dnTable = dnRow.GetParentOfType(
DocumentNodeType
.dnTable);
1613
DocumentNode dnTable = dnCell.GetParentOfType(
DocumentNodeType
.dnTable);
1686
if (dnChildTable.Type ==
DocumentNodeType
.dnTable)
1708
if (dnChild.Type ==
DocumentNodeType
.dnRow)
1724
else if (dnChild.Type ==
DocumentNodeType
.dnTable)
1767
DocumentNode dnNew = new DocumentNode(
DocumentNodeType
.dnCell);
1825
DocumentNode dnNew = new DocumentNode(
DocumentNodeType
.dnCell);
1868
bool nested = dnThis.GetParentOfType(
DocumentNodeType
.dnCell) != null;
1873
case
DocumentNodeType
.dnSection:
1879
case
DocumentNodeType
.dnParagraph:
1885
case
DocumentNodeType
.dnInline:
1891
case
DocumentNodeType
.dnInlineUIContainer:
1892
case
DocumentNodeType
.dnBlockUIContainer:
1898
case
DocumentNodeType
.dnList:
1899
case
DocumentNodeType
.dnListItem:
1903
case
DocumentNodeType
.dnTable:
1913
case
DocumentNodeType
.dnTableBody:
1917
case
DocumentNodeType
.dnRow:
1921
case
DocumentNodeType
.dnCell:
1930
if (dnThis.Type !=
DocumentNodeType
.dnRow)
1949
case
DocumentNodeType
.dnList:
1950
case
DocumentNodeType
.dnListItem:
1954
case
DocumentNodeType
.dnTable:
1957
case
DocumentNodeType
.dnTableBody:
1960
case
DocumentNodeType
.dnRow:
1964
case
DocumentNodeType
.dnCell:
2462
dn = new DocumentNode(
DocumentNodeType
.dnText);
2510
DocumentNodeType
documentNodeType =
DocumentNodeType
.dnUnknown;
2585
DocumentNodeType
documentNodeType =
DocumentNodeType
.dnUnknown;
2601
if (documentNodeType !=
DocumentNodeType
.dnParagraph && !documentNode.IsInline)
2623
if (converterState.DocumentNodeArray.FindPending(
DocumentNodeType
.dnParagraph) >= 0 ||
2624
converterState.DocumentNodeArray.FindPending(
DocumentNodeType
.dnInline) >= 0)
2795
private DocumentNode CreateDocumentNode(ConverterState converterState,
DocumentNodeType
documentNodeType, DocumentNode dnTop, XamlTag xamlTag)
2947
else if (documentNode.Type ==
DocumentNodeType
.dnTable)
2959
if (documentNode.Type ==
DocumentNodeType
.dnList)
3021
if (documentNode.Type ==
DocumentNodeType
.dnCell)
3035
if (documentNode.Type ==
DocumentNodeType
.dnCell)
3049
if (documentNode.Type ==
DocumentNodeType
.dnTable)
3074
int nTableAt = dna.FindPending(
DocumentNodeType
.dnTable);
3704
internal static bool ConvertTagToNodeType(XamlTag xamlTag, ref
DocumentNodeType
documentNodeType)
3706
documentNodeType =
DocumentNodeType
.dnUnknown;
3718
documentNodeType =
DocumentNodeType
.dnInline;
3722
documentNodeType =
DocumentNodeType
.dnHyperlink;
3726
documentNodeType =
DocumentNodeType
.dnLineBreak;
3730
documentNodeType =
DocumentNodeType
.dnInlineUIContainer;
3734
documentNodeType =
DocumentNodeType
.dnBlockUIContainer;
3738
documentNodeType =
DocumentNodeType
.dnImage;
3742
documentNodeType =
DocumentNodeType
.dnParagraph;
3746
documentNodeType =
DocumentNodeType
.dnSection;
3750
documentNodeType =
DocumentNodeType
.dnList;
3754
documentNodeType =
DocumentNodeType
.dnListItem;
3758
documentNodeType =
DocumentNodeType
.dnTable;
3762
documentNodeType =
DocumentNodeType
.dnTableBody;
3766
documentNodeType =
DocumentNodeType
.dnRow;
3770
documentNodeType =
DocumentNodeType
.dnCell;
3911
int paragraphIndex = dna.FindPending(
DocumentNodeType
.dnParagraph);