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