17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6380
FormatState
= new FormatState(dn.Parent.FormatState)
7308
dnNewTable.
FormatState
= new FormatState(dn.FormatState);
8364
FormatState
= new FormatState(_converterState.PreviousTopFormatState(0))
8473
FormatState
= new FormatState(_converterState.PreviousTopFormatState(0))
8686
FormatState
= formatState
8880
FormatState
= new FormatState(fsCur),
8896
FormatState
= new FormatState(fsCur),
9883
FormatState
= new FormatState(formatState)
9902
FormatState
= new FormatState(dnChild.FormatState)
10188
FormatState
= new FormatState(formatState)
10357
dn.
FormatState
= new FormatState(formatState);
10466
FormatState
= new FormatState(formatState)
11033
FormatState
= new FormatState(formatState),
11538
FormatState
= new FormatState(formatState)
11560
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)
4759
FormatState
.SetCharDefaults();
4760
FormatState
.Font = fsOrig.Font;
4761
FormatState
.FontSize = fsOrig.FontSize;
4762
FormatState
.Bold = fsOrig.Bold;
4763
FormatState
.Italic = fsOrig.Italic;
4780
FormatState fsThis =
FormatState
;
4795
FormatState fsThis =
FormatState
;
5122
if (
FormatState
.HasRowFormat)
5124
if (
FormatState
.RowFormat.Dir == DirState.DirRTL)
5129
RowFormat rf =
FormatState
.RowFormat;
5152
Debug.Assert(dnRow != null && dnRow.
FormatState
.RowFormat != null);
5154
if (dnRow != null && dnRow.
FormatState
.HasRowFormat)
5157
CellFormat cf = dnRow.
FormatState
.RowFormat.NthCellFormat(nCol);
5206
FormatState fsThis =
FormatState
;
5281
if (dnList != null && dnList.
FormatState
.Marker != MarkerStyle.MarkerHidden)
5302
xamlStringBuilder.Append(Converters.MarkerStyleToString(
FormatState
.Marker));
5306
if (
FormatState
.StartIndex > 0 &&
FormatState
.StartIndex != 1)
5309
xamlStringBuilder.Append(
FormatState
.StartIndex.ToString(CultureInfo.InvariantCulture));
5333
if (
FormatState
.HasRowFormat)
5335
prevX =
FormatState
.RowFormat.Trleft;
5390
FormatState fsThis = this.
FormatState
;
5589
RowFormat rf = dnRow.
FormatState
.RowFormat;
5902
return dnPa.
FormatState
;
6044
return
FormatState
.DirChar;
6050
if (
FormatState
.HasRowFormat)
6052
return
FormatState
.RowFormat.Dir;
6059
return
FormatState
.DirPara;
6098
return ParentXamlDir == DirState.DirLTR ?
FormatState
.LI :
FormatState
.RI;
6104
FormatState
.LI = value;
6108
FormatState
.RI = value;
6117
return ParentXamlDir == DirState.DirLTR ?
FormatState
.RI :
FormatState
.LI;
6238
if (!cs.Row.
FormatState
.RowFormat.IsVMerge)
6368
|| dnn.
FormatState
.DirChar != dn.
FormatState
.DirChar
6380
FormatState = new FormatState(dn.Parent.
FormatState
)
6382
dnNewDir.
FormatState
.DirChar = dn.
FormatState
.DirChar;
6785
ml.AddEntry(dn.
FormatState
.Marker, dn.
FormatState
.ILS,
6786
dn.
FormatState
.StartIndex,
6787
dn.
FormatState
.StartIndexDefault, dn.VirtualListLevel);
6838
Marker = dnList.
FormatState
.Marker,
6839
StartIndexOverride = dnList.
FormatState
.StartIndex,
6840
StartIndexDefault = dnList.
FormatState
.StartIndexDefault,
6842
ILS = dnList.
FormatState
.ILS
7259
ds = ddn.
FormatState
.DirPara;
7261
else if (ds != ddn.
FormatState
.DirPara)
7277
ddn.
FormatState
.DirPara = ds;
7308
dnNewTable.FormatState = new FormatState(dn.
FormatState
);
7309
dnNewTable.
FormatState
.RowFormat = EntryAt(nUnfilledRowIndex).
FormatState
.RowFormat;
7344
RowFormat rf = dn.
FormatState
.RowFormat;
7444
RowFormat rf = dnRow.
FormatState
.RowFormat;
8068
switch (dn.
FormatState
.RtfDestination)
8083
switch (dn.
FormatState
.RtfDestination)
8592
dn.
FormatState
.FontSize = (long)((d * 2) + 0.5);
8615
dn.
FormatState
.Font = _converterState.FontTable.DefineEntryByName(name);
9902
FormatState = new FormatState(dnChild.
FormatState
)
9904
dn.ConstrainFontPropagation(dn.
FormatState
);
10039
dnRow.
FormatState
.RowFormat = new RowFormat(formatState.RowFormat);
10040
dnRow.
FormatState
.RowFormat.CanonicalizeWidthsFromRTF();
10047
if (!dnTable.
FormatState
.HasRowFormat)
10049
dnTable.
FormatState
.RowFormat = dnRow.
FormatState
.RowFormat;
11324
dnPara.
FormatState
.FI = 0;
11526
if (!dnTop.
FormatState
.IsEqual(formatState))
11719
dnList.
FormatState
.Marker = mle.Marker;
11720
dnList.
FormatState
.StartIndex = mle.StartIndexToUse;
11721
dnList.
FormatState
.StartIndexDefault = mle.StartIndexDefault;
11723
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;