/// <summary>
        /// Initializes a new instance of the <see cref="ConceptualEngineSettings"/> class
        /// with the default parameters.
        /// </summary>
        public ConceptualEngineSettings()
            : base("Sandcastle.Conceptual.ConceptualEngineSettings", BuildEngineType.Conceptual)
        {
            IBuildNamedList <BuildComponentConfiguration> componentConfigurations
                = this.ComponentConfigurations;

            if (componentConfigurations != null)
            {
                ConceptualPreTransConfiguration preTrans =
                    new ConceptualPreTransConfiguration();

                ConceptualIntelliSenseConfiguration intelliSense =
                    new ConceptualIntelliSenseConfiguration();

                ConceptualCloneConfiguration cloneDocument =
                    new ConceptualCloneConfiguration();

                ConceptualPostTransConfiguration postTrans =
                    new ConceptualPostTransConfiguration();

                ConceptualCodeConfiguration codeComponent =
                    new ConceptualCodeConfiguration();

                ConceptualMathConfiguration mathComponent =
                    new ConceptualMathConfiguration();

                ConceptualMediaConfiguration mediaComponent =
                    new ConceptualMediaConfiguration();

                ConceptualLinkConfiguration topicLinkComponent =
                    new ConceptualLinkConfiguration();

                ConceptualReferenceLinkConfiguration referenceLinkComponent =
                    new ConceptualReferenceLinkConfiguration();

                ConceptualSharedConfiguration sharedComponent =
                    new ConceptualSharedConfiguration();

                componentConfigurations.Add(preTrans);
                componentConfigurations.Add(intelliSense);
                componentConfigurations.Add(codeComponent);
                componentConfigurations.Add(mathComponent);
                componentConfigurations.Add(mediaComponent);
                componentConfigurations.Add(postTrans);
                componentConfigurations.Add(cloneDocument);
                componentConfigurations.Add(topicLinkComponent);
                componentConfigurations.Add(referenceLinkComponent);
                componentConfigurations.Add(sharedComponent);
            }
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ConceptualIntelliSenseConfiguration"/> class
        /// with parameters copied from the specified instance of the
        /// <see cref="ConceptualIntelliSenseConfiguration"/> class, a copy constructor.
        /// </summary>
        /// <param name="source">
        /// An instance of the <see cref="ConceptualIntelliSenseConfiguration"/> class from which the
        /// initialization parameters or values will be copied.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// If the parameter <paramref name="source"/> is <see langword="null"/>.
        /// </exception>
        public ConceptualIntelliSenseConfiguration(
            ConceptualIntelliSenseConfiguration source) : base(source)
        {
            _outputDir  = source._outputDir;
            _workingDir = source._workingDir;

            _rootExpression             = source._rootExpression;
            _assemblyExpression         = source._assemblyExpression;
            _summaryExpression          = source._summaryExpression;
            _parametersExpression       = source._parametersExpression;
            _parameterContentExpression = source._parameterContentExpression;
            _templatesExpression        = source._templatesExpression;
            _templateContentExpression  = source._templateContentExpression;
            _returnsExpression          = source._returnsExpression;
            _exceptionExpression        = source._exceptionExpression;
            _exceptionCrefExpression    = source._exceptionCrefExpression;
            _enumerationExpression      = source._enumerationExpression;
            _enumerationApiExpression   = source._enumerationApiExpression;
            _memberSummaryExpression    = source._memberSummaryExpression;
        }
Beispiel #3
0
        /// <summary>
        /// This creates a new build object that is a deep copy of the current
        /// instance.
        /// </summary>
        /// <returns>
        /// A new build object that is a deep copy of this instance.
        /// </returns>
        public override BuildComponentConfiguration Clone()
        {
            ConceptualIntelliSenseConfiguration options = new ConceptualIntelliSenseConfiguration(this);

            if (_workingDir != null)
            {
                options._workingDir = _workingDir.Clone();
            }
            if (_outputDir != null)
            {
                options._outputDir = String.Copy(_outputDir);
            }

            if (_rootExpression != null)
            {
                options._rootExpression = String.Copy(_rootExpression);
            }
            if (_assemblyExpression != null)
            {
                options._assemblyExpression = String.Copy(_assemblyExpression);
            }
            if (_summaryExpression != null)
            {
                options._summaryExpression = String.Copy(_summaryExpression);
            }
            if (_parametersExpression != null)
            {
                options._parametersExpression = String.Copy(_parametersExpression);
            }
            if (_parameterContentExpression != null)
            {
                options._parameterContentExpression = String.Copy(_parameterContentExpression);
            }
            if (_templatesExpression != null)
            {
                options._templatesExpression = String.Copy(_templatesExpression);
            }
            if (_templateContentExpression != null)
            {
                options._templateContentExpression = String.Copy(_templateContentExpression);
            }
            if (_returnsExpression != null)
            {
                options._returnsExpression = String.Copy(_returnsExpression);
            }
            if (_exceptionExpression != null)
            {
                options._exceptionExpression = String.Copy(_exceptionExpression);
            }
            if (_exceptionCrefExpression != null)
            {
                options._exceptionCrefExpression = String.Copy(_exceptionCrefExpression);
            }
            if (_enumerationExpression != null)
            {
                options._enumerationExpression = String.Copy(_enumerationExpression);
            }
            if (_enumerationApiExpression != null)
            {
                options._enumerationApiExpression = String.Copy(_enumerationApiExpression);
            }
            if (_memberSummaryExpression != null)
            {
                options._memberSummaryExpression = String.Copy(_memberSummaryExpression);
            }

            return(options);
        }