Esempio n. 1
0
        /// <summary>
        /// Run <c>compose(script)</c> on all subitems from primary collection
        /// </summary>
        /// <param name="parent">The parent.</param>
        /// <param name="script">The script.</param>
        /// <returns></returns>
        internal static docScript subCompose(this IMetaContentNested parent, docScript script)
        {
            parent.sortChildren();
            bool skip = true;

            foreach (IMetaComposeAndConstruct cont in parent)
            {
                skip = false;
                if (script.flags.HasFlag(docScriptFlags.ignoreNavigation))
                {
                    if (cont is INavigation)
                    {
                        skip = true;
                    }
                }
                if (!skip)
                {
                    docScript subScript = new docScript(script.context);
                    var       subscript = cont.compose(subScript);
                    script.insertSub(subscript);
                }
                else
                {
                }
            }
            return(script);
        }
        public override docScript compose(docScript script)
        {
            script.x_scopeIn(this);

            script.insertSub(log);

            script.x_scopeOut(this);

            return(script);
        }