2 instantiations of TextStore
PresentationCore (2)
MS\Internal\TextFormatting\FullTextState.cs (2)
72
TextStore store = new
TextStore
(
87
markerStore = new
TextStore
(
81 references to TextStore
PresentationCore (81)
MS\Internal\TextFormatting\FormatSettings.cs (4)
211
charString = new CharacterBufferRange((char*)
TextStore
.PwchObjectReplacement, 1);
224
charString = new CharacterBufferRange((char*)
TextStore
.PwchLineSeparator, 1);
237
charString = new CharacterBufferRange((char*)
TextStore
.PwchParaSeparator, 1);
244
charString = new CharacterBufferRange((char*)
TextStore
.PwchHidden, 1);
MS\Internal\TextFormatting\FullTextLine.cs (10)
196
TextStore
store = fullText.TextStore;
197
TextStore
markerStore = fullText.TextMarkerStore;
469
TextStore
store,
508
} while ( !
TextStore
.IsNewline(lsrun.Type)
1989
if(
TextStore
.IsContent(plsrun))
2727
plsrun =
TextStore
.ToIndex(plsrun);
2747
if (
TextStore
.IsMarker(plsrun))
2752
plsrun =
TextStore
.ToIndex(plsrun);
2755
TextStore
.IsContent(plsrun) ?
2757
TextStore
.ControlRuns[(int)plsrun]
MS\Internal\TextFormatting\FullTextState.cs (13)
20
private
TextStore
_store; // formatting store for main text
21
private
TextStore
_markerStore; // store specifically for marker
72
TextStore
store = new TextStore(
80
TextStore
markerStore = null;
100
TextStore
.LscpFirstMarker, // first lscp value for marker text
114
TextStore
store,
115
TextStore
markerStore,
297
Debug.Assert(!
TextStore
.IsMarker(plsrun));
545
internal
TextStore
StoreFrom(Plsrun plsrun)
547
return
TextStore
.IsMarker(plsrun) ? _markerStore : _store;
554
internal
TextStore
StoreFrom(int lscp)
604
internal
TextStore
TextStore
613
internal
TextStore
TextMarkerStore
MS\Internal\TextFormatting\LineServicesCallbacks.cs (31)
82
TextStore
store = fullTextState.StoreFrom(lscpFetch);
141
lschp.idObj = (ushort)
TextStore
.ObjectId.Reverse;
146
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
150
lschp.idObj = (ushort)
TextStore
.ObjectId.InlineObject;
155
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
161
Debug.Assert(
TextStore
.IsContent(plsrun), "Unrecognizable run!");
164
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
189
Invariant.Assert(!
TextStore
.IsNewline(lsrun.CharacterAttributeFlags));
195
lschp.idObj = (ushort)
TextStore
.ObjectId.Text_chp;
279
TextStore
store = FullText.StoreFrom(lscpFetch);
366
TextStore
store = FullText.TextStore;
367
TextStore
markerStore = FullText.TextMarkerStore;
414
TextStore
store = fullText.StoreFrom(plsrun);
591
TextStore
markerStore = fullTextState.TextMarkerStore;
592
TextStore
store = fullTextState.TextStore;
595
int lscp =
TextStore
.LscpFirstMarker;
613
} while (!
TextStore
.IsContent(plsrun));
619
idObj = (ushort)
TextStore
.ObjectId.Text_chp
664
!
TextStore
.IsContent(plsrun) || lsrun.Type == Plsrun.Text || lsrun.Type == Plsrun.InlineObject,
728
!
TextStore
.IsContent(plsrun) || lsrun.Type == Plsrun.Text || lsrun.Type == Plsrun.InlineObject,
921
if (!
TextStore
.IsContent(plsrun))
986
if (!
TextStore
.IsContent(plsrun))
1492
TextStore
store = FullText.StoreFrom(plsrunFirst);
1494
if ( !
TextStore
.IsContent(plsrunFirst)
1495
|| !
TextStore
.IsContent(plsrunSecond))
1757
TextStore
store = FullText.StoreFrom((Plsrun)(*plsplsruns));
1763
Debug.Assert(
TextStore
.IsContent(plsrun) && lsruns[i] != null);
1799
Debug.Assert(
TextStore
.IsContent(plsrun) && lsrun.Shapeable != null);
2291
if (objectId < (uint)
TextStore
.ObjectId.MaxNative)
2305
case (uint)
TextStore
.ObjectId.InlineObject:
2357
TextStore
store = FullText.StoreFrom(plsrun);
MS\Internal\TextFormatting\SimpleTextLine.cs (9)
176
if (nonHiddenLength >=
TextStore
.MaxCharactersPerLine)
1480
if (charString[0] ==
TextStore
.CharCarriageReturn)
1485
if (charString.Length > 1 && charString[1] ==
TextStore
.CharLineFeed)
1504
if (newBufferRange.Length > 0 && newBufferRange[0] ==
TextStore
.CharLineFeed)
1509
characterArray[0] =
TextStore
.CharCarriageReturn;
1510
characterArray[1] =
TextStore
.CharLineFeed;
1517
else if (charString[0] ==
TextStore
.CharLineFeed)
1524
else if (canProcessTabsInSimpleShapingPath && charString[0] ==
TextStore
.CharTab)
1939
if (
TextStore
.IsSpace(ch))
MS\Internal\TextFormatting\TextMetrics.cs (1)
127
TextStore
store = fullText.TextStore;
MS\Internal\TextFormatting\TextRunCacheImp.cs (3)
184
int looseCharLength =
TextStore
.TypicalCharactersPerLine - cpFetch + cpFirst;
191
looseCharLength = (int)Math.Round(
TextStore
.TypicalCharactersPerLine * 0.25);
214
int lookAheadLimit = Math.Min(runLength, looseCharLength +
TextStore
.TypicalCharactersPerLine);
System\Windows\Media\textformatting\TextFormatterContext.cs (4)
53
contextInfo.cEstimatedCharsPerLine =
TextStore
.TypicalCharactersPerLine;
67
contextInfo.wchEndPara1 =
TextStore
.CharParaSeparator; // Unicode para separator
98
contextInfo.wchEscAnmRun =
TextStore
.CharParaSeparator;
100
contextInfo.wchEndLineInPara =
TextStore
.CharLineSeparator;
System\Windows\Media\Typeface.cs (6)
428
if (ch ==
TextStore
.CharLineFeed || ch ==
TextStore
.CharCarriageReturn || (breakOnTabs && ch ==
TextStore
.CharTab))
471
if (ch ==
TextStore
.CharLineFeed || ch ==
TextStore
.CharCarriageReturn || (breakOnTabs && ch ==
TextStore
.CharTab))