コード例 #1
0
 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;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
        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);
        }