17 writes to FormatState
PresentationFramework (17)
System\Windows\Documents\RtfToXamlReader.cs (15)
6367
dnNewDir.
FormatState
= new FormatState(dn.Parent.FormatState);
7293
dnNewTable.
FormatState
= new FormatState(dn.FormatState);
8346
dn.
FormatState
= new FormatState(_converterState.PreviousTopFormatState(0));
8453
dn.
FormatState
= new FormatState(_converterState.PreviousTopFormatState(0));
8665
dnImage.
FormatState
= formatState;
8857
dnEnd.
FormatState
= new FormatState(fsCur);
8871
dnEnd.
FormatState
= new FormatState(fsCur);
9856
dn.
FormatState
= new FormatState(formatState);
9873
dn.
FormatState
= new FormatState(dnChild.FormatState);
10158
dnl.
FormatState
= new FormatState(formatState);
10326
dn.
FormatState
= new FormatState(formatState);
10435
dnl.
FormatState
= new FormatState(formatState);
11004
dnf.
FormatState
= new FormatState(formatState);
11507
dnTop.
FormatState
= new FormatState(formatState);
11527
documentNode.
FormatState
= new FormatState(formatState);
System\Windows\Documents\XamlToRtfWriter.cs (2)
1770
dnNew.
FormatState
= new FormatState(dnSpanningCell.FormatState);
1828
dnNew.
FormatState
= new FormatState(dnSpanningCell.FormatState);
180 references to FormatState
PresentationFramework (180)
System\Windows\Documents\RtfToXamlReader.cs (73)
4751
FormatState
.SetCharDefaults();
4752
FormatState
.Font = fsOrig.Font;
4753
FormatState
.FontSize = fsOrig.FontSize;
4754
FormatState
.Bold = fsOrig.Bold;
4755
FormatState
.Italic = fsOrig.Italic;
4772
FormatState fsThis =
FormatState
;
4787
FormatState fsThis =
FormatState
;
5114
if (
FormatState
.HasRowFormat)
5116
if (
FormatState
.RowFormat.Dir == DirState.DirRTL)
5121
RowFormat rf =
FormatState
.RowFormat;
5144
Debug.Assert(dnRow != null && dnRow.
FormatState
.RowFormat != null);
5146
if (dnRow != null && dnRow.
FormatState
.HasRowFormat)
5149
CellFormat cf = dnRow.
FormatState
.RowFormat.NthCellFormat(nCol);
5198
FormatState fsThis =
FormatState
;
5273
if (dnList != null && dnList.
FormatState
.Marker != MarkerStyle.MarkerHidden)
5294
xamlStringBuilder.Append(Converters.MarkerStyleToString(
FormatState
.Marker));
5298
if (
FormatState
.StartIndex > 0 &&
FormatState
.StartIndex != 1)
5301
xamlStringBuilder.Append(
FormatState
.StartIndex.ToString(CultureInfo.InvariantCulture));
5325
if (
FormatState
.HasRowFormat)
5327
prevX =
FormatState
.RowFormat.Trleft;
5382
FormatState fsThis = this.
FormatState
;
5581
RowFormat rf = dnRow.
FormatState
.RowFormat;
5890
return dnPa.
FormatState
;
6032
return
FormatState
.DirChar;
6038
if (
FormatState
.HasRowFormat)
6040
return
FormatState
.RowFormat.Dir;
6047
return
FormatState
.DirPara;
6086
return ParentXamlDir == DirState.DirLTR ?
FormatState
.LI :
FormatState
.RI;
6092
FormatState
.LI = value;
6096
FormatState
.RI = value;
6105
return ParentXamlDir == DirState.DirLTR ?
FormatState
.RI :
FormatState
.LI;
6226
if (!cs.Row.
FormatState
.RowFormat.IsVMerge)
6356
|| dnn.
FormatState
.DirChar != dn.
FormatState
.DirChar
6367
dnNewDir.FormatState = new FormatState(dn.Parent.
FormatState
);
6368
dnNewDir.
FormatState
.DirChar = dn.
FormatState
.DirChar;
6771
ml.AddEntry(dn.
FormatState
.Marker, dn.
FormatState
.ILS,
6772
dn.
FormatState
.StartIndex,
6773
dn.
FormatState
.StartIndexDefault, dn.VirtualListLevel);
6824
mle.Marker = dnList.
FormatState
.Marker;
6825
mle.StartIndexOverride = dnList.
FormatState
.StartIndex;
6826
mle.StartIndexDefault = dnList.
FormatState
.StartIndexDefault;
6828
mle.ILS = dnList.
FormatState
.ILS;
7244
ds = ddn.
FormatState
.DirPara;
7246
else if (ds != ddn.
FormatState
.DirPara)
7262
ddn.
FormatState
.DirPara = ds;
7293
dnNewTable.FormatState = new FormatState(dn.
FormatState
);
7294
dnNewTable.
FormatState
.RowFormat = EntryAt(nUnfilledRowIndex).
FormatState
.RowFormat;
7329
RowFormat rf = dn.
FormatState
.RowFormat;
7429
RowFormat rf = dnRow.
FormatState
.RowFormat;
8051
switch (dn.
FormatState
.RtfDestination)
8066
switch (dn.
FormatState
.RtfDestination)
8571
dn.
FormatState
.FontSize = (long)((d * 2) + 0.5);
8594
dn.
FormatState
.Font = _converterState.FontTable.DefineEntryByName(name);
9873
dn.FormatState = new FormatState(dnChild.
FormatState
);
9874
dn.ConstrainFontPropagation(dn.
FormatState
);
10009
dnRow.
FormatState
.RowFormat = new RowFormat(formatState.RowFormat);
10010
dnRow.
FormatState
.RowFormat.CanonicalizeWidthsFromRTF();
10017
if (!dnTable.
FormatState
.HasRowFormat)
10019
dnTable.
FormatState
.RowFormat = dnRow.
FormatState
.RowFormat;
11294
dnPara.
FormatState
.FI = 0;
11496
if (!dnTop.
FormatState
.IsEqual(formatState))
11685
dnList.
FormatState
.Marker = mle.Marker;
11686
dnList.
FormatState
.StartIndex = mle.StartIndexToUse;
11687
dnList.
FormatState
.StartIndexDefault = mle.StartIndexDefault;
11689
dnList.
FormatState
.ILS = mle.ILS;
System\Windows\Documents\XamlToRtfWriter.cs (107)
283
MarkerStyle marker = dnList.
FormatState
.Marker;
284
long nStartIndex = dnList.
FormatState
.StartIndex;
322
dn.
FormatState
.ILVL = iLevel - 1;
324
dn.
FormatState
.ILS = j + 1;
330
if (dnList.
FormatState
.PNLVL < iLevel)
332
dnList.
FormatState
.PNLVL = iLevel;
334
if (dnList.
FormatState
.ILS == -1)
336
dnList.
FormatState
.ILS = dn.
FormatState
.ILS;
338
else if (dnList.
FormatState
.ILS != dn.
FormatState
.ILS)
340
dnList.
FormatState
.ILS = 0;
364
long li = dn.
FormatState
.LI;
365
long ri = dn.
FormatState
.RI;
376
li += dnParent.
FormatState
.LI;
377
ri += dnParent.
FormatState
.RI;
381
dn.
FormatState
.LI = li;
382
dn.
FormatState
.RI = ri;
431
openCounts[openLists.Count - 1] = dn.
FormatState
.StartIndex - 1;
432
openStarts[openLists.Count - 1] = dn.
FormatState
.StartIndex;
446
if (dn.
FormatState
.ListLevel > 0 && openLists.Count > 0)
451
dn.
FormatState
.StartIndex = nStart; // Record this here for later use in \\pnstart
452
dn.ListLabel = Converters.MarkerCountToString(dnList.
FormatState
.Marker, nCount);
484
dn.
FormatState
.ITAP = iLevel;
488
dn.
FormatState
.IsInTable = true;
504
if (dn.
FormatState
.Font >= 0)
507
_rtfBuilder.Append(dn.
FormatState
.Font.ToString(CultureInfo.InvariantCulture));
694
FormatState fsThis = documentNode.
FormatState
;
696
? documentNode.Parent.
FormatState
934
FormatState fsThis = dnThis.
FormatState
;
935
FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.
FormatState
: FormatState.EmptyFormatState;
1031
FormatState fsThis = dnThis.
FormatState
;
1032
FormatState fsParent = dnThis.Parent != null ? dnThis.Parent.
FormatState
: FormatState.EmptyFormatState;
1203
fsAll = dnChild.
FormatState
.FontSize;
1205
else if (fsAll != dnChild.
FormatState
.FontSize)
1211
fontAll = dnChild.
FormatState
.Font;
1213
else if (fontAll != dnChild.
FormatState
.Font)
1292
if (bNewStyle && dnList.
FormatState
.PNLVL == 1)
1301
if (dnList.
FormatState
.Marker != MarkerStyle.MarkerBullet
1302
&& dnList.
FormatState
.Marker != MarkerStyle.MarkerNone)
1326
if (dnList.
FormatState
.Marker != MarkerStyle.MarkerBullet
1327
&& dnList.
FormatState
.Marker != MarkerStyle.MarkerNone)
1332
_rtfBuilder.Append(Converters.MarkerStyleToOldRTFString(dnList.
FormatState
.Marker));
1333
if (fsThis.ListLevel > 0 && dnList.
FormatState
.PNLVL > 1)
1347
if (dnList.
FormatState
.Marker == MarkerStyle.MarkerBullet)
1351
else if (dnList.
FormatState
.Marker == MarkerStyle.MarkerNone)
1435
long l = dirPa == DirState.DirLTR ? dnTable.
FormatState
.LI : dnTable.
FormatState
.RI;
1472
if (dnCell.
FormatState
.HasRowFormat)
1474
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1537
if (dnCell.
FormatState
.HasRowFormat)
1539
if (dnCell.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst)
1543
else if (dnCell.
FormatState
.RowFormat.RowCellFormat.IsVMerge)
1563
if (dnCell.
FormatState
.HasRowFormat)
1565
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1590
if (dnCell.
FormatState
.CBPara >= 0)
1592
fs = dnCell.
FormatState
;
1594
else if (dnCell.Parent != null && dnCell.Parent.
FormatState
.CBPara >= 0)
1596
fs = dnCell.Parent.
FormatState
;
1616
if (dnTable.
FormatState
.HasRowFormat)
1618
RowFormat rf = dnTable.
FormatState
.RowFormat;
1770
dnNew.FormatState = new FormatState(dnSpanningCell.
FormatState
);
1771
if (dnSpanningCell.
FormatState
.HasRowFormat)
1773
dnNew.
FormatState
.RowFormat = new RowFormat(dnSpanningCell.
FormatState
.RowFormat);
1775
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst = false;
1776
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMerge = true;
1812
CellFormat cf = dnCell.
FormatState
.RowFormat.RowCellFormat;
1828
dnNew.FormatState = new FormatState(dnSpanningCell.
FormatState
);
1829
if (dnSpanningCell.
FormatState
.HasRowFormat)
1831
dnNew.
FormatState
.RowFormat = new RowFormat(dnSpanningCell.
FormatState
.RowFormat);
1833
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMergeFirst = false;
1834
dnNew.
FormatState
.RowFormat.RowCellFormat.IsVMerge = true;
1906
if (dnThis.
FormatState
.HasRowFormat)
1908
dnThis.
FormatState
.RowFormat.Trleft = dnThis.
FormatState
.LI;
1909
dnThis.
FormatState
.RowFormat.CanonicalizeWidthsFromXaml();
2022
using (Stream imageStream = _wpfPayload.GetImageStream(documentNode.
FormatState
.ImageSource))
2025
RtfImageFormat imageFormat = GetImageFormatFromImageSourceName(documentNode.
FormatState
.ImageSource);
2051
Size imageInputSize = new Size(documentNode.
FormatState
.ImageWidth, documentNode.
FormatState
.ImageHeight);
2066
System.Windows.Media.Stretch imageStretch = GetImageStretch(documentNode.
FormatState
.ImageStretch);
2067
System.Windows.Controls.StretchDirection imageStretchDirection = GetImageStretchDirection(documentNode.
FormatState
.ImageStretchDirection);
2104
if (documentNode.
FormatState
.IncludeImageBaselineOffset)
2111
documentNode.
FormatState
.ImageBaselineOffset));
2466
dn.InheritFormatState(dnTop.
FormatState
);
2474
FontTableEntry e = converterState.FontTable.FindEntryByIndex((int)dn.
FormatState
.Font);
2801
documentNode.InheritFormatState(dnTop.
FormatState
);
2808
documentNode.
FormatState
.Bold = true;
2814
documentNode.
FormatState
.UL = ULState.ULNormal;
2817
documentNode.
FormatState
.CF = lColor;
2823
documentNode.
FormatState
.Italic = true;
2827
documentNode.
FormatState
.UL = ULState.ULNormal;
2831
documentNode.
FormatState
.Marker = MarkerStyle.MarkerBullet;
2832
documentNode.
FormatState
.StartIndex = 1;
2835
documentNode.
FormatState
.LI = 720;
2857
FormatState formatState = documentNode.
FormatState
;
3079
RowFormat rf = dnTable.
FormatState
.RowFormat;
3091
documentNode.
FormatState
.ImageWidth = d;
3100
documentNode.
FormatState
.ImageHeight = d;
3109
documentNode.
FormatState
.ImageBaselineOffset = d;
3110
documentNode.
FormatState
.IncludeImageBaselineOffset = true;
3117
documentNode.
FormatState
.ImageSource = valueString;
3124
documentNode.
FormatState
.ImageSource = valueString;
3131
documentNode.
FormatState
.ImageStretch = valueString;
3138
documentNode.
FormatState
.ImageStretchDirection = valueString;