Logo Search packages:      
Sourcecode: ndoc version File versions  Download package

void NDoc::Documenter::LinearHtml::LinearHtmlDocumenter::MakeHtmlTypeList ( XPathNavigator  nav,
string  namespaceName 
) [inline, private]

Write some html containing the list of types in this namespace.

Parameters:
nav 
namespaceName 

Definition at line 1099 of file LinearHtmlDocumenter.cs.

            {
                  // get a writer for this namespace's type list
                  StartNamespaceSectionWriter(namespaceName, "Type List");
                  Hashtable nsSectionWriters = (Hashtable)namespaceWriters[namespaceName];
                  XmlTextWriter xtw = (XmlTextWriter)nsSectionWriters["Type List"];

                  string[] colNames = { "Type", "Summary" };

                  // foreach namespace section ( "Classes", "Interfaces", etc)
                  foreach(string sectionName in orderedNamespaceSections)
                  {
                        // alphabetize
                        SortedList sortedList = GetSortedChildren(nav, sectionName, "name");

                        if (sortedList.Count > 0)
                        {
                              xtw.WriteElementString("h3", (string)namespaceSections[sectionName]);
                              this.StartTable(xtw, namespaceName + "_TypeList_" + sectionName, 600, colNames);
                              foreach(DictionaryEntry entry in sortedList)
                              {
                                    string typeName = (string)entry.Key;
                                    XPathNavigator n = (XPathNavigator)entry.Value;

                                    if (TypeMatchesIncludeRegexp(n))
                                    {
                                          //string typeName = n.GetAttribute("name", string.Empty);
                                          XPathNavigator summaryNav = GetDescendantNodeWithName(n, "summary");
                                          string summary = string.Empty;
                                          if (summaryNav != null) summary = summaryNav.Value;
                                          AddTableEntryRaw(xtw, this.TypeLinkReferenceWrap(typeName), summary);
                                    }
                              } 
                              this.EndTable(xtw);
                        }
                  }
            }


Generated by  Doxygen 1.6.0   Back to index