Example #1
0
        // Group: Functions
        // __________________________________________________________________________


        /* Constructor: HTMLClassPrototype
         */
        public HTMLClassPrototype(HTMLTopicPage topicPage) : base(topicPage)
        {
            parsedPrototype = null;
            language        = null;
            isToolTip       = false;
            addLinks        = false;
        }
Example #2
0
        // Group: Functions
        // __________________________________________________________________________


        /* Constructor: HTMLComponent
         */
        public HTMLComponent(HTMLTopicPage topicPage)
        {
            this.topicPage = topicPage;

            htmlOutput  = null;
            topic       = null;
            links       = null;
            linkTargets = null;
        }
Example #3
0
        // Group: Functions
        // __________________________________________________________________________


        /* Constructor: HTMLPrototype
         */
        public HTMLPrototype(HTMLTopicPage topicPage) : base(topicPage)
        {
            parsedPrototype   = null;
            language          = null;
            columnIndexes     = null;
            endOfColumnsIndex = -1;
            columnWidths      = null;
            htmlCells         = null;
            addLinks          = false;
        }
Example #4
0
        // Group: Functions
        // __________________________________________________________________________


        /* Constructor: HTMLPrototype
         */
        public HTMLPrototype(HTMLTopicPage topicPage) : base(topicPage)
        {
            parsedPrototype            = null;
            language                   = null;
            parameterTableSection      = null;
            parameterTableTokenIndexes = null;
            parameterTableColumnsUsed  = null;
            symbolColumnWidth          = 0;
            addLinks                   = false;
        }
Example #5
0
        // 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);
        }
Example #6
0
        // 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);
        }
Example #7
0
        /* 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);\" " +
                          ">");
        }
Example #8
0
        // Group: Functions
        // __________________________________________________________________________


        /* Constructor: HTMLTopic
         */
        public HTMLTopic(HTMLTopicPage topicPage) : base(topicPage)
        {
            cachedHTMLPrototypeBuilder      = null;
            cachedHTMLClassPrototypeBuilder = null;
            isToolTip = false;
        }