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

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

Builds html for a Type. An Type here is a class, struct, interface, etc.

Parameters:
nav The XPathNavigator pointing to the type node.
namespaceName The namespace containing this type.

Definition at line 1176 of file LinearHtmlDocumenter.cs.

            {
                  string nodeName = nav.GetAttribute("name", "");
                  string nodeType = nav.LocalName;
                  Trace.WriteLine(String.Format("MakeHtmlForType: Visiting Type Node: {0}: {1}", nodeType, nodeName));

                  if (namespaceSections.ContainsKey(nodeType))
                  {
                        // write to appropriate writer
                        string sectionName = (string)namespaceSections[nodeType];
                        StartNamespaceSectionWriter(namespaceName, sectionName);
                              
                        // now write members
                        Hashtable nsSectionWriters = (Hashtable)namespaceWriters[namespaceName];
                        XmlTextWriter xtw = (XmlTextWriter)nsSectionWriters[sectionName];

                        if (useXslt)
                        {
                              MakeHtmlForTypeUsingXslt(nav, xtw, namespaceName);
                        }
                        else
                        {
                              MakeHtmlForTypeUsingCs(nav, xtw, namespaceName);
                        }
                  }
                  else 
                  {
                        if (!nodeType.Equals("summary"))
                              Console.WriteLine("Warn: MakeHtmlForType: Unknown section for node name {0}", 
                                    nav.LocalName);
                  }
            }


Generated by  Doxygen 1.6.0   Back to index