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