155 references to KnownTagCache
PresentationCore (155)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
446
internal static uint DecodeAsISF(Stream stream, uint cbSize, GuidList guidList,
KnownTagCache
.KnownTagIndex tag, ref Guid guid, out object data)
460
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (5)
147
KnownTagCache
.KnownTagIndex tag;
151
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
228
if (
KnownTagCache
.KnownTagIndex.Mantissa == (
KnownTagCache
.KnownTagIndex)dw)
720
cbData += SerializationHelper.Encode(stream, (uint)MS.Internal.Ink.InkSerializedFormat.
KnownTagCache
.KnownTagIndex.Mantissa);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (15)
47
public static
KnownTagCache
.KnownTagIndex FindKnownTag(Guid guid)
64
KnownTagCache
.KnownTagIndex FindCustomTag(Guid guid)
71
return (
KnownTagCache
.KnownTagIndex)(KnownIdCache.CustomGuidBaseIndex + i);
74
return
KnownTagCache
.KnownTagIndex.Unknown;
84
public
KnownTagCache
.KnownTagIndex FindTag(Guid guid, bool bFindInKnownListFirst)
86
KnownTagCache
.KnownTagIndex tag =
KnownTagCache
.KnownTagIndex.Unknown;
91
if (
KnownTagCache
.KnownTagIndex.Unknown == tag)
97
if (
KnownTagCache
.KnownTagIndex.Unknown == tag)
110
static Guid FindKnownGuid(
KnownTagCache
.KnownTagIndex tag)
134
Guid FindCustomGuid(
KnownTagCache
.KnownTagIndex tag)
158
public Guid FindGuid(
KnownTagCache
.KnownTagIndex tag)
160
if (tag < (
KnownTagCache
.KnownTagIndex)KnownIdCache.CustomGuidBaseIndex)
220
return (uint)(ul + SerializationHelper.VarSize(ul) + SerializationHelper.VarSize((uint)
KnownTagCache
.KnownTagIndex.GuidTable));
224
uint cbWrote = SerializationHelper.Encode(stream, (uint)
KnownTagCache
.KnownTagIndex.GuidTable);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (96)
42
transformDescriptor.Tag =
KnownTagCache
.KnownTagIndex.TransformIsotropicScale;
319
KnownTagCache
.KnownTagIndex isfTag;
380
isfTag = (
KnownTagCache
.KnownTagIndex)uiTag;
388
ISFDebugTrace("Decoding Tag: " + ((
KnownTagCache
.KnownTagIndex)isfTag).ToString());
391
case
KnownTagCache
.KnownTagIndex.GuidTable:
392
case
KnownTagCache
.KnownTagIndex.DrawingAttributesTable:
393
case
KnownTagCache
.KnownTagIndex.DrawingAttributesBlock:
394
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorTable:
395
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorBlock:
396
case
KnownTagCache
.KnownTagIndex.MetricTable:
397
case
KnownTagCache
.KnownTagIndex.MetricBlock:
398
case
KnownTagCache
.KnownTagIndex.TransformTable:
399
case
KnownTagCache
.KnownTagIndex.ExtendedTransformTable:
400
case
KnownTagCache
.KnownTagIndex.Stroke:
401
case
KnownTagCache
.KnownTagIndex.CompressionHeader:
402
case
KnownTagCache
.KnownTagIndex.PersistenceFormat:
403
case
KnownTagCache
.KnownTagIndex.HimetricSize:
404
case
KnownTagCache
.KnownTagIndex.StrokeIds:
417
case
KnownTagCache
.KnownTagIndex.GuidTable:
424
case
KnownTagCache
.KnownTagIndex.DrawingAttributesTable:
432
case
KnownTagCache
.KnownTagIndex.DrawingAttributesBlock:
447
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorTable:
455
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorBlock:
463
case
KnownTagCache
.KnownTagIndex.MetricTable:
471
case
KnownTagCache
.KnownTagIndex.MetricBlock:
483
case
KnownTagCache
.KnownTagIndex.TransformTable:
491
case
KnownTagCache
.KnownTagIndex.ExtendedTransformTable:
504
case
KnownTagCache
.KnownTagIndex.PersistenceFormat:
523
case
KnownTagCache
.KnownTagIndex.HimetricSize:
539
case
KnownTagCache
.KnownTagIndex.CompressionHeader:
574
case
KnownTagCache
.KnownTagIndex.StrokeIds:
580
case
KnownTagCache
.KnownTagIndex.Stroke:
697
case
KnownTagCache
.KnownTagIndex.Transform:
698
case
KnownTagCache
.KnownTagIndex.TransformIsotropicScale:
699
case
KnownTagCache
.KnownTagIndex.TransformAnisotropicScale:
700
case
KnownTagCache
.KnownTagIndex.TransformRotate:
701
case
KnownTagCache
.KnownTagIndex.TransformTranslate:
702
case
KnownTagCache
.KnownTagIndex.TransformScaleAndTranslate:
714
case
KnownTagCache
.KnownTagIndex.TransformTableIndex:
722
case
KnownTagCache
.KnownTagIndex.MetricTableIndex:
730
case
KnownTagCache
.KnownTagIndex.DrawingAttributesTableIndex:
738
case
KnownTagCache
.KnownTagIndex.InkSpaceRectangle:
745
case
KnownTagCache
.KnownTagIndex.StrokeDescriptorTableIndex:
755
if ((uint)isfTag >= KnownIdCache.CustomGuidBaseIndex || ((uint)isfTag >=
KnownTagCache
.KnownTagCount && ((uint)isfTag < (
KnownTagCache
.KnownTagCount + KnownIdCache.OriginalISFIdTable.Length))))
911
KnownTagCache
.KnownTagIndex tag;
915
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
923
if (
KnownTagCache
.KnownTagIndex.Buttons == tag && cbBlock > 0)
933
descr.Template.Add((
KnownTagCache
.KnownTagIndex)cbButton);
944
descr.Template.Add((
KnownTagCache
.KnownTagIndex)dw);
947
else if (
KnownTagCache
.KnownTagIndex.StrokePropertyList == tag && cbBlock > 0)
960
descr.Template.Add((
KnownTagCache
.KnownTagIndex)dw);
1139
entry.Tag = (
KnownTagCache
.KnownTagIndex)dw;
1192
KnownTagCache
.KnownTagIndex tag;
1195
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
1266
private uint DecodeTransformBlock(Stream strm,
KnownTagCache
.KnownTagIndex tag, uint cbSize, bool useDoubles, out TransformDescriptor xform)
1285
if (
KnownTagCache
.KnownTagIndex.TransformRotate == tag)
1299
if (tag ==
KnownTagCache
.KnownTagIndex.TransformIsotropicScale)
1303
else if (tag ==
KnownTagCache
.KnownTagIndex.TransformAnisotropicScale || tag ==
KnownTagCache
.KnownTagIndex.TransformTranslate)
1307
else if (tag ==
KnownTagCache
.KnownTagIndex.TransformScaleAndTranslate)
1416
if (
KnownTagCache
.KnownTagIndex.TransformIsotropicScale == tdrd.Tag)
1420
else if (
KnownTagCache
.KnownTagIndex.TransformRotate == tdrd.Tag)
1437
else if (
KnownTagCache
.KnownTagIndex.TransformAnisotropicScale == tdrd.Tag)
1442
else if (
KnownTagCache
.KnownTagIndex.TransformTranslate == tdrd.Tag)
1447
else if (
KnownTagCache
.KnownTagIndex.TransformScaleAndTranslate == tdrd.Tag)
1475
private StylusPointPropertyInfo GetStylusPointPropertyInfo(Guid guid,
KnownTagCache
.KnownTagIndex tag, MetricBlock block)
1593
System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex> tags = null;
1598
tags = new System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex>();
1601
KnownTagCache
.KnownTagIndex tag = (
KnownTagCache
.KnownTagIndex)strd.Template[cTags];
1603
if (
KnownTagCache
.KnownTagIndex.Buttons == tag)
1625
else if (
KnownTagCache
.KnownTagIndex.StrokePropertyList == tag)
1631
if (
KnownTagCache
.KnownTagIndex.NoX == tag ||
1632
KnownTagCache
.KnownTagIndex.NoY == tag)
1646
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.X, (
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.X), block));
1647
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.Y, (
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.Y), block));
1648
stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.NormalPressure, (
KnownTagCache
.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.NormalPressure), block));
1769
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.InkSpaceRectangle);
1797
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.PersistenceFormat);
1944
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.DrawingAttributesTableIndex);
1958
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.StrokeDescriptorTableIndex);
1972
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.MetricTableIndex);
1986
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.TransformTableIndex);
2013
cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)
KnownTagCache
.KnownTagIndex.Stroke);
2091
uint cbWrote = SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.StrokeIds);
2285
cbData += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.StrokeDescriptorBlock);
2302
cbData += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.StrokeDescriptorTable);
2345
cbData += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.MetricBlock);
2349
cbData += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.MetricTable);
2410
if (
KnownTagCache
.KnownTagIndex.TransformRotate == xform.Tag)
2436
cbTotal += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.TransformTable);
2446
cbTotal += SerializationHelper.Encode(strm, (uint)
KnownTagCache
.KnownTagIndex.ExtendedTransformTable);
2472
if (
KnownTagCache
.KnownTagIndex.TransformRotate == xform.Tag)
2545
totalSizeOfSerializedBytes += SerializationHelper.Encode(stream, (uint)
KnownTagCache
.KnownTagIndex.DrawingAttributesBlock);
2584
totalSizeOfSerializedBytes = SerializationHelper.Encode(stream, (uint)
KnownTagCache
.KnownTagIndex.DrawingAttributesTable);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\ISFTagAndGuidCache.cs (3)
175
static internal
KnownTagCache
.KnownTagIndex KnownGuidBaseIndex = (
KnownTagCache
.KnownTagIndex)
KnownTagCache
.MaximumPossibleKnownTags;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (18)
30
public
KnownTagCache
.KnownTagIndex Tag;
33
public MetricEntryList (
KnownTagCache
.KnownTagIndex tag, StylusPointPropertyInfo prop)
48
private
KnownTagCache
.KnownTagIndex _tag = 0;
90
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
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)
313
static bool IsValidMetricEntry(StylusPointPropertyInfo propertyInfo,
KnownTagCache
.KnownTagIndex tag, out MetricEntryType metricEntryType, out uint index)
318
if (tag >= (
KnownTagCache
.KnownTagIndex)KnownIdCache.CustomGuidBaseIndex)
459
public MetricEntryType AddMetricEntry(StylusPointPropertyInfo property,
KnownTagCache
.KnownTagIndex tag)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeDescriptor.cs (3)
14
private System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex> _strokeDescriptor = new System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex>();
27
public System.Collections.Generic.List<
KnownTagCache
.KnownTagIndex> Template
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (10)
194
KnownTagCache
.KnownTagIndex tag = strokeDescriptor.Template[iTag - 1];
198
case MS.Internal.Ink.InkSerializedFormat.
KnownTagCache
.KnownTagIndex.StrokePropertyList:
230
case MS.Internal.Ink.InkSerializedFormat.
KnownTagCache
.KnownTagIndex.Buttons:
251
KnownTagCache
.KnownTagIndex tag;
255
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
264
case MS.Internal.Ink.InkSerializedFormat.
KnownTagCache
.KnownTagIndex.PointProperty:
278
tag = (
KnownTagCache
.KnownTagIndex)uiTag;
743
KnownTagCache
.KnownTagIndex tag = guidList.FindTag(KnownIds.X, true);
809
strokeDescriptor.Template.Add(
KnownTagCache
.KnownTagIndex.StrokePropertyList);
810
strokeDescriptor.Size += SerializationHelper.VarSize((uint)
KnownTagCache
.KnownTagIndex.StrokePropertyList);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\TransformDescriptor.cs (3)
14
private
KnownTagCache
.KnownTagIndex _tag =
KnownTagCache
.KnownTagIndex.Unknown;
16
public
KnownTagCache
.KnownTagIndex Tag