155 references to KnownTagCache
PresentationCore (155)
MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (2)
421internal static uint DecodeAsISF(Stream stream, uint cbSize, GuidList guidList, KnownTagCache.KnownTagIndex tag, ref Guid guid, out object data) 435tag = (KnownTagCache.KnownTagIndex)uiTag;
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (5)
137KnownTagCache.KnownTagIndex tag; 141tag = (KnownTagCache.KnownTagIndex)uiTag; 218if (KnownTagCache.KnownTagIndex.Mantissa == (KnownTagCache.KnownTagIndex)dw) 681cbData += SerializationHelper.Encode(stream, (uint)MS.Internal.Ink.InkSerializedFormat.KnownTagCache.KnownTagIndex.Mantissa);
MS\Internal\Ink\InkSerializedFormat\GuidTagList.cs (15)
51public static KnownTagCache.KnownTagIndex FindKnownTag(Guid guid) 68KnownTagCache.KnownTagIndex FindCustomTag(Guid guid) 75return (KnownTagCache.KnownTagIndex)(KnownIdCache.CustomGuidBaseIndex + i); 78return KnownTagCache.KnownTagIndex.Unknown; 88public KnownTagCache.KnownTagIndex FindTag(Guid guid, bool bFindInKnownListFirst) 90KnownTagCache.KnownTagIndex tag = KnownTagCache.KnownTagIndex.Unknown; 95if (KnownTagCache.KnownTagIndex.Unknown == tag) 101if (KnownTagCache.KnownTagIndex.Unknown == tag) 114static Guid FindKnownGuid(KnownTagCache.KnownTagIndex tag) 138Guid FindCustomGuid(KnownTagCache.KnownTagIndex tag) 162public Guid FindGuid(KnownTagCache.KnownTagIndex tag) 164if (tag < (KnownTagCache.KnownTagIndex)KnownIdCache.CustomGuidBaseIndex) 224return (uint)(ul + SerializationHelper.VarSize(ul) + SerializationHelper.VarSize((uint)KnownTagCache.KnownTagIndex.GuidTable)); 228uint cbWrote = SerializationHelper.Encode(stream, (uint)KnownTagCache.KnownTagIndex.GuidTable);
MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (96)
39transformDescriptor.Tag = KnownTagCache.KnownTagIndex.TransformIsotropicScale; 310KnownTagCache.KnownTagIndex isfTag; 371isfTag = (KnownTagCache.KnownTagIndex)uiTag; 379ISFDebugTrace("Decoding Tag: " + ((KnownTagCache.KnownTagIndex)isfTag).ToString()); 382case KnownTagCache.KnownTagIndex.GuidTable: 383case KnownTagCache.KnownTagIndex.DrawingAttributesTable: 384case KnownTagCache.KnownTagIndex.DrawingAttributesBlock: 385case KnownTagCache.KnownTagIndex.StrokeDescriptorTable: 386case KnownTagCache.KnownTagIndex.StrokeDescriptorBlock: 387case KnownTagCache.KnownTagIndex.MetricTable: 388case KnownTagCache.KnownTagIndex.MetricBlock: 389case KnownTagCache.KnownTagIndex.TransformTable: 390case KnownTagCache.KnownTagIndex.ExtendedTransformTable: 391case KnownTagCache.KnownTagIndex.Stroke: 392case KnownTagCache.KnownTagIndex.CompressionHeader: 393case KnownTagCache.KnownTagIndex.PersistenceFormat: 394case KnownTagCache.KnownTagIndex.HimetricSize: 395case KnownTagCache.KnownTagIndex.StrokeIds: 408case KnownTagCache.KnownTagIndex.GuidTable: 415case KnownTagCache.KnownTagIndex.DrawingAttributesTable: 423case KnownTagCache.KnownTagIndex.DrawingAttributesBlock: 438case KnownTagCache.KnownTagIndex.StrokeDescriptorTable: 446case KnownTagCache.KnownTagIndex.StrokeDescriptorBlock: 454case KnownTagCache.KnownTagIndex.MetricTable: 462case KnownTagCache.KnownTagIndex.MetricBlock: 474case KnownTagCache.KnownTagIndex.TransformTable: 482case KnownTagCache.KnownTagIndex.ExtendedTransformTable: 495case KnownTagCache.KnownTagIndex.PersistenceFormat: 514case KnownTagCache.KnownTagIndex.HimetricSize: 530case KnownTagCache.KnownTagIndex.CompressionHeader: 565case KnownTagCache.KnownTagIndex.StrokeIds: 571case KnownTagCache.KnownTagIndex.Stroke: 688case KnownTagCache.KnownTagIndex.Transform: 689case KnownTagCache.KnownTagIndex.TransformIsotropicScale: 690case KnownTagCache.KnownTagIndex.TransformAnisotropicScale: 691case KnownTagCache.KnownTagIndex.TransformRotate: 692case KnownTagCache.KnownTagIndex.TransformTranslate: 693case KnownTagCache.KnownTagIndex.TransformScaleAndTranslate: 705case KnownTagCache.KnownTagIndex.TransformTableIndex: 713case KnownTagCache.KnownTagIndex.MetricTableIndex: 721case KnownTagCache.KnownTagIndex.DrawingAttributesTableIndex: 729case KnownTagCache.KnownTagIndex.InkSpaceRectangle: 736case KnownTagCache.KnownTagIndex.StrokeDescriptorTableIndex: 746if ((uint)isfTag >= KnownIdCache.CustomGuidBaseIndex || ((uint)isfTag >= KnownTagCache.KnownTagCount && ((uint)isfTag < (KnownTagCache.KnownTagCount + KnownIdCache.OriginalISFIdTable.Length)))) 898KnownTagCache.KnownTagIndex tag; 902tag = (KnownTagCache.KnownTagIndex)uiTag; 910if (KnownTagCache.KnownTagIndex.Buttons == tag && cbBlock > 0) 920descr.Template.Add((KnownTagCache.KnownTagIndex)cbButton); 931descr.Template.Add((KnownTagCache.KnownTagIndex)dw); 934else if (KnownTagCache.KnownTagIndex.StrokePropertyList == tag && cbBlock > 0) 947descr.Template.Add((KnownTagCache.KnownTagIndex)dw); 1126entry.Tag = (KnownTagCache.KnownTagIndex)dw; 1178KnownTagCache.KnownTagIndex tag; 1181tag = (KnownTagCache.KnownTagIndex)uiTag; 1252private uint DecodeTransformBlock(Stream strm, KnownTagCache.KnownTagIndex tag, uint cbSize, bool useDoubles, out TransformDescriptor xform) 1271if (KnownTagCache.KnownTagIndex.TransformRotate == tag) 1285if (tag == KnownTagCache.KnownTagIndex.TransformIsotropicScale) 1289else if (tag == KnownTagCache.KnownTagIndex.TransformAnisotropicScale || tag == KnownTagCache.KnownTagIndex.TransformTranslate) 1293else if (tag == KnownTagCache.KnownTagIndex.TransformScaleAndTranslate) 1402if (KnownTagCache.KnownTagIndex.TransformIsotropicScale == tdrd.Tag) 1406else if (KnownTagCache.KnownTagIndex.TransformRotate == tdrd.Tag) 1423else if (KnownTagCache.KnownTagIndex.TransformAnisotropicScale == tdrd.Tag) 1428else if (KnownTagCache.KnownTagIndex.TransformTranslate == tdrd.Tag) 1433else if (KnownTagCache.KnownTagIndex.TransformScaleAndTranslate == tdrd.Tag) 1461private StylusPointPropertyInfo GetStylusPointPropertyInfo(Guid guid, KnownTagCache.KnownTagIndex tag, MetricBlock block) 1579System.Collections.Generic.List<KnownTagCache.KnownTagIndex> tags = null; 1584tags = new System.Collections.Generic.List<KnownTagCache.KnownTagIndex>(); 1587KnownTagCache.KnownTagIndex tag = (KnownTagCache.KnownTagIndex)strd.Template[cTags]; 1589if (KnownTagCache.KnownTagIndex.Buttons == tag) 1611else if (KnownTagCache.KnownTagIndex.StrokePropertyList == tag) 1617if (KnownTagCache.KnownTagIndex.NoX == tag || 1618KnownTagCache.KnownTagIndex.NoY == tag) 1632stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.X, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.X), block)); 1633stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.Y, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.Y), block)); 1634stylusPointPropertyInfos.Add(GetStylusPointPropertyInfo(KnownIds.NormalPressure, (KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.NormalPressure), block)); 1739cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.InkSpaceRectangle); 1767cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.PersistenceFormat); 1904cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesTableIndex); 1918cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorTableIndex); 1932cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.MetricTableIndex); 1946cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.TransformTableIndex); 1973cumulativeEncodedSize += SerializationHelper.Encode(localStream, (uint)KnownTagCache.KnownTagIndex.Stroke); 2042uint cbWrote = SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.StrokeIds); 2236cbData += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorBlock); 2253cbData += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.StrokeDescriptorTable); 2296cbData += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.MetricBlock); 2300cbData += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.MetricTable); 2361if (KnownTagCache.KnownTagIndex.TransformRotate == xform.Tag) 2387cbTotal += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.TransformTable); 2397cbTotal += SerializationHelper.Encode(strm, (uint)KnownTagCache.KnownTagIndex.ExtendedTransformTable); 2423if (KnownTagCache.KnownTagIndex.TransformRotate == xform.Tag) 2486totalSizeOfSerializedBytes += SerializationHelper.Encode(stream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesBlock); 2525totalSizeOfSerializedBytes = SerializationHelper.Encode(stream, (uint)KnownTagCache.KnownTagIndex.DrawingAttributesTable);
MS\Internal\Ink\InkSerializedFormat\ISFTagAndGuidCache.cs (3)
179static internal KnownTagCache.KnownTagIndex KnownGuidBaseIndex = (KnownTagCache.KnownTagIndex)KnownTagCache.MaximumPossibleKnownTags;
MS\Internal\Ink\InkSerializedFormat\MetricEntry.cs (18)
34public KnownTagCache.KnownTagIndex Tag; 37public MetricEntryList (KnownTagCache.KnownTagIndex tag, StylusPointPropertyInfo prop) 52private KnownTagCache.KnownTagIndex _tag = 0; 93static KnownTagCache.KnownTagIndex[] MetricEntry_Must = new KnownTagCache.KnownTagIndex[] 95(KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.PitchRotation), 96(KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.RollRotation), 97(KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.YawRotation), 103static KnownTagCache.KnownTagIndex[] MetricEntry_Never = new KnownTagCache.KnownTagIndex[] 105(KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.PacketStatus), 106(KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.TimerTick), 107(KnownTagCache.KnownTagIndex)((uint)KnownIdCache.KnownGuidBaseIndex + (uint)KnownIdCache.OriginalISFIdIndex.SerialNumber), 118public KnownTagCache.KnownTagIndex Tag 277public MetricEntryType CreateMetricEntry(StylusPointPropertyInfo propertyInfo, KnownTagCache.KnownTagIndex tag) 316static bool IsValidMetricEntry(StylusPointPropertyInfo propertyInfo, KnownTagCache.KnownTagIndex tag, out MetricEntryType metricEntryType, out uint index) 321if (tag >= (KnownTagCache.KnownTagIndex)KnownIdCache.CustomGuidBaseIndex) 462public MetricEntryType AddMetricEntry(StylusPointPropertyInfo property, KnownTagCache.KnownTagIndex tag)
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
MS\Internal\Ink\InkSerializedFormat\StrokeSerializer.cs (10)
175KnownTagCache.KnownTagIndex tag = strokeDescriptor.Template[iTag - 1]; 179case MS.Internal.Ink.InkSerializedFormat.KnownTagCache.KnownTagIndex.StrokePropertyList: 211case MS.Internal.Ink.InkSerializedFormat.KnownTagCache.KnownTagIndex.Buttons: 232KnownTagCache.KnownTagIndex tag; 236tag = (KnownTagCache.KnownTagIndex)uiTag; 245case MS.Internal.Ink.InkSerializedFormat.KnownTagCache.KnownTagIndex.PointProperty: 259tag = (KnownTagCache.KnownTagIndex)uiTag; 704KnownTagCache.KnownTagIndex tag = guidList.FindTag(KnownIds.X, true); 770strokeDescriptor.Template.Add(KnownTagCache.KnownTagIndex.StrokePropertyList); 771strokeDescriptor.Size += SerializationHelper.VarSize((uint)KnownTagCache.KnownTagIndex.StrokePropertyList);
MS\Internal\Ink\InkSerializedFormat\TransformDescriptor.cs (3)
14private KnownTagCache.KnownTagIndex _tag = KnownTagCache.KnownTagIndex.Unknown; 16public KnownTagCache.KnownTagIndex Tag