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