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