diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2012-05-19 12:11:23 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2012-05-19 12:11:23 (GMT) |
commit | 7e1fa1f27b1d85172af518acc24b8bc68a0f1b29 (patch) | |
tree | 58d7a64919b99cc76fdc7120ae5d0407f3163a67 /src/htmlgen.cpp | |
parent | c11926b2549660b7eb6b73aa4bf2096e56a6f8dd (diff) | |
download | Doxygen-7e1fa1f27b1d85172af518acc24b8bc68a0f1b29.zip Doxygen-7e1fa1f27b1d85172af518acc24b8bc68a0f1b29.tar.gz Doxygen-7e1fa1f27b1d85172af518acc24b8bc68a0f1b29.tar.bz2 |
Release-1.8.1
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 72 |
1 files changed, 49 insertions, 23 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index fcf821c0..63bff45 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -2234,13 +2234,15 @@ void HtmlGenerator::startDotGraph() void HtmlGenerator::endDotGraph(const DotClassGraph &g) { + bool generateLegend = Config_getBool("GENERATE_LEGEND"); + bool umlLook = Config_getBool("UML_LOOK"); endSectionHeader(t); startSectionSummary(t,m_sectionCount); endSectionSummary(t); startSectionContent(t,m_sectionCount); g.writeGraph(t,BITMAP,dir,fileName,relPath,TRUE,TRUE,m_sectionCount); - if (Config_getBool("GENERATE_LEGEND")) + if (generateLegend && !umlLook) { t << "<center><span class=\"legend\">["; startHtmlLink(relPath+"graph_legend"+Doxygen::htmlFileExtension); @@ -2384,28 +2386,6 @@ void HtmlGenerator::writeNonBreakableSpace(int n) } } -void HtmlGenerator::writeLineNumber(const char *ref,const char *filename, - const char *anchor,int l) -{ - QCString lineNumber,lineAnchor; - lineNumber.sprintf("%05d",l); - lineAnchor.sprintf("l%05d",l); - - if (filename) - { - startCodeAnchor(lineAnchor); - writeCodeLink(ref,filename,anchor,lineNumber,0); - endCodeAnchor(); - } - else - { - startCodeAnchor(lineAnchor); - codify(lineNumber); - endCodeAnchor(); - } - codify(" "); -} - void HtmlGenerator::startSimpleSect(SectionTypes, const char *filename,const char *anchor, const char *title) @@ -3072,4 +3052,50 @@ void HtmlGenerator::writeInheritedSectionTitle(const char *id, << "</td></tr>" << endl; } +void HtmlGenerator::startCodeLine(bool hasLineNumbers) +{ + if (!hasLineNumbers) t << "<div class=\"line\">"; + col=0; +} + +void HtmlGenerator::endCodeLine() +{ + //codify("\n"); + t << "</div>\n"; +} + +void HtmlGenerator::startCodeAnchor(const char *label) +{ + t << "<div class=\"line\">"; + t << "<a name=\"" << label << "\"></a><span class=\"lineno\">"; +} + +void HtmlGenerator::endCodeAnchor() +{ + t << "</span>"; +} + +void HtmlGenerator::writeLineNumber(const char *ref,const char *filename, + const char *anchor,int l) +{ + QCString lineNumber,lineAnchor; + lineNumber.sprintf("%5d",l); + lineAnchor.sprintf("l%05d",l); + + if (filename) + { + startCodeAnchor(lineAnchor); + writeCodeLink(ref,filename,anchor,lineNumber,0); + endCodeAnchor(); + } + else + { + startCodeAnchor(lineAnchor); + codify(lineNumber); + endCodeAnchor(); + } + t << " "; +} + + |