diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2012-05-19 12:11:23 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2012-05-19 12:11:23 (GMT) |
commit | 55e5055cfbb6f8e013a894c0ec8b10771231e3ba (patch) | |
tree | 58d7a64919b99cc76fdc7120ae5d0407f3163a67 /src/htmlgen.cpp | |
parent | 44ca9512aaeb19f7fbd07afda88ec4cfe53ce831 (diff) | |
download | Doxygen-55e5055cfbb6f8e013a894c0ec8b10771231e3ba.zip Doxygen-55e5055cfbb6f8e013a894c0ec8b10771231e3ba.tar.gz Doxygen-55e5055cfbb6f8e013a894c0ec8b10771231e3ba.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 << " "; +} + + |