17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6366
dnNewDir.
FormatState
= new FormatState(dn.Parent.FormatState);
7292
dnNewTable.
FormatState
= new FormatState(dn.FormatState);
8345
dn.
FormatState
= new FormatState(_converterState.PreviousTopFormatState(0));
8452
dn.
FormatState
= new FormatState(_converterState.PreviousTopFormatState(0));
8664
dnImage.
FormatState
= formatState;
8856
dnEnd.
FormatState
= new FormatState(fsCur);
8870
dnEnd.
FormatState
= new FormatState(fsCur);
9855
dn.
FormatState
= new FormatState(formatState);
9872
dn.
FormatState
= new FormatState(dnChild.FormatState);
10157
dnl.
FormatState
= new FormatState(formatState);
10325
dn.
FormatState
= new FormatState(formatState);
10434
dnl.
FormatState
= new FormatState(formatState);
11003
dnf.
FormatState
= new FormatState(formatState);
11506
dnTop.
FormatState
= new FormatState(formatState);
11526
documentNode.
FormatState
= new FormatState(formatState);
System\Windows\Documents\XamlToRtfWriter.cs (2)
1769
dnNew.
FormatState
= new FormatState(dnSpanningCell.FormatState);
1827
dnNew.
FormatState
= new FormatState(dnSpanningCell.FormatState);
180 references to FormatState
PresentationFramework (180)
System\Windows\Documents\RtfToXamlReader.cs (73)
4750
FormatState
.SetCharDefaults();
4751
FormatState
.Font = fsOrig.Font;
4752
FormatState
.FontSize = fsOrig.FontSize;
4753
FormatState
.Bold = fsOrig.Bold;
4754
FormatState
.Italic = fsOrig.Italic;
4771
FormatState fsThis =
FormatState
;
4786
FormatState fsThis =
FormatState
;
5113
if (
FormatState
.HasRowFormat)
5115
if (
FormatState
.RowFormat.Dir == DirState.DirRTL)
5120
RowFormat rf =
FormatState
.RowFormat;
5143
Debug.Assert(dnRow != null && dnRow.
FormatState
.RowFormat != null);
5145
if (dnRow != null && dnRow.
FormatState
.HasRowFormat)
5148
CellFormat cf = dnRow.
FormatState
.RowFormat.NthCellFormat(nCol);
5197
FormatState fsThis =
FormatState
;
5272
if (dnList != null && dnList.
FormatState
.Marker != MarkerStyle.MarkerHidden)
5293
xamlStringBuilder.Append(Converters.MarkerStyleToString(
FormatState
.Marker));
5297
if (
FormatState
.StartIndex > 0 &&
FormatState
.StartIndex != 1)
5300
xamlStringBuilder.Append(
FormatState
.StartIndex.ToString(CultureInfo.InvariantCulture));
5324
if (
FormatState
.HasRowFormat)
5326
prevX =
FormatState
.RowFormat.Trleft;
5381
FormatState fsThis = this.
FormatState
;
5580
RowFormat rf = dnRow.
FormatState
.RowFormat;
5889
return dnPa.
FormatState
;
6031
return
FormatState
.DirChar;
6037
if (
FormatState
.HasRowFormat)
6039
return
FormatState
.RowFormat.Dir;
6046
return
FormatState
.DirPara;
6085
return ParentXamlDir == DirState.DirLTR ?
FormatState
.LI :
FormatState
.RI;
6091
FormatState
.LI = value;
6095
FormatState
.RI = value;
6104
return ParentXamlDir == DirState.DirLTR ?
FormatState
.RI :
FormatState
.LI;
6225
if (!cs.Row.
FormatState
.RowFormat.IsVMerge)
6355
|| dnn.
FormatState
.DirChar != dn.
FormatState
.DirChar
6366
dnNewDir.FormatState = new FormatState(dn.Parent.
FormatState
);
6367
dnNewDir.
FormatState
.DirChar = dn.
FormatState
.DirChar;
6770
ml.AddEntry(dn.
FormatState
.Marker, dn.
FormatState
.ILS,
6771
dn.
FormatState
.StartIndex,
6772
dn.
FormatState
.StartIndexDefault, dn.VirtualListLevel);
6823
mle.Marker = dnList.
FormatState
.Marker;
6824
mle.StartIndexOverride = dnList.
FormatState
.StartIndex;
6825
mle.StartIndexDefault = dnList.
FormatState
.StartIndexDefault;
6827
mle.ILS = dnList.
FormatState
.ILS;
7243
ds = ddn.
FormatState
.DirPara;
7245
else if (ds != ddn.
FormatState
.DirPara)
7261
ddn.
FormatState
.DirPara = ds;
7292
dnNewTable.FormatState = new FormatState(dn.
FormatState
);
7293
dnNewTable.
FormatState
.RowFormat = EntryAt(nUnfilledRowIndex).
FormatState
.RowFormat;
7328
RowFormat rf = dn.
FormatState
.RowFormat;
7428
RowFormat rf = dnRow.
FormatState
.RowFormat;
8050
switch (dn.
FormatState
.RtfDestination)
8065
switch (dn.
FormatState
.RtfDestination)
8570
dn.
FormatState
.FontSize = (long)((d * 2) + 0.5);
8593
dn.
FormatState
.Font = _converterState.FontTable.DefineEntryByName(name);
9872
dn.FormatState = new FormatState(dnChild.
FormatState
);
9873
dn.ConstrainFontPropagation(dn.
FormatState
);
10008
dnRow.
FormatState
.RowFormat = new RowFormat(formatState.RowFormat);
10009
dnRow.
FormatState
.RowFormat.CanonicalizeWidthsFromRTF();
10016
if (!dnTable.
FormatState
.HasRowFormat)
10018
dnTable.
FormatState
.RowFormat = dnRow.
FormatState
.RowFormat;
11293
dnPara.
FormatState
.FI = 0;
11495
if (!dnTop.
FormatState
.IsEqual(formatState))
11684
dnList.
FormatState
.Marker = mle.Marker;
11685
dnList.
FormatState
.StartIndex = mle.StartIndexToUse;
11686
dnList.
FormatState
.StartIndexDefault = mle.StartIndexDefault;
11688
dnList.
FormatState
.ILS = mle.ILS;
System\Windows\Documents\XamlToRtfWriter.cs (107)
282
MarkerStyle marker = dnList.
FormatState
.Marker;
283
long nStartIndex = dnList.
FormatState
.StartIndex;
321
dn.
FormatState
.ILVL = iLevel - 1;
323
dn.
FormatState
.ILS = j + 1;
329
if (dnList.
FormatState
.PNLVL < iLevel)
331
dnList.
FormatState
.PNLVL = iLevel;
333
if (dnList.
FormatState
.ILS == -1)
335
dnList.
FormatState
.ILS = dn.
FormatState
.ILS;
337
else if (dnList.
FormatState
.ILS != dn.
FormatState
.ILS)
339
dnList.
FormatState
.ILS = 0;
363
long li = dn.
FormatState
.LI;
364
long ri = dn.
FormatState
.RI;
375
li += dnParent.
FormatState
.LI;
376
ri += dnParent.
FormatState
.RI;
380
dn.
FormatState
.LI = li;
381
dn.
FormatState
.RI = ri;
430
openCounts[openLists.Count - 1] = dn.
FormatState
.StartIndex - 1;
431
openStarts[openLists.Count - 1] = dn.
FormatState
.StartIndex;
445
if (dn.
FormatState
.ListLevel > 0 && openLists.Count > 0)
450
dn.
FormatState
.StartIndex = nStart; // Record this here for later use in \\pnstart
451
dn.ListLabel = Converters.MarkerCountToString(dnList.
FormatState
.Marker, nCount);
483
dn.
FormatState
.ITAP = iLevel;
487
dn.
FormatState
.IsInTable = true;
503
if (dn.
FormatState
.Font >= 0)
506
_rtfBuilder.Append(dn.
FormatState
.Font.ToString(CultureInfo.InvariantCulture));
693
FormatState fsThis = documentNode.
FormatState
;
695
? documentNode.Parent.
FormatState
933
FormatState fsThis = dnThis.
FormatState
;
934
FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.
FormatState
: FormatState.EmptyFormatState;
1030
FormatState fsThis = dnThis.
FormatState
;
1031
FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.
FormatState
: FormatState.EmptyFormatState;
1202
fsAll = dnChild.
FormatState
.FontSize;
1204
else if (fsAll != dnChild.
FormatState
.FontSize)
1210
fontAll = dnChild.
FormatState
.Font;
1212
else if (fontAll != dnChild.
FormatState
.Font)
1291
if (bNewStyle && dnList.
FormatState
.PNLVL == 1)
1300
if (dnList.
FormatState
.Marker != MarkerStyle.MarkerBullet
1301
&& dnList.
FormatState
.Marker != MarkerStyle.MarkerNone)
1325
if (dnList.
FormatState
.Marker != MarkerStyle.MarkerBullet
1326
&& dnList.
FormatState
.Marker != MarkerStyle.MarkerNone)
1331
_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.
FormatState
.Marker));
1332
if (fsThis.ListLevel > 0 && dnList.
FormatState
.PNLVL > 1)
1346
if (dnList.
FormatState
.Marker == MarkerStyle.MarkerBullet)
1350
else if (dnList.
FormatState
.Marker == MarkerStyle.MarkerNone)
1434
long l = dirPa == DirState.DirLTR ? dnTable.
FormatState
.LI : dnTable.
FormatState
.RI;
1471
if (dnCell.
FormatState
.HasRowFormat)
1473
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1536
if (dnCell.
FormatState
.HasRowFormat)
1538
if (dnCell.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst)
1542
else if (dnCell.
FormatState
.RowFormat.RowCellFormat.IsVMerge)
1562
if (dnCell.
FormatState
.HasRowFormat)
1564
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1589
if (dnCell.
FormatState
.CBPara >= 0)
1591
fs = dnCell.
FormatState
;
1593
else if (dnCell.Parent != null && dnCell.Parent.
FormatState
.CBPara >= 0)
1595
fs = dnCell.Parent.
FormatState
;
1615
if (dnTable.
FormatState
.HasRowFormat)
1617
RowFormat rf = dnTable.
FormatState
.RowFormat;
1769
dnNew.FormatState = new FormatState(dnSpanningCell.
FormatState
);
1770
if (dnSpanningCell.
FormatState
.HasRowFormat)
1772
dnNew.
FormatState
.RowFormat = new RowFormat(dnSpanningCell.
FormatState
.RowFormat);
1774
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst = false;
1775
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMerge = true;
1811
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1827
dnNew.FormatState = new FormatState(dnSpanningCell.
FormatState
);
1828
if (dnSpanningCell.
FormatState
.HasRowFormat)
1830
dnNew.
FormatState
.RowFormat = new RowFormat(dnSpanningCell.
FormatState
.RowFormat);
1832
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst = false;
1833
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMerge = true;
1905
if (dnThis.
FormatState
.HasRowFormat)
1907
dnThis.
FormatState
.RowFormat.Trleft = dnThis.
FormatState
.LI;
1908
dnThis.
FormatState
.RowFormat.CanonicalizeWidthsFromXaml();
2021
using (Stream imageStream = _wpfPayload.GetImageStream(documentNode.
FormatState
.ImageSource))
2024
RtfImageFormat imageFormat = GetImageFormatFromImageSourceName(documentNode.
FormatState
.ImageSource);
2050
Size imageInputSize = new Size(documentNode.
FormatState
.ImageWidth, documentNode.
FormatState
.ImageHeight);
2065
System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.
FormatState
.ImageStretch);
2066
System.Windows.Controls.StretchDirection imageStretchDirection = GetImageStretchDirection(documentNode.
FormatState
.ImageStretchDirection);
2103
if (documentNode.
FormatState
.IncludeImageBaselineOffset)
2110
documentNode.
FormatState
.ImageBaselineOffset));
2465
dn.InheritFormatState(dnTop.
FormatState
);
2473
FontTableEntry e = converterState.FontTable.FindEntryByIndex((int)dn.
FormatState
.Font);
2800
documentNode.InheritFormatState(dnTop.
FormatState
);
2807
documentNode.
FormatState
.Bold = true;
2813
documentNode.
FormatState
.UL = ULState.ULNormal;
2816
documentNode.
FormatState
.CF = lColor;
2822
documentNode.
FormatState
.Italic = true;
2826
documentNode.
FormatState
.UL = ULState.ULNormal;
2830
documentNode.
FormatState
.Marker = MarkerStyle.MarkerBullet;
2831
documentNode.
FormatState
.StartIndex = 1;
2834
documentNode.
FormatState
.LI = 720;
2856
FormatState formatState = documentNode.
FormatState
;
3078
RowFormat rf = dnTable.
FormatState
.RowFormat;
3090
documentNode.
FormatState
.ImageWidth = d;
3099
documentNode.
FormatState
.ImageHeight = d;
3108
documentNode.
FormatState
.ImageBaselineOffset = d;
3109
documentNode.
FormatState
.IncludeImageBaselineOffset = true;
3116
documentNode.
FormatState
.ImageSource = valueString;
3123
documentNode.
FormatState
.ImageSource = valueString;
3130
documentNode.
FormatState
.ImageStretch = valueString;
3137
documentNode.
FormatState
.ImageStretchDirection = valueString;