155 references to KnownTagCache
PresentationCore (155)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
404
internal static uint DecodeAsISF(Stream stream, uint cbSize, GuidList guidList,
KnownTagCache
.KnownTagIndex tag, ref Guid guid, out object data)
418
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (5)
126
KnownTagCache
.KnownTagIndex tag;
130
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
207
if (
KnownTagCache
.KnownTagIndex.Mantissa == (
KnownTagCache
.KnownTagIndex)dw)
670
cbData += SerializationHelper.Encode(stream, (uint)MS.Internal.Ink.InkSerializedFormat.
KnownTagCache
.KnownTagIndex.Mantissa);
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (15)
46
public static
KnownTagCache
.KnownTagIndex FindKnownTag(Guid guid)
63
private
KnownTagCache
.KnownTagIndex FindCustomTag(Guid guid)
70
return (
KnownTagCache
.KnownTagIndex)(KnownIdCache.CustomGuidBaseIndex + i);
73
return
KnownTagCache
.KnownTagIndex.Unknown;
83
public
KnownTagCache
.KnownTagIndex FindTag(Guid guid, bool bFindInKnownListFirst)
85
KnownTagCache
.KnownTagIndex tag =
KnownTagCache
.KnownTagIndex.Unknown;
90
if (
KnownTagCache
.KnownTagIndex.Unknown == tag)
96
if (
KnownTagCache
.KnownTagIndex.Unknown == tag)
109
private static Guid FindKnownGuid(
KnownTagCache
.KnownTagIndex tag)
133
private Guid FindCustomGuid(
KnownTagCache
.KnownTagIndex tag)
157
public Guid FindGuid(
KnownTagCache
.KnownTagIndex tag)
159
if (tag < (
KnownTagCache
.KnownTagIndex)KnownIdCache.CustomGuidBaseIndex)
219
return (uint)(ul + SerializationHelper.VarSize(ul) + SerializationHelper.VarSize((uint)
KnownTagCache
.KnownTagIndex.GuidTable));
223
uint cbWrote = SerializationHelper.Encode(stream, (uint)
KnownTagCache
.KnownTagIndex.GuidTable);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (96)
25
transformDescriptor.Tag =
KnownTagCache
.KnownTagIndex.TransformIsotropicScale;
295
KnownTagCache
.KnownTagIndex isfTag;
356
isfTag = (
KnownTagCache
.KnownTagIndex)uiTag;
364
ISFDebugTrace("Decoding Tag: " + ((
KnownTagCache
.KnownTagIndex)isfTag).ToString());
367
case
KnownTagCache
.KnownTagIndex.GuidTable:
368
case
KnownTagCache
.KnownTagIndex.DrawingAttributesTable:
369
case
KnownTagCache
.KnownTagIndex.DrawingAttributesBlock:
370
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorTable:
371
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorBlock:
372
case
KnownTagCache
.KnownTagIndex.MetricTable:
373
case
KnownTagCache
.KnownTagIndex.MetricBlock:
374
case
KnownTagCache
.KnownTagIndex.TransformTable:
375
case
KnownTagCache
.KnownTagIndex.ExtendedTransformTable:
376
case
KnownTagCache
.KnownTagIndex.Stroke:
377
case
KnownTagCache
.KnownTagIndex.CompressionHeader:
378
case
KnownTagCache
.KnownTagIndex.PersistenceFormat:
379
case
KnownTagCache
.KnownTagIndex.HimetricSize:
380
case
KnownTagCache
.KnownTagIndex.StrokeIds:
393
case
KnownTagCache
.KnownTagIndex.GuidTable:
400
case
KnownTagCache
.KnownTagIndex.DrawingAttributesTable:
408
case
KnownTagCache
.KnownTagIndex.DrawingAttributesBlock:
423
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorTable:
431
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorBlock:
439
case
KnownTagCache
.KnownTagIndex.MetricTable:
447
case
KnownTagCache
.KnownTagIndex.MetricBlock:
459
case
KnownTagCache
.KnownTagIndex.TransformTable:
467
case
KnownTagCache
.KnownTagIndex.ExtendedTransformTable:
480
case
KnownTagCache
.KnownTagIndex.PersistenceFormat:
499
case
KnownTagCache
.KnownTagIndex.HimetricSize:
515
case
KnownTagCache
.KnownTagIndex.CompressionHeader:
550
case
KnownTagCache
.KnownTagIndex.StrokeIds:
556
case
KnownTagCache
.KnownTagIndex.Stroke:
673
case
KnownTagCache
.KnownTagIndex.Transform:
674
case
KnownTagCache
.KnownTagIndex.TransformIsotropicScale:
675
case
KnownTagCache
.KnownTagIndex.TransformAnisotropicScale:
676
case
KnownTagCache
.KnownTagIndex.TransformRotate:
677
case
KnownTagCache
.KnownTagIndex.TransformTranslate:
678
case
KnownTagCache
.KnownTagIndex.TransformScaleAndTranslate:
690
case
KnownTagCache
.KnownTagIndex.TransformTableIndex:
698
case
KnownTagCache
.KnownTagIndex.MetricTableIndex:
706
case
KnownTagCache
.KnownTagIndex.DrawingAttributesTableIndex:
714
case
KnownTagCache
.KnownTagIndex.InkSpaceRectangle:
721
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorTableIndex:
731
if ((uint)isfTag >= KnownIdCache.CustomGuidBaseIndex || ((uint)isfTag >=
KnownTagCache
.KnownTagCount && ((uint)isfTag < (
KnownTagCache
.KnownTagCount + KnownIdCache.OriginalISFIdTable.Length))))
885
KnownTagCache
.KnownTagIndex tag;
889
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
897
if (
KnownTagCache
.KnownTagIndex.Buttons == tag && cbBlock > 0)
907
descr.Template.Add((
KnownTagCache
.KnownTagIndex)cbButton);
918
descr.Template.Add((
KnownTagCache
.KnownTagIndex)dw);
921
else if (
KnownTagCache
.KnownTagIndex.StrokePropertyList == tag && cbBlock > 0)
934
descr.Template.Add((
KnownTagCache
.KnownTagIndex)dw);
1113
Tag = (
KnownTagCache
.KnownTagIndex)dw
1166
KnownTagCache
.KnownTagIndex tag;
1169
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
1240
private uint DecodeTransformBlock(Stream strm,
KnownTagCache
.KnownTagIndex tag, uint cbSize, bool useDoubles, out TransformDescriptor xform)
1256
if (
KnownTagCache
.KnownTagIndex.TransformRotate == tag)
1270
if (tag ==
KnownTagCache
.KnownTagIndex.TransformIsotropicScale)
1274
else if (tag ==
KnownTagCache
.KnownTagIndex.TransformAnisotropicScale || tag ==
KnownTagCache
.KnownTagIndex.TransformTranslate)
1278
else if (tag ==
KnownTagCache
.KnownTagIndex.TransformScaleAndTranslate)
1385
if (
KnownTagCache
.KnownTagIndex.TransformIsotropicScale == tdrd.Tag)
1389
else if (
KnownTagCache
.KnownTagIndex.TransformRotate == tdrd.Tag)
1406
else if (
KnownTagCache
.KnownTagIndex.TransformAnisotropicScale == tdrd.Tag)
1411
else if (
KnownTagCache
.KnownTagIndex.TransformTranslate == tdrd.Tag)
1416
else if (
KnownTagCache
.KnownTagIndex.TransformScaleAndTranslate == tdrd.Tag)
1444
private StylusPointPropertyInfo GetStylusPointPropertyInfo(Guid guid,
KnownTagCache
.KnownTagIndex tag, MetricBlock block)
1562
System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex> tags = null;
1567
tags = new System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex>();
1570
KnownTagCache
.KnownTagIndex tag = (
KnownTagCache
.KnownTagIndex)strd.Template[cTags];
1572
if (
KnownTagCache
.KnownTagIndex.Buttons == tag)
1594
else if (
KnownTagCache
.KnownTagIndex.StrokePropertyList == tag)
1600
if (
KnownTagCache
.KnownTagIndex.NoX == tag ||
1601
KnownTagCache
.KnownTagIndex.NoY == tag)
1615
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.X, (
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.X), block));
1616
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.Y, (
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.Y), block));
1617
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.NormalPressure, (
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.NormalPressure), block));
1722
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.InkSpaceRectangle);
1750
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.PersistenceFormat);
1887
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.DrawingAttributesTableIndex);
1901
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.StrokeDescriptorTableIndex);
1915
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.MetricTableIndex);
1929
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.TransformTableIndex);
1956
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.Stroke);
2025
uint cbWrote = SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.StrokeIds);
2210
cbData += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.StrokeDescriptorBlock);
2227
cbData += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.StrokeDescriptorTable);
2270
cbData += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.MetricBlock);
2274
cbData += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.MetricTable);
2335
if (
KnownTagCache
.KnownTagIndex.TransformRotate == xform.Tag)
2361
cbTotal += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.TransformTable);
2371
cbTotal += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.ExtendedTransformTable);
2397
if (
KnownTagCache
.KnownTagIndex.TransformRotate == xform.Tag)
2453
totalSizeOfSerializedBytes += SerializationHelper.Encode(stream, (uint)
KnownTagCache
.KnownTagIndex.DrawingAttributesBlock);
2492
totalSizeOfSerializedBytes = SerializationHelper.Encode(stream, (uint)
KnownTagCache
.KnownTagIndex.DrawingAttributesTable);
MS\Internal\Ink\InkSerializedFormat\ISFTagAndGuidCache.cs (3)
173
internal static
KnownTagCache
.KnownTagIndex KnownGuidBaseIndex = (
KnownTagCache
.KnownTagIndex)
KnownTagCache
.MaximumPossibleKnownTags;
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (18)
31
public
KnownTagCache
.KnownTagIndex Tag;
34
public MetricEntryList (
KnownTagCache
.KnownTagIndex tag, StylusPointPropertyInfo prop)
49
private
KnownTagCache
.KnownTagIndex _tag = 0;
90
private static
KnownTagCache
.KnownTagIndex[] MetricEntry_Must = new
KnownTagCache
.KnownTagIndex[]
92
(
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.PitchRotation),
93
(
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.RollRotation),
94
(
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.YawRotation),
100
private static
KnownTagCache
.KnownTagIndex[] MetricEntry_Never = new
KnownTagCache
.KnownTagIndex[]
102
(
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.PacketStatus),
103
(
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.TimerTick),
104
(
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.SerialNumber),
115
public
KnownTagCache
.KnownTagIndex Tag
274
public MetricEntryType CreateMetricEntry(StylusPointPropertyInfo propertyInfo,
KnownTagCache
.KnownTagIndex tag)
314
private static bool IsValidMetricEntry(StylusPointPropertyInfo propertyInfo,
KnownTagCache
.KnownTagIndex tag, out MetricEntryType metricEntryType, out uint index)
319
if (tag >= (
KnownTagCache
.KnownTagIndex)KnownIdCache.CustomGuidBaseIndex)
460
public MetricEntryType AddMetricEntry(StylusPointPropertyInfo property,
KnownTagCache
.KnownTagIndex tag)
MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (3)
11
private System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex> _strokeDescriptor = new System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex>();
24
public System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex> Template
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (10)
167
KnownTagCache
.KnownTagIndex tag = strokeDescriptor.Template[iTag - 1];
171
case MS.Internal.Ink.InkSerializedFormat.
KnownTagCache
.KnownTagIndex.StrokePropertyList:
203
case MS.Internal.Ink.InkSerializedFormat.
KnownTagCache
.KnownTagIndex.Buttons:
224
KnownTagCache
.KnownTagIndex tag;
228
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
237
case MS.Internal.Ink.InkSerializedFormat.
KnownTagCache
.KnownTagIndex.PointProperty:
251
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
696
KnownTagCache
.KnownTagIndex tag = guidList.FindTag(KnownIds.X, true);
762
strokeDescriptor.Template.Add(
KnownTagCache
.KnownTagIndex.StrokePropertyList);
763
strokeDescriptor.Size += SerializationHelper.VarSize((uint)
KnownTagCache
.KnownTagIndex.StrokePropertyList);
MS\Internal\Ink\InkSerializedFormat\TransformDescriptor.cs (3)
13
private
KnownTagCache
.KnownTagIndex _tag =
KnownTagCache
.KnownTagIndex.Unknown;
15
public
KnownTagCache
.KnownTagIndex Tag