6 instantiations of TextSelectionProcessor
PresentationFramework (6)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (1)
87
TextSelectionProcessor textProcessor = new
TextSelectionProcessor
();
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (1)
342
TextSelectionProcessor textSelectionProcessor = new
TextSelectionProcessor
();
src\Framework\System\Windows\Annotations\AnnotationService.cs (2)
227
_locatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextRange));
228
_locatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextAnchor));
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (2)
1416
service.LocatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextRange));
1417
service.LocatorManager.RegisterSelectionProcessor(new
TextSelectionProcessor
(), typeof(TextAnchor));
46 references to TextSelectionProcessor
PresentationFramework (46)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (14)
217
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo));
218
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), ",,,");
222
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, fp.Segments.Count.ToString(NumberFormatInfo.InvariantInfo));
229
value += fp.Segments[i].Start.X.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator[0] + fp.Segments[i].Start.Y.ToString(NumberFormatInfo.InvariantInfo);
233
value +=
TextSelectionProcessor
.Separator[0];
235
value +=
TextSelectionProcessor
.Separator[0];
238
value += fp.Segments[i].End.X.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator[0] + fp.Segments[i].End.Y.ToString(NumberFormatInfo.InvariantInfo);
242
value +=
TextSelectionProcessor
.Separator[0];
245
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), value);
325
throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
520
string segmentValue = locatorPart.NameValuePairs[
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)];
522
throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart,
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
524
string[] values = segmentValue.Split(
TextSelectionProcessor
.Separator);
526
throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart,
TextSelectionProcessor
.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)));
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (2)
87
TextSelectionProcessor
textProcessor = new TextSelectionProcessor();
329
if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(
TextSelectionProcessor
.IncludeOverlaps))
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (3)
179
part.NameValuePairs.Add(SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator[0] + endOffset.ToString(NumberFormatInfo.InvariantInfo));
225
throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
382
throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart,
TextSelectionProcessor
.CountAttribute));
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (5)
161
ContentLocatorPart part = new ContentLocatorPart(
TextSelectionProcessor
.CharacterRangeElementName);// DocumentPageViewLocatorPart();
162
part.NameValuePairs.Add(
TextSelectionProcessor
.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo));
163
part.NameValuePairs.Add(
TextSelectionProcessor
.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) +
TextSelectionProcessor
.Separator[0] + endOffset.ToString(NumberFormatInfo.InvariantInfo));
164
part.NameValuePairs.Add(
TextSelectionProcessor
.IncludeOverlaps, Boolean.TrueString);
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
342
TextSelectionProcessor
textSelectionProcessor = new TextSelectionProcessor();
391
if (locator.Parts[locator.Parts.Count - 1].NameValuePairs.ContainsKey(
TextSelectionProcessor
.IncludeOverlaps))
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (9)
224
TextSelectionProcessor
rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
225
TextSelectionProcessor
anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
702
TextSelectionProcessor
rangeProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
703
TextSelectionProcessor
anchorProcessor = service.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
719
locator.Parts[locator.Parts.Count - 1].NameValuePairs.Add(
TextSelectionProcessor
.IncludeOverlaps, Boolean.TrueString);
src\Framework\System\Windows\Annotations\AnnotationService.cs (4)
1594
TextSelectionProcessor
flowRangeProcessor = null;
1595
TextSelectionProcessor
flowAnchorProcessor = null;
1613
flowRangeProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextRange)) as
TextSelectionProcessor
;
1616
flowAnchorProcessor = this.LocatorManager.GetSelectionProcessor(typeof(TextAnchor)) as
TextSelectionProcessor
;
src\Framework\System\Windows\Annotations\LocatorPart.cs (7)
241
_nameValues.TryGetValue(
TextSelectionProcessor
.IncludeOverlaps, out overlapsString);
261
TextSelectionProcessor
.GetMaxMinLocatorPartValues(this, out desiredStartOffset, out desiredEndOffset);
265
TextSelectionProcessor
.GetMaxMinLocatorPartValues(part, out startOffset, out endOffset);
302
_nameValues.TryGetValue(
TextSelectionProcessor
.IncludeOverlaps, out overlapsString);
375
res +=
TextSelectionProcessor
.CharacterRangeElementName.Name + "/" + corePrefix + ":"+AnnotationXmlConstants.Elements.Item;
379
TextSelectionProcessor
.GetMaxMinLocatorPartValues(this, out startOffset, out endOffset);
386
res += "[starts-with(@" + AnnotationXmlConstants.Attributes.ItemName + ", \"" +
TextSelectionProcessor
.SegmentAttribute + "\") and " +