diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-11-18 14:52:40 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2001-11-18 14:52:40 (GMT) |
commit | c736b03f16a88b6654ff9c1ae680e46b86e50218 (patch) | |
tree | 066b0bffed86445dbe3d494eaf31515f5b743e8c /src/htmlgen.cpp | |
parent | fba77445463c412e6b514174df590fdce58838cf (diff) | |
download | Doxygen-c736b03f16a88b6654ff9c1ae680e46b86e50218.zip Doxygen-c736b03f16a88b6654ff9c1ae680e46b86e50218.tar.gz Doxygen-c736b03f16a88b6654ff9c1ae680e46b86e50218.tar.bz2 |
Release-1.2.12
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index 6193223..54b815c 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -1113,3 +1113,23 @@ void HtmlGenerator::writeNonBreakableSpace(int n) t << " "; } } + +void HtmlGenerator::writeLineNumber(const char *ref,const char *file, + const char *anchor,int l) +{ + QCString lineNumber,lineAnchor; + lineNumber.sprintf("%05d",l); + lineAnchor.sprintf("l%05d",l); + + if (file) + { + startCodeAnchor(lineAnchor); + writeCodeLink(ref,file,anchor,lineNumber); + endCodeAnchor(); + } + else + { + codify(lineNumber); + } + codify(" "); +} |