public static List<TriggeringNodeDefinition> SlideComment(Dictionary<string, string> SlideCommentAuthorLookup) { List<TriggeringNodeDefinition> results = new List<TriggeringNodeDefinition>(); { EffectDescriptor tdComments = new EffectDescriptor(); tdComments.ContentType = ContentType.Comment; tdComments.BlockType = Effect.BlockType.Structure; AttributeFilter filter = new NullAttributeFilter(); tdComments.DictStringToStringLookup = SlideCommentAuthorLookup; tdComments.AddAdditionalInfoDescriptor(new AdditionalInfoDescriptor("Author", "authorID", AdditionalInfoDescriptor.MappingType.StringToStringLookup)); results.Add(new TriggeringNodeDefinition(NamespaceId.p, "cm", filter, tdComments)); } return results; }
private static TriggeringNodeDefinition BuildSingleNodeBlock(string nodeName) { EffectDescriptor td = new EffectDescriptor(); td.BlockType = Effect.BlockType.Structure; AttributeFilter filter = new NullAttributeFilter(); return new TriggeringNodeDefinition(NamespaceId.w, nodeName, filter, td); }
private static TriggeringNodeDefinition BuildTrackChangeReviewerDef(string nodeName) { EffectDescriptor td = new EffectDescriptor(); td.ContentType = ContentType.Reviewer; td.BlockType = Effect.BlockType.Structure; td.AttributeBlockType = Effect.AttributeBlockType.Author; td.AddAdditionalInfoDescriptor(new AdditionalInfoDescriptor("author", null, AdditionalInfoDescriptor.MappingType.AttribNameAndValue)); td.DeleteNode = false; AttributeFilter filter = new NullAttributeFilter(); return new TriggeringNodeDefinition(NamespaceId.w, nodeName, filter, td); }