// Group: Functions // __________________________________________________________________________ /* Constructor: HTMLClassPrototype */ public HTMLClassPrototype(HTMLTopicPage topicPage) : base(topicPage) { parsedPrototype = null; language = null; isToolTip = false; addLinks = false; }
// Group: Functions // __________________________________________________________________________ /* Constructor: HTMLComponent */ public HTMLComponent(HTMLTopicPage topicPage) { this.topicPage = topicPage; htmlOutput = null; topic = null; links = null; linkTargets = null; }
// Group: Functions // __________________________________________________________________________ /* Constructor: HTMLPrototype */ public HTMLPrototype(HTMLTopicPage topicPage) : base(topicPage) { parsedPrototype = null; language = null; columnIndexes = null; endOfColumnsIndex = -1; columnWidths = null; htmlCells = null; addLinks = false; }
// Group: Functions // __________________________________________________________________________ /* Constructor: HTMLPrototype */ public HTMLPrototype(HTMLTopicPage topicPage) : base(topicPage) { parsedPrototype = null; language = null; parameterTableSection = null; parameterTableTokenIndexes = null; parameterTableColumnsUsed = null; symbolColumnWidth = 0; addLinks = false; }
// Group: Functions // __________________________________________________________________________ /* Constructor: JSSummaryData */ public JSSummaryData(HTMLTopicPage topicPage) { this.topicPage = topicPage; output = null; fileTitle = null; fileHashPath = null; topics = null; htmlTopic = new HTMLTopic(topicPage); usedLanguages = new List <Language>(); usedCommentTypes = new List <CommentType>(); htmlComponent = new HTMLComponent(topicPage); }
// Group: Functions // __________________________________________________________________________ /* Constructor: JSSummaryData */ public JSSummaryData(HTMLTopicPage topicPage) { this.topicPage = topicPage; output = null; fileTitle = null; fileHashPath = null; topics = null; usedLanguages = new List <Language>(); usedCommentTypes = new List <CommentType>(); HTML.Context context = new HTML.Context(HTMLBuilder, topicPage); tooltipBuilder = new HTML.Components.Tooltip(context); formattedTextBuilder = new HTML.Components.FormattedText(context); }
/* Function: BuildLinkTag * Constructs an <a> tag from the current <HTMLTopicPage> to the passed <Topic>. It will NOT include the link text or the * closing tag, only the opening <a> tag. If output is null it will be appended to <htmlOutput>. */ protected void BuildLinkTag(Topic targetTopic, string cssClass = null, StringBuilder output = null) { #if DEBUG if (output == null && htmlOutput == null) { throw new Exception("Tried to call BuildLinkTag() without setting the output parameter or the htmlOutput variable."); } #endif if (output == null) { output = htmlOutput; } // The link can't be only the hash path because it would use the iframe's location. We need a relative path back to index.html // to append it to. Path currentOutputFolder = topicPage.OutputFile.ParentFolder; Path indexFile = HTMLBuilder.OutputFolder + "/index.html"; Path pathToIndex = indexFile.MakeRelativeTo(currentOutputFolder); HTMLTopicPage targetTopicPage = topicPage.GetLinkTarget(targetTopic); output.Append("<a "); if (cssClass != null) { output.Append("class=\"" + cssClass + "\" "); } string topicHashPath = HTMLBuilder.Source_TopicHashPath(targetTopic, targetTopicPage.IncludeClassInTopicHashPaths); output.Append("href=\"" + pathToIndex.ToURL() + '#' + targetTopicPage.OutputFileHashPath.EntityEncode() + (topicHashPath != null ? ':' + topicHashPath.EntityEncode() : "") + "\" " + "target=\"_top\" " + "onmouseover=\"NDContentPage.OnLinkMouseOver(event," + targetTopic.TopicID + ");\" " + "onmouseout=\"NDContentPage.OnLinkMouseOut(event);\" " + ">"); }
// Group: Functions // __________________________________________________________________________ /* Constructor: HTMLTopic */ public HTMLTopic(HTMLTopicPage topicPage) : base(topicPage) { cachedHTMLPrototypeBuilder = null; cachedHTMLClassPrototypeBuilder = null; isToolTip = false; }