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