17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6379
FormatState
= new FormatState(dn.Parent.FormatState)
7307
dnNewTable.
FormatState
= new FormatState(dn.FormatState);
8363
FormatState
= new FormatState(_converterState.PreviousTopFormatState(0))
8472
FormatState
= new FormatState(_converterState.PreviousTopFormatState(0))
8685
FormatState
= formatState
8879
FormatState
= new FormatState(fsCur),
8895
FormatState
= new FormatState(fsCur),
9882
FormatState
= new FormatState(formatState)
9901
FormatState
= new FormatState(dnChild.FormatState)
10187
FormatState
= new FormatState(formatState)
10356
dn.
FormatState
= new FormatState(formatState);
10465
FormatState
= new FormatState(formatState)
11032
FormatState
= new FormatState(formatState),
11537
FormatState
= new FormatState(formatState)
11559
FormatState
= new FormatState(formatState)
System\Windows\Documents\XamlToRtfWriter.cs (2)
1768
dnNew.
FormatState
= new FormatState(dnSpanningCell.FormatState);
1826
dnNew.
FormatState
= new FormatState(dnSpanningCell.FormatState);
180 references to FormatState
PresentationFramework (180)
System\Windows\Documents\RtfToXamlReader.cs (73)
4758
FormatState
.SetCharDefaults();
4759
FormatState
.Font = fsOrig.Font;
4760
FormatState
.FontSize = fsOrig.FontSize;
4761
FormatState
.Bold = fsOrig.Bold;
4762
FormatState
.Italic = fsOrig.Italic;
4779
FormatState fsThis =
FormatState
;
4794
FormatState fsThis =
FormatState
;
5121
if (
FormatState
.HasRowFormat)
5123
if (
FormatState
.RowFormat.Dir == DirState.DirRTL)
5128
RowFormat rf =
FormatState
.RowFormat;
5151
Debug.Assert(dnRow != null && dnRow.
FormatState
.RowFormat != null);
5153
if (dnRow != null && dnRow.
FormatState
.HasRowFormat)
5156
CellFormat cf = dnRow.
FormatState
.RowFormat.NthCellFormat(nCol);
5205
FormatState fsThis =
FormatState
;
5280
if (dnList != null && dnList.
FormatState
.Marker != MarkerStyle.MarkerHidden)
5301
xamlStringBuilder.Append(Converters.MarkerStyleToString(
FormatState
.Marker));
5305
if (
FormatState
.StartIndex > 0 &&
FormatState
.StartIndex != 1)
5308
xamlStringBuilder.Append(
FormatState
.StartIndex.ToString(CultureInfo.InvariantCulture));
5332
if (
FormatState
.HasRowFormat)
5334
prevX =
FormatState
.RowFormat.Trleft;
5389
FormatState fsThis = this.
FormatState
;
5588
RowFormat rf = dnRow.
FormatState
.RowFormat;
5901
return dnPa.
FormatState
;
6043
return
FormatState
.DirChar;
6049
if (
FormatState
.HasRowFormat)
6051
return
FormatState
.RowFormat.Dir;
6058
return
FormatState
.DirPara;
6097
return ParentXamlDir == DirState.DirLTR ?
FormatState
.LI :
FormatState
.RI;
6103
FormatState
.LI = value;
6107
FormatState
.RI = value;
6116
return ParentXamlDir == DirState.DirLTR ?
FormatState
.RI :
FormatState
.LI;
6237
if (!cs.Row.
FormatState
.RowFormat.IsVMerge)
6367
|| dnn.
FormatState
.DirChar != dn.
FormatState
.DirChar
6379
FormatState = new FormatState(dn.Parent.
FormatState
)
6381
dnNewDir.
FormatState
.DirChar = dn.
FormatState
.DirChar;
6784
ml.AddEntry(dn.
FormatState
.Marker, dn.
FormatState
.ILS,
6785
dn.
FormatState
.StartIndex,
6786
dn.
FormatState
.StartIndexDefault, dn.VirtualListLevel);
6837
Marker = dnList.
FormatState
.Marker,
6838
StartIndexOverride = dnList.
FormatState
.StartIndex,
6839
StartIndexDefault = dnList.
FormatState
.StartIndexDefault,
6841
ILS = dnList.
FormatState
.ILS
7258
ds = ddn.
FormatState
.DirPara;
7260
else if (ds != ddn.
FormatState
.DirPara)
7276
ddn.
FormatState
.DirPara = ds;
7307
dnNewTable.FormatState = new FormatState(dn.
FormatState
);
7308
dnNewTable.
FormatState
.RowFormat = EntryAt(nUnfilledRowIndex).
FormatState
.RowFormat;
7343
RowFormat rf = dn.
FormatState
.RowFormat;
7443
RowFormat rf = dnRow.
FormatState
.RowFormat;
8067
switch (dn.
FormatState
.RtfDestination)
8082
switch (dn.
FormatState
.RtfDestination)
8591
dn.
FormatState
.FontSize = (long)((d * 2) + 0.5);
8614
dn.
FormatState
.Font = _converterState.FontTable.DefineEntryByName(name);
9901
FormatState = new FormatState(dnChild.
FormatState
)
9903
dn.ConstrainFontPropagation(dn.
FormatState
);
10038
dnRow.
FormatState
.RowFormat = new RowFormat(formatState.RowFormat);
10039
dnRow.
FormatState
.RowFormat.CanonicalizeWidthsFromRTF();
10046
if (!dnTable.
FormatState
.HasRowFormat)
10048
dnTable.
FormatState
.RowFormat = dnRow.
FormatState
.RowFormat;
11323
dnPara.
FormatState
.FI = 0;
11525
if (!dnTop.
FormatState
.IsEqual(formatState))
11718
dnList.
FormatState
.Marker = mle.Marker;
11719
dnList.
FormatState
.StartIndex = mle.StartIndexToUse;
11720
dnList.
FormatState
.StartIndexDefault = mle.StartIndexDefault;
11722
dnList.
FormatState
.ILS = mle.ILS;
System\Windows\Documents\XamlToRtfWriter.cs (107)
281
MarkerStyle marker = dnList.
FormatState
.Marker;
282
long nStartIndex = dnList.
FormatState
.StartIndex;
320
dn.
FormatState
.ILVL = iLevel - 1;
322
dn.
FormatState
.ILS = j + 1;
328
if (dnList.
FormatState
.PNLVL < iLevel)
330
dnList.
FormatState
.PNLVL = iLevel;
332
if (dnList.
FormatState
.ILS == -1)
334
dnList.
FormatState
.ILS = dn.
FormatState
.ILS;
336
else if (dnList.
FormatState
.ILS != dn.
FormatState
.ILS)
338
dnList.
FormatState
.ILS = 0;
362
long li = dn.
FormatState
.LI;
363
long ri = dn.
FormatState
.RI;
374
li += dnParent.
FormatState
.LI;
375
ri += dnParent.
FormatState
.RI;
379
dn.
FormatState
.LI = li;
380
dn.
FormatState
.RI = ri;
429
openCounts[openLists.Count - 1] = dn.
FormatState
.StartIndex - 1;
430
openStarts[openLists.Count - 1] = dn.
FormatState
.StartIndex;
444
if (dn.
FormatState
.ListLevel > 0 && openLists.Count > 0)
449
dn.
FormatState
.StartIndex = nStart; // Record this here for later use in \\pnstart
450
dn.ListLabel = Converters.MarkerCountToString(dnList.
FormatState
.Marker, nCount);
482
dn.
FormatState
.ITAP = iLevel;
486
dn.
FormatState
.IsInTable = true;
502
if (dn.
FormatState
.Font >= 0)
505
_rtfBuilder.Append(dn.
FormatState
.Font.ToString(CultureInfo.InvariantCulture));
692
FormatState fsThis = documentNode.
FormatState
;
694
? documentNode.Parent.
FormatState
932
FormatState fsThis = dnThis.
FormatState
;
933
FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.
FormatState
: FormatState.EmptyFormatState;
1029
FormatState fsThis = dnThis.
FormatState
;
1030
FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.
FormatState
: FormatState.EmptyFormatState;
1201
fsAll = dnChild.
FormatState
.FontSize;
1203
else if (fsAll != dnChild.
FormatState
.FontSize)
1209
fontAll = dnChild.
FormatState
.Font;
1211
else if (fontAll != dnChild.
FormatState
.Font)
1290
if (bNewStyle && dnList.
FormatState
.PNLVL == 1)
1299
if (dnList.
FormatState
.Marker != MarkerStyle.MarkerBullet
1300
&& dnList.
FormatState
.Marker != MarkerStyle.MarkerNone)
1324
if (dnList.
FormatState
.Marker != MarkerStyle.MarkerBullet
1325
&& dnList.
FormatState
.Marker != MarkerStyle.MarkerNone)
1330
_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.
FormatState
.Marker));
1331
if (fsThis.ListLevel > 0 && dnList.
FormatState
.PNLVL > 1)
1345
if (dnList.
FormatState
.Marker == MarkerStyle.MarkerBullet)
1349
else if (dnList.
FormatState
.Marker == MarkerStyle.MarkerNone)
1433
long l = dirPa == DirState.DirLTR ? dnTable.
FormatState
.LI : dnTable.
FormatState
.RI;
1470
if (dnCell.
FormatState
.HasRowFormat)
1472
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1535
if (dnCell.
FormatState
.HasRowFormat)
1537
if (dnCell.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst)
1541
else if (dnCell.
FormatState
.RowFormat.RowCellFormat.IsVMerge)
1561
if (dnCell.
FormatState
.HasRowFormat)
1563
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1588
if (dnCell.
FormatState
.CBPara >= 0)
1590
fs = dnCell.
FormatState
;
1592
else if (dnCell.Parent != null && dnCell.Parent.
FormatState
.CBPara >= 0)
1594
fs = dnCell.Parent.
FormatState
;
1614
if (dnTable.
FormatState
.HasRowFormat)
1616
RowFormat rf = dnTable.
FormatState
.RowFormat;
1768
dnNew.FormatState = new FormatState(dnSpanningCell.
FormatState
);
1769
if (dnSpanningCell.
FormatState
.HasRowFormat)
1771
dnNew.
FormatState
.RowFormat = new RowFormat(dnSpanningCell.
FormatState
.RowFormat);
1773
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst = false;
1774
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMerge = true;
1810
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1826
dnNew.FormatState = new FormatState(dnSpanningCell.
FormatState
);
1827
if (dnSpanningCell.
FormatState
.HasRowFormat)
1829
dnNew.
FormatState
.RowFormat = new RowFormat(dnSpanningCell.
FormatState
.RowFormat);
1831
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst = false;
1832
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMerge = true;
1904
if (dnThis.
FormatState
.HasRowFormat)
1906
dnThis.
FormatState
.RowFormat.Trleft = dnThis.
FormatState
.LI;
1907
dnThis.
FormatState
.RowFormat.CanonicalizeWidthsFromXaml();
2020
using (Stream imageStream = _wpfPayload.GetImageStream(documentNode.
FormatState
.ImageSource))
2023
RtfImageFormat imageFormat = GetImageFormatFromImageSourceName(documentNode.
FormatState
.ImageSource);
2049
Size imageInputSize = new Size(documentNode.
FormatState
.ImageWidth, documentNode.
FormatState
.ImageHeight);
2064
System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.
FormatState
.ImageStretch);
2065
System.Windows.Controls.StretchDirection imageStretchDirection = GetImageStretchDirection(documentNode.
FormatState
.ImageStretchDirection);
2102
if (documentNode.
FormatState
.IncludeImageBaselineOffset)
2109
documentNode.
FormatState
.ImageBaselineOffset));
2464
dn.InheritFormatState(dnTop.
FormatState
);
2472
FontTableEntry e = converterState.FontTable.FindEntryByIndex((int)dn.
FormatState
.Font);
2799
documentNode.InheritFormatState(dnTop.
FormatState
);
2806
documentNode.
FormatState
.Bold = true;
2812
documentNode.
FormatState
.UL = ULState.ULNormal;
2815
documentNode.
FormatState
.CF = lColor;
2821
documentNode.
FormatState
.Italic = true;
2825
documentNode.
FormatState
.UL = ULState.ULNormal;
2829
documentNode.
FormatState
.Marker = MarkerStyle.MarkerBullet;
2830
documentNode.
FormatState
.StartIndex = 1;
2833
documentNode.
FormatState
.LI = 720;
2855
FormatState formatState = documentNode.
FormatState
;
3077
RowFormat rf = dnTable.
FormatState
.RowFormat;
3089
documentNode.
FormatState
.ImageWidth = d;
3098
documentNode.
FormatState
.ImageHeight = d;
3107
documentNode.
FormatState
.ImageBaselineOffset = d;
3108
documentNode.
FormatState
.IncludeImageBaselineOffset = true;
3115
documentNode.
FormatState
.ImageSource = valueString;
3122
documentNode.
FormatState
.ImageSource = valueString;
3129
documentNode.
FormatState
.ImageStretch = valueString;
3136
documentNode.
FormatState
.ImageStretchDirection = valueString;