2 instantiations of TextStore
PresentationCore (2)
Core\CSharp\MS\Internal\TextFormatting\FullTextState.cs (2)
88
TextStore store = new
TextStore
(
103
markerStore = new
TextStore
(
81 references to TextStore
PresentationCore (81)
Core\CSharp\MS\Internal\TextFormatting\FormatSettings.cs (4)
224
charString = new CharacterBufferRange((char*)
TextStore
.PwchObjectReplacement, 1);
237
charString = new CharacterBufferRange((char*)
TextStore
.PwchLineSeparator, 1);
250
charString = new CharacterBufferRange((char*)
TextStore
.PwchParaSeparator, 1);
257
charString = new CharacterBufferRange((char*)
TextStore
.PwchHidden, 1);
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (10)
233
TextStore
store = fullText.TextStore;
234
TextStore
markerStore = fullText.TextMarkerStore;
506
TextStore
store,
546
} while ( !
TextStore
.IsNewline(lsrun.Type)
2039
if(
TextStore
.IsContent(plsrun))
2803
plsrun =
TextStore
.ToIndex(plsrun);
2823
if (
TextStore
.IsMarker(plsrun))
2828
plsrun =
TextStore
.ToIndex(plsrun);
2831
TextStore
.IsContent(plsrun) ?
2833
TextStore
.ControlRuns[(int)plsrun]
Core\CSharp\MS\Internal\TextFormatting\FullTextState.cs (13)
36
private
TextStore
_store; // formatting store for main text
37
private
TextStore
_markerStore; // store specifically for marker
88
TextStore
store = new TextStore(
96
TextStore
markerStore = null;
116
TextStore
.LscpFirstMarker, // first lscp value for marker text
130
TextStore
store,
131
TextStore
markerStore,
322
Debug.Assert(!
TextStore
.IsMarker(plsrun));
571
internal
TextStore
StoreFrom(Plsrun plsrun)
573
return
TextStore
.IsMarker(plsrun) ? _markerStore : _store;
580
internal
TextStore
StoreFrom(int lscp)
630
internal
TextStore
TextStore
639
internal
TextStore
TextMarkerStore
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (31)
132
TextStore
store = fullTextState.StoreFrom(lscpFetch);
191
lschp.idObj = (ushort)
TextStore
.ObjectId.Reverse;
196
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
200
lschp.idObj = (ushort)
TextStore
.ObjectId.InlineObject;
205
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
211
Debug.Assert(
TextStore
.IsContent(plsrun), "Unrecognizable run!");
214
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
239
Invariant.Assert(!
TextStore
.IsNewline(lsrun.CharacterAttributeFlags));
245
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
338
TextStore
store = FullText.StoreFrom(lscpFetch);
429
TextStore
store = FullText.TextStore;
430
TextStore
markerStore = FullText.TextMarkerStore;
481
TextStore
store = fullText.StoreFrom(plsrun);
671
TextStore
markerStore = fullTextState.TextMarkerStore;
672
TextStore
store = fullTextState.TextStore;
675
int lscp =
TextStore
.LscpFirstMarker;
693
} while (!
TextStore
.IsContent(plsrun));
698
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
746
!
TextStore
.IsContent(plsrun) || lsrun.Type == Plsrun.Text || lsrun.Type == Plsrun.InlineObject,
814
!
TextStore
.IsContent(plsrun) || lsrun.Type == Plsrun.Text || lsrun.Type == Plsrun.InlineObject,
1024
if (!
TextStore
.IsContent(plsrun))
1094
if (!
TextStore
.IsContent(plsrun))
1621
TextStore
store = FullText.StoreFrom(plsrunFirst);
1623
if ( !
TextStore
.IsContent(plsrunFirst)
1624
|| !
TextStore
.IsContent(plsrunSecond))
1898
TextStore
store = FullText.StoreFrom((Plsrun)(*plsplsruns));
1904
Debug.Assert(
TextStore
.IsContent(plsrun) && lsruns[i] != null);
1945
Debug.Assert(
TextStore
.IsContent(plsrun) && lsrun.Shapeable != null);
2477
if (objectId < (uint)
TextStore
.ObjectId.MaxNative)
2491
case (uint)
TextStore
.ObjectId.InlineObject:
2545
TextStore
store = FullText.StoreFrom(plsrun);
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (9)
189
if (nonHiddenLength >=
TextStore
.MaxCharactersPerLine)
1510
if (charString[0] ==
TextStore
.CharCarriageReturn)
1515
if (charString.Length > 1 && charString[1] ==
TextStore
.CharLineFeed)
1534
if (newBufferRange.Length > 0 && newBufferRange[0] ==
TextStore
.CharLineFeed)
1539
characterArray[0] =
TextStore
.CharCarriageReturn;
1540
characterArray[1] =
TextStore
.CharLineFeed;
1548
else if (charString[0] ==
TextStore
.CharLineFeed)
1555
else if (canProcessTabsInSimpleShapingPath && charString[0] ==
TextStore
.CharTab)
1971
if (
TextStore
.IsSpace(ch))
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (1)
149
TextStore
store = fullText.TextStore;
Core\CSharp\MS\Internal\TextFormatting\TextRunCacheImp.cs (3)
205
int looseCharLength =
TextStore
.TypicalCharactersPerLine - cpFetch + cpFirst;
212
looseCharLength = (int)Math.Round(
TextStore
.TypicalCharactersPerLine * 0.25);
235
int lookAheadLimit = Math.Min(runLength, looseCharLength +
TextStore
.TypicalCharactersPerLine);
Core\CSharp\System\Windows\Media\TextFormatting\TextFormatterContext.cs (4)
94
contextInfo.cEstimatedCharsPerLine =
TextStore
.TypicalCharactersPerLine;
108
contextInfo.wchEndPara1 =
TextStore
.CharParaSeparator; // Unicode para separator
139
contextInfo.wchEscAnmRun =
TextStore
.CharParaSeparator;
141
contextInfo.wchEndLineInPara =
TextStore
.CharLineSeparator;
Core\CSharp\System\Windows\Media\Typeface.cs (6)
444
if (ch ==
TextStore
.CharLineFeed || ch ==
TextStore
.CharCarriageReturn || (breakOnTabs && ch ==
TextStore
.CharTab))
487
if (ch ==
TextStore
.CharLineFeed || ch ==
TextStore
.CharCarriageReturn || (breakOnTabs && ch ==
TextStore
.CharTab))