17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6368dnNewDir.FormatState = new FormatState(dn.Parent.FormatState); 7294dnNewTable.FormatState = new FormatState(dn.FormatState); 8347dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0)); 8454dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0)); 8666dnImage.FormatState = formatState; 8858dnEnd.FormatState = new FormatState(fsCur); 8872dnEnd.FormatState = new FormatState(fsCur); 9857dn.FormatState = new FormatState(formatState); 9874dn.FormatState = new FormatState(dnChild.FormatState); 10159dnl.FormatState = new FormatState(formatState); 10327dn.FormatState = new FormatState(formatState); 10436dnl.FormatState = new FormatState(formatState); 11005dnf.FormatState = new FormatState(formatState); 11508dnTop.FormatState = new FormatState(formatState); 11528documentNode.FormatState = new FormatState(formatState);
System\Windows\Documents\XamlToRtfWriter.cs (2)
1770dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1828dnNew.FormatState = new FormatState(dnSpanningCell.FormatState);
180 references to FormatState
PresentationFramework (180)
System\Windows\Documents\RtfToXamlReader.cs (73)
4752FormatState.SetCharDefaults(); 4753FormatState.Font = fsOrig.Font; 4754FormatState.FontSize = fsOrig.FontSize; 4755FormatState.Bold = fsOrig.Bold; 4756FormatState.Italic = fsOrig.Italic; 4773FormatState fsThis = FormatState; 4788FormatState fsThis = FormatState; 5115if (FormatState.HasRowFormat) 5117if (FormatState.RowFormat.Dir == DirState.DirRTL) 5122RowFormat rf = FormatState.RowFormat; 5145Debug.Assert(dnRow != null && dnRow.FormatState.RowFormat != null); 5147if (dnRow != null && dnRow.FormatState.HasRowFormat) 5150CellFormat cf = dnRow.FormatState.RowFormat.NthCellFormat(nCol); 5199FormatState fsThis = FormatState; 5274if (dnList != null && dnList.FormatState.Marker != MarkerStyle.MarkerHidden) 5295xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5299if (FormatState.StartIndex > 0 && FormatState.StartIndex != 1) 5302xamlStringBuilder.Append(FormatState.StartIndex.ToString(CultureInfo.InvariantCulture)); 5326if (FormatState.HasRowFormat) 5328prevX = FormatState.RowFormat.Trleft; 5383FormatState fsThis = this.FormatState; 5582RowFormat rf = dnRow.FormatState.RowFormat; 5891return dnPa.FormatState; 6033return FormatState.DirChar; 6039if (FormatState.HasRowFormat) 6041return FormatState.RowFormat.Dir; 6048return FormatState.DirPara; 6087return ParentXamlDir == DirState.DirLTR ? FormatState.LI : FormatState.RI; 6093FormatState.LI = value; 6097FormatState.RI = value; 6106return ParentXamlDir == DirState.DirLTR ? FormatState.RI : FormatState.LI; 6227if (!cs.Row.FormatState.RowFormat.IsVMerge) 6357|| dnn.FormatState.DirChar != dn.FormatState.DirChar 6368dnNewDir.FormatState = new FormatState(dn.Parent.FormatState); 6369dnNewDir.FormatState.DirChar = dn.FormatState.DirChar; 6772ml.AddEntry(dn.FormatState.Marker, dn.FormatState.ILS, 6773dn.FormatState.StartIndex, 6774dn.FormatState.StartIndexDefault, dn.VirtualListLevel); 6825mle.Marker = dnList.FormatState.Marker; 6826mle.StartIndexOverride = dnList.FormatState.StartIndex; 6827mle.StartIndexDefault = dnList.FormatState.StartIndexDefault; 6829mle.ILS = dnList.FormatState.ILS; 7245ds = ddn.FormatState.DirPara; 7247else if (ds != ddn.FormatState.DirPara) 7263ddn.FormatState.DirPara = ds; 7294dnNewTable.FormatState = new FormatState(dn.FormatState); 7295dnNewTable.FormatState.RowFormat = EntryAt(nUnfilledRowIndex).FormatState.RowFormat; 7330RowFormat rf = dn.FormatState.RowFormat; 7430RowFormat rf = dnRow.FormatState.RowFormat; 8052switch (dn.FormatState.RtfDestination) 8067switch (dn.FormatState.RtfDestination) 8572dn.FormatState.FontSize = (long)((d * 2) + 0.5); 8595dn.FormatState.Font = _converterState.FontTable.DefineEntryByName(name); 9874dn.FormatState = new FormatState(dnChild.FormatState); 9875dn.ConstrainFontPropagation(dn.FormatState); 10010dnRow.FormatState.RowFormat = new RowFormat(formatState.RowFormat); 10011dnRow.FormatState.RowFormat.CanonicalizeWidthsFromRTF(); 10018if (!dnTable.FormatState.HasRowFormat) 10020dnTable.FormatState.RowFormat = dnRow.FormatState.RowFormat; 11295dnPara.FormatState.FI = 0; 11497if (!dnTop.FormatState.IsEqual(formatState)) 11686dnList.FormatState.Marker = mle.Marker; 11687dnList.FormatState.StartIndex = mle.StartIndexToUse; 11688dnList.FormatState.StartIndexDefault = mle.StartIndexDefault; 11690dnList.FormatState.ILS = mle.ILS;
System\Windows\Documents\XamlToRtfWriter.cs (107)
283MarkerStyle marker = dnList.FormatState.Marker; 284long nStartIndex = dnList.FormatState.StartIndex; 322dn.FormatState.ILVL = iLevel - 1; 324dn.FormatState.ILS = j + 1; 330if (dnList.FormatState.PNLVL < iLevel) 332dnList.FormatState.PNLVL = iLevel; 334if (dnList.FormatState.ILS == -1) 336dnList.FormatState.ILS = dn.FormatState.ILS; 338else if (dnList.FormatState.ILS != dn.FormatState.ILS) 340dnList.FormatState.ILS = 0; 364long li = dn.FormatState.LI; 365long ri = dn.FormatState.RI; 376li += dnParent.FormatState.LI; 377ri += dnParent.FormatState.RI; 381dn.FormatState.LI = li; 382dn.FormatState.RI = ri; 431openCounts[openLists.Count - 1] = dn.FormatState.StartIndex - 1; 432openStarts[openLists.Count - 1] = dn.FormatState.StartIndex; 446if (dn.FormatState.ListLevel > 0 && openLists.Count > 0) 451dn.FormatState.StartIndex = nStart; // Record this here for later use in \\pnstart 452dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 484dn.FormatState.ITAP = iLevel; 488dn.FormatState.IsInTable = true; 504if (dn.FormatState.Font >= 0) 507_rtfBuilder.Append(dn.FormatState.Font.ToString(CultureInfo.InvariantCulture)); 694FormatState fsThis = documentNode.FormatState; 696? documentNode.Parent.FormatState 934FormatState fsThis = dnThis.FormatState; 935FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1031FormatState fsThis = dnThis.FormatState; 1032FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1203fsAll = dnChild.FormatState.FontSize; 1205else if (fsAll != dnChild.FormatState.FontSize) 1211fontAll = dnChild.FormatState.Font; 1213else if (fontAll != dnChild.FormatState.Font) 1292if (bNewStyle && dnList.FormatState.PNLVL == 1) 1301if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1302&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1326if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1327&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1332_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 1333if (fsThis.ListLevel > 0 && dnList.FormatState.PNLVL > 1) 1347if (dnList.FormatState.Marker == MarkerStyle.MarkerBullet) 1351else if (dnList.FormatState.Marker == MarkerStyle.MarkerNone) 1435long l = dirPa == DirState.DirLTR ? dnTable.FormatState.LI : dnTable.FormatState.RI; 1472if (dnCell.FormatState.HasRowFormat) 1474CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1537if (dnCell.FormatState.HasRowFormat) 1539if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMergeFirst) 1543else if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMerge) 1563if (dnCell.FormatState.HasRowFormat) 1565CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1590if (dnCell.FormatState.CBPara >= 0) 1592fs = dnCell.FormatState; 1594else if (dnCell.Parent != null && dnCell.Parent.FormatState.CBPara >= 0) 1596fs = dnCell.Parent.FormatState; 1616if (dnTable.FormatState.HasRowFormat) 1618RowFormat rf = dnTable.FormatState.RowFormat; 1770dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1771if (dnSpanningCell.FormatState.HasRowFormat) 1773dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1775dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1776dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1812CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1828dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1829if (dnSpanningCell.FormatState.HasRowFormat) 1831dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1833dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1834dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1906if (dnThis.FormatState.HasRowFormat) 1908dnThis.FormatState.RowFormat.Trleft = dnThis.FormatState.LI; 1909dnThis.FormatState.RowFormat.CanonicalizeWidthsFromXaml(); 2022using (Stream imageStream = _wpfPayload.GetImageStream(documentNode.FormatState.ImageSource)) 2025RtfImageFormat imageFormat = GetImageFormatFromImageSourceName(documentNode.FormatState.ImageSource); 2051Size imageInputSize = new Size(documentNode.FormatState.ImageWidth, documentNode.FormatState.ImageHeight); 2066System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2067System.Windows.Controls.StretchDirection imageStretchDirection = GetImageStretchDirection(documentNode.FormatState.ImageStretchDirection); 2104if (documentNode.FormatState.IncludeImageBaselineOffset) 2111documentNode.FormatState.ImageBaselineOffset)); 2466dn.InheritFormatState(dnTop.FormatState); 2474FontTableEntry e = converterState.FontTable.FindEntryByIndex((int)dn.FormatState.Font); 2801documentNode.InheritFormatState(dnTop.FormatState); 2808documentNode.FormatState.Bold = true; 2814documentNode.FormatState.UL = ULState.ULNormal; 2817documentNode.FormatState.CF = lColor; 2823documentNode.FormatState.Italic = true; 2827documentNode.FormatState.UL = ULState.ULNormal; 2831documentNode.FormatState.Marker = MarkerStyle.MarkerBullet; 2832documentNode.FormatState.StartIndex = 1; 2835documentNode.FormatState.LI = 720; 2857FormatState formatState = documentNode.FormatState; 3079RowFormat rf = dnTable.FormatState.RowFormat; 3091documentNode.FormatState.ImageWidth = d; 3100documentNode.FormatState.ImageHeight = d; 3109documentNode.FormatState.ImageBaselineOffset = d; 3110documentNode.FormatState.IncludeImageBaselineOffset = true; 3117documentNode.FormatState.ImageSource = valueString; 3124documentNode.FormatState.ImageSource = valueString; 3131documentNode.FormatState.ImageStretch = valueString; 3138documentNode.FormatState.ImageStretchDirection = valueString;