1 write to _converterState
PresentationFramework (1)
System\Windows\Documents\RtfToXamlReader.cs (1)
7761
_converterState
= new ConverterState();
128 references to _converterState
PresentationFramework (128)
System\Windows\Documents\RtfToXamlReader.cs (128)
7762
_converterState
.RtfFormatStack.Push();
7787
int nStartCount =
_converterState
.RtfFormatStack.Count;
7791
rtfToXamlError = _lexer.Next(token,
_converterState
.TopFormatState);
7801
_converterState
.RtfFormatStack.Push();
7816
while (
_converterState
.RtfFormatStack.Count > 2 &&
_converterState
.RtfFormatStack.Count > nStartCount)
7845
_converterState
.TopFormatState.RtfDestination == RtfDestination.DestFieldResult)
7851
_converterState
.TopFormatState.RtfDestination = RtfDestination.DestUnknown;
7878
ProcessImage(
_converterState
.TopFormatState);
7923
return
_converterState
;
7948
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
7967
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
7992
FormatState formatState =
_converterState
.TopFormatState;
8002
dna.CoalesceAll(
_converterState
);
8044
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
8211
dnInstruction.AppendXamlPrefix(
_converterState
);
8354
FormatState = new FormatState(
_converterState
.PreviousTopFormatState(0))
8463
FormatState = new FormatState(
_converterState
.PreviousTopFormatState(0))
8605
dn.FormatState.Font =
_converterState
.FontTable.DefineEntryByName(name);
8746
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
8801
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
8828
dna.CoalesceChildren(
_converterState
, ndnListText);
8831
_converterState
.IsMarkerWhiteSpace = true;
8834
_converterState
.IsMarkerPresent = true;
8840
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
8846
FormatState formatState =
_converterState
.TopFormatState;
8859
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
8909
ListTableEntry listTableEntry =
_converterState
.ListTable.CurrentEntry;
8925
FontTableEntry entry =
_converterState
.FontTable.CurrentEntry;
8934
_converterState
.FontTable.MapFonts();
8942
if (
_converterState
.RtfFormatStack.Count > 2)
8944
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
8945
FormatState fsCur =
_converterState
.PreviousTopFormatState(0);
8946
FormatState fsNew =
_converterState
.PreviousTopFormatState(1);
8955
FontTableEntry entry =
_converterState
.FontTable.CurrentEntry;
8959
_converterState
.RtfFormatStack.Pop();
8962
_lexer.CodePage =
_converterState
.CodePage;
8971
&&
_converterState
.DefaultFont >= 0)
8973
SelectFont(
_converterState
.DefaultFont);
8977
else if (fsCur.Font < 0 &&
_converterState
.DefaultFont >= 0)
8979
SelectFont(
_converterState
.DefaultFont);
8986
FormatState formatState =
_converterState
.TopFormatState;
8994
FontTableEntry entry =
_converterState
.FontTable.FindEntryByIndex((int)formatState.Font);
8999
formatState.CodePage =
_converterState
.CodePage;
9011
FormatState formatState =
_converterState
.TopFormatState;
9056
_converterState
.FontTable.DefineEntry((int)token.Parameter);
9069
else if (
_converterState
.DefaultLangFE > 0)
9071
formatState.LangCur =
_converterState
.DefaultLangFE;
9080
else if (
_converterState
.DefaultLang > 0)
9082
formatState.LangCur =
_converterState
.DefaultLang;
9105
_converterState
.DefaultLang = token.Parameter;
9108
_converterState
.DefaultLangFE = token.Parameter;
9111
_converterState
.DefaultFont = token.Parameter;
9115
FormatState previousFormatState =
_converterState
.PreviousTopFormatState(1);
9119
FontTableEntry entry =
_converterState
.FontTable.CurrentEntry;
9196
if (
_converterState
.DefaultFont >= 0)
9198
SelectFont(
_converterState
.DefaultFont);
9608
_converterState
.ColorTable.NewRed = (byte)token.Parameter;
9613
_converterState
.ColorTable.NewGreen = (byte)token.Parameter;
9618
_converterState
.ColorTable.NewBlue = (byte)token.Parameter;
9626
FormatState previousFormatState =
_converterState
.PreviousTopFormatState(1);
9694
FormatState fs =
_converterState
.TopFormatState;
9735
switch (
_converterState
.TopFormatState.RtfDestination)
9741
HandleNormalText(token.Text,
_converterState
.TopFormatState);
9810
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
9849
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
9874
dna.CoalesceOnlyChildren(
_converterState
, nInsertAt);
9879
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
9902
dna.CoalesceOnlyChildren(
_converterState
, nInsertAt);
9907
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
9933
FormatState fsCur =
_converterState
.PreviousTopFormatState(0);
9934
FormatState fsOld =
_converterState
.PreviousTopFormatState(1);
9951
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
10057
ListTable lt =
_converterState
.ListTable;
10058
ListOverrideTable lot =
_converterState
.ListOverrideTable;
10059
RtfFormatStack formats =
_converterState
.RtfFormatStack;
10080
ListTable lt =
_converterState
.ListTable;
10081
ListOverrideTable lot =
_converterState
.ListOverrideTable;
10082
RtfFormatStack formats =
_converterState
.RtfFormatStack;
10114
ListTable listTable =
_converterState
.ListTable;
10115
ListOverrideTable listOverrideTable =
_converterState
.ListOverrideTable;
10117
FormatState fsCur =
_converterState
.PreviousTopFormatState(0);
10118
FormatState fsOld =
_converterState
.PreviousTopFormatState(1);
10163
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
10241
FormatState previousFormatState =
_converterState
.PreviousTopFormatState(1);
10264
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
10265
FormatState fsCur =
_converterState
.PreviousTopFormatState(0);
10266
FormatState fsOld =
_converterState
.PreviousTopFormatState(1);
10304
dna.CoalesceChildren(
_converterState
, nAt);
10353
FormatState fsCur =
_converterState
.PreviousTopFormatState(0);
10354
FormatState fsOld =
_converterState
.PreviousTopFormatState(1);
10426
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
10855
FormatState fsCur =
_converterState
.PreviousTopFormatState(0);
10856
FormatState fsOld =
_converterState
.PreviousTopFormatState(1);
10897
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
10909
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
10940
dna.CoalesceChildren(
_converterState
, nOpen);
11050
ListOverrideTable lot =
_converterState
.ListOverrideTable;
11057
ListTableEntry lte =
_converterState
.ListTable.FindEntry(lo.ID);
11095
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
11097
bool bMarkerPresent =
_converterState
.IsMarkerPresent;
11100
if (
_converterState
.IsMarkerPresent)
11102
_converterState
.IsMarkerPresent = false;
11148
if (
_converterState
.IsMarkerWhiteSpace)
11150
_converterState
.IsMarkerWhiteSpace = false;
11204
_converterState
.CodePage = 1252;
11205
_lexer.CodePage =
_converterState
.CodePage;
11208
_converterState
.CodePage = 10000;
11209
_lexer.CodePage =
_converterState
.CodePage;
11212
_converterState
.CodePage = 437;
11213
_lexer.CodePage =
_converterState
.CodePage;
11216
_converterState
.CodePage = 850;
11217
_lexer.CodePage =
_converterState
.CodePage;
11232
FormatState previous =
_converterState
.PreviousTopFormatState(1);
11233
FormatState previousPrevious =
_converterState
.PreviousTopFormatState(2);
11251
switch (
_converterState
.TopFormatState.RtfDestination)
11257
HandleNormalText(token.Text,
_converterState
.TopFormatState);
11263
HandleNormalText(token.Text,
_converterState
.TopFormatState);
11277
FontTableEntry entry =
_converterState
.FontTable.CurrentEntry;
11295
FontTableEntry entry =
_converterState
.FontTable.CurrentEntry;
11296
FormatState formatState =
_converterState
.TopFormatState;
11309
formatState.CodePage =
_converterState
.CodePage;
11324
_converterState
.ColorTable.FinishColor();
11329
FormatState fs =
_converterState
.TopFormatState;
11386
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
11418
DocumentNodeArray dna =
_converterState
.DocumentNodeArray;
11431
dna.CoalesceChildren(
_converterState
, dna.Count - 1);
11436
switch (
_converterState
.TopFormatState.RtfDestination)