17 writes to FormatState
PresentationFramework (17)
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (15)
6449dnNewDir.FormatState = new FormatState(dn.Parent.FormatState); 7375dnNewTable.FormatState = new FormatState(dn.FormatState); 8435dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0)); 8542dn.FormatState = new FormatState(_converterState.PreviousTopFormatState(0)); 8754dnImage.FormatState = formatState; 8949dnEnd.FormatState = new FormatState(fsCur); 8963dnEnd.FormatState = new FormatState(fsCur); 9948dn.FormatState = new FormatState(formatState); 9965dn.FormatState = new FormatState(dnChild.FormatState); 10250dnl.FormatState = new FormatState(formatState); 10419dn.FormatState = new FormatState(formatState); 10528dnl.FormatState = new FormatState(formatState); 11097dnf.FormatState = new FormatState(formatState); 11606dnTop.FormatState = new FormatState(formatState); 11626documentNode.FormatState = new FormatState(formatState);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (2)
1772dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1830dnNew.FormatState = new FormatState(dnSpanningCell.FormatState);
180 references to FormatState
PresentationFramework (180)
src\Framework\System\Windows\Documents\RtfToXamlReader.cs (73)
4813FormatState.SetCharDefaults(); 4814FormatState.Font = fsOrig.Font; 4815FormatState.FontSize = fsOrig.FontSize; 4816FormatState.Bold = fsOrig.Bold; 4817FormatState.Italic = fsOrig.Italic; 4834FormatState fsThis = FormatState; 4849FormatState fsThis = FormatState; 5176if (FormatState.HasRowFormat) 5178if (FormatState.RowFormat.Dir == DirState.DirRTL) 5183RowFormat rf = FormatState.RowFormat; 5206Debug.Assert(dnRow != null && dnRow.FormatState.RowFormat != null); 5208if (dnRow != null && dnRow.FormatState.HasRowFormat) 5211CellFormat cf = dnRow.FormatState.RowFormat.NthCellFormat(nCol); 5260FormatState fsThis = FormatState; 5335if (dnList != null && dnList.FormatState.Marker != MarkerStyle.MarkerHidden) 5356xamlStringBuilder.Append(Converters.MarkerStyleToString(FormatState.Marker)); 5360if (FormatState.StartIndex > 0 && FormatState.StartIndex != 1) 5363xamlStringBuilder.Append(FormatState.StartIndex.ToString(CultureInfo.InvariantCulture)); 5387if (FormatState.HasRowFormat) 5389prevX = FormatState.RowFormat.Trleft; 5455FormatState fsThis = this.FormatState; 5662RowFormat rf = dnRow.FormatState.RowFormat; 5971return dnPa.FormatState; 6113return FormatState.DirChar; 6119if (FormatState.HasRowFormat) 6121return FormatState.RowFormat.Dir; 6128return FormatState.DirPara; 6167return ParentXamlDir == DirState.DirLTR ? FormatState.LI : FormatState.RI; 6173FormatState.LI = value; 6177FormatState.RI = value; 6186return ParentXamlDir == DirState.DirLTR ? FormatState.RI : FormatState.LI; 6307if (!cs.Row.FormatState.RowFormat.IsVMerge) 6437|| dnn.FormatState.DirChar != dn.FormatState.DirChar 6449dnNewDir.FormatState = new FormatState(dn.Parent.FormatState); 6450dnNewDir.FormatState.DirChar = dn.FormatState.DirChar; 6853ml.AddEntry(dn.FormatState.Marker, dn.FormatState.ILS, 6854dn.FormatState.StartIndex, 6855dn.FormatState.StartIndexDefault, dn.VirtualListLevel); 6906mle.Marker = dnList.FormatState.Marker; 6907mle.StartIndexOverride = dnList.FormatState.StartIndex; 6908mle.StartIndexDefault = dnList.FormatState.StartIndexDefault; 6910mle.ILS = dnList.FormatState.ILS; 7326ds = ddn.FormatState.DirPara; 7328else if (ds != ddn.FormatState.DirPara) 7344ddn.FormatState.DirPara = ds; 7375dnNewTable.FormatState = new FormatState(dn.FormatState); 7376dnNewTable.FormatState.RowFormat = EntryAt(nUnfilledRowIndex).FormatState.RowFormat; 7411RowFormat rf = dn.FormatState.RowFormat; 7511RowFormat rf = dnRow.FormatState.RowFormat; 8133switch (dn.FormatState.RtfDestination) 8148switch (dn.FormatState.RtfDestination) 8660dn.FormatState.FontSize = (long)((d * 2) + 0.5); 8683dn.FormatState.Font = _converterState.FontTable.DefineEntryByName(name); 9965dn.FormatState = new FormatState(dnChild.FormatState); 9966dn.ConstrainFontPropagation(dn.FormatState); 10101dnRow.FormatState.RowFormat = new RowFormat(formatState.RowFormat); 10102dnRow.FormatState.RowFormat.CanonicalizeWidthsFromRTF(); 10109if (!dnTable.FormatState.HasRowFormat) 10111dnTable.FormatState.RowFormat = dnRow.FormatState.RowFormat; 11388dnPara.FormatState.FI = 0; 11595if (!dnTop.FormatState.IsEqual(formatState)) 11785dnList.FormatState.Marker = mle.Marker; 11786dnList.FormatState.StartIndex = mle.StartIndexToUse; 11787dnList.FormatState.StartIndexDefault = mle.StartIndexDefault; 11789dnList.FormatState.ILS = mle.ILS;
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (107)
284MarkerStyle marker = dnList.FormatState.Marker; 285long nStartIndex = dnList.FormatState.StartIndex; 323dn.FormatState.ILVL = iLevel - 1; 325dn.FormatState.ILS = j + 1; 331if (dnList.FormatState.PNLVL < iLevel) 333dnList.FormatState.PNLVL = iLevel; 335if (dnList.FormatState.ILS == -1) 337dnList.FormatState.ILS = dn.FormatState.ILS; 339else if (dnList.FormatState.ILS != dn.FormatState.ILS) 341dnList.FormatState.ILS = 0; 365long li = dn.FormatState.LI; 366long ri = dn.FormatState.RI; 377li += dnParent.FormatState.LI; 378ri += dnParent.FormatState.RI; 382dn.FormatState.LI = li; 383dn.FormatState.RI = ri; 432openCounts[openLists.Count - 1] = dn.FormatState.StartIndex - 1; 433openStarts[openLists.Count - 1] = dn.FormatState.StartIndex; 447if (dn.FormatState.ListLevel > 0 && openLists.Count > 0) 452dn.FormatState.StartIndex = nStart; // Record this here for later use in \\pnstart 453dn.ListLabel = Converters.MarkerCountToString(dnList.FormatState.Marker, nCount); 485dn.FormatState.ITAP = iLevel; 489dn.FormatState.IsInTable = true; 505if (dn.FormatState.Font >= 0) 508_rtfBuilder.Append(dn.FormatState.Font.ToString(CultureInfo.InvariantCulture)); 695FormatState fsThis = documentNode.FormatState; 697? documentNode.Parent.FormatState 935FormatState fsThis = dnThis.FormatState; 936FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1032FormatState fsThis = dnThis.FormatState; 1033FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.FormatState : FormatState.EmptyFormatState; 1205fsAll = dnChild.FormatState.FontSize; 1207else if (fsAll != dnChild.FormatState.FontSize) 1213fontAll = dnChild.FormatState.Font; 1215else if (fontAll != dnChild.FormatState.Font) 1294if (bNewStyle && dnList.FormatState.PNLVL == 1) 1303if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1304&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1328if (dnList.FormatState.Marker != MarkerStyle.MarkerBullet 1329&& dnList.FormatState.Marker != MarkerStyle.MarkerNone) 1334_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.FormatState.Marker)); 1335if (fsThis.ListLevel > 0 && dnList.FormatState.PNLVL > 1) 1349if (dnList.FormatState.Marker == MarkerStyle.MarkerBullet) 1353else if (dnList.FormatState.Marker == MarkerStyle.MarkerNone) 1437long l = dirPa == DirState.DirLTR ? dnTable.FormatState.LI : dnTable.FormatState.RI; 1474if (dnCell.FormatState.HasRowFormat) 1476CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1539if (dnCell.FormatState.HasRowFormat) 1541if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMergeFirst) 1545else if (dnCell.FormatState.RowFormat.RowCellFormat.IsVMerge) 1565if (dnCell.FormatState.HasRowFormat) 1567CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1592if (dnCell.FormatState.CBPara >= 0) 1594fs = dnCell.FormatState; 1596else if (dnCell.Parent != null && dnCell.Parent.FormatState.CBPara >= 0) 1598fs = dnCell.Parent.FormatState; 1618if (dnTable.FormatState.HasRowFormat) 1620RowFormat rf = dnTable.FormatState.RowFormat; 1772dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1773if (dnSpanningCell.FormatState.HasRowFormat) 1775dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1777dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1778dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1814CellFormat cf = dnCell.FormatState.RowFormat.RowCellFormat; 1830dnNew.FormatState = new FormatState(dnSpanningCell.FormatState); 1831if (dnSpanningCell.FormatState.HasRowFormat) 1833dnNew.FormatState.RowFormat = new RowFormat(dnSpanningCell.FormatState.RowFormat); 1835dnNew.FormatState.RowFormat.RowCellFormat.IsVMergeFirst = false; 1836dnNew.FormatState.RowFormat.RowCellFormat.IsVMerge = true; 1908if (dnThis.FormatState.HasRowFormat) 1910dnThis.FormatState.RowFormat.Trleft = dnThis.FormatState.LI; 1911dnThis.FormatState.RowFormat.CanonicalizeWidthsFromXaml(); 2024Stream imageStream = _wpfPayload.GetImageStream(documentNode.FormatState.ImageSource); 2027RtfImageFormat imageFormat = GetImageFormatFromImageSourceName(documentNode.FormatState.ImageSource); 2052Size imageInputSize = new Size(documentNode.FormatState.ImageWidth, documentNode.FormatState.ImageHeight); 2067System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch); 2068System.Windows.Controls.StretchDirection imageStretchDirection = GetImageStretchDirection(documentNode.FormatState.ImageStretchDirection); 2105if (documentNode.FormatState.IncludeImageBaselineOffset) 2112documentNode.FormatState.ImageBaselineOffset)); 2467dn.InheritFormatState(dnTop.FormatState); 2475FontTableEntry e = converterState.FontTable.FindEntryByIndex((int)dn.FormatState.Font); 2807documentNode.InheritFormatState(dnTop.FormatState); 2814documentNode.FormatState.Bold = true; 2820documentNode.FormatState.UL = ULState.ULNormal; 2823documentNode.FormatState.CF = lColor; 2829documentNode.FormatState.Italic = true; 2833documentNode.FormatState.UL = ULState.ULNormal; 2837documentNode.FormatState.Marker = MarkerStyle.MarkerBullet; 2838documentNode.FormatState.StartIndex = 1; 2841documentNode.FormatState.LI = 720; 2863FormatState formatState = documentNode.FormatState; 3085RowFormat rf = dnTable.FormatState.RowFormat; 3097documentNode.FormatState.ImageWidth = d; 3106documentNode.FormatState.ImageHeight = d; 3115documentNode.FormatState.ImageBaselineOffset = d; 3116documentNode.FormatState.IncludeImageBaselineOffset = true; 3123documentNode.FormatState.ImageSource = valueString; 3130documentNode.FormatState.ImageSource = valueString; 3137documentNode.FormatState.ImageStretch = valueString; 3144documentNode.FormatState.ImageStretchDirection = valueString;