private void WriteResolveConceptualLinks(XmlWriter writer) { ConceptualLinkConfiguration linkConfig = _engineSettings.ConceptualLinks; Debug.Assert(linkConfig != null, "There is no conceptual link configuration available."); if (linkConfig == null) { return; } linkConfig.Initialize(this.Context, this.Format); //<!-- resolve conceptual links --> //<component type="Sandcastle.Components.ConceptualLinkComponent" assembly="$(SandAssistComponent)"> // <targets base=".\XmlComp" type="local" /> //</component> writer.WriteComment(" Resolve conceptual links "); writer.WriteStartElement("component"); // start - component writer.WriteAttributeString("type", "Sandcastle.Components.ConceptualLinkComponent"); writer.WriteAttributeString("assembly", "$(SandAssistComponent)"); linkConfig.Configure(this.Group, writer); writer.WriteEndElement(); // end - component linkConfig.Uninitialize(); }
/// <summary> /// Initializes a new instance of the <see cref="ConceptualLinkConfiguration"/> class /// with parameters copied from the specified instance of the /// <see cref="ConceptualLinkConfiguration"/> class, a copy constructor. /// </summary> /// <param name="source"> /// An instance of the <see cref="ConceptualLinkConfiguration"/> 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 ConceptualLinkConfiguration( ConceptualLinkConfiguration source) : base(source) { _showLinkText = source._showLinkText; _showBrokenLinkText = source._showBrokenLinkText; }
/// <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); } }
/// <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() { ConceptualLinkConfiguration options = new ConceptualLinkConfiguration(this); return(options); }