diff options
author | albert-github <albert.tests@gmail.com> | 2014-12-10 17:14:29 (GMT) |
---|---|---|
committer | albert-github <albert.tests@gmail.com> | 2014-12-10 17:14:29 (GMT) |
commit | 05eb230757f6510d461bd14df3b190da46edd9dc (patch) | |
tree | 05c94ee9242d0f47869696b8861fdfc38a29f68f /src/rtfgen.h | |
parent | dc37f6c2a42740e6cbd79d1e6c758c5cbc1f10f7 (diff) | |
download | Doxygen-05eb230757f6510d461bd14df3b190da46edd9dc.zip Doxygen-05eb230757f6510d461bd14df3b190da46edd9dc.tar.gz Doxygen-05eb230757f6510d461bd14df3b190da46edd9dc.tar.bz2 |
Add source code possibility for RTF output
Analogous to Latex and HTML output the possibility to have source code shown in RTF output is created.
Based on question: http://doxygen.10944.n7.nabble.com/RTF-lack-of-source-code-tc6936.html
Diffstat (limited to 'src/rtfgen.h')
-rw-r--r-- | src/rtfgen.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rtfgen.h b/src/rtfgen.h index 7b31673..2617ee6 100644 --- a/src/rtfgen.h +++ b/src/rtfgen.h @@ -126,7 +126,7 @@ class RTFGenerator : public OutputGenerator void writeAnchor(const char *fileName,const char *name); void startCodeFragment(); void endCodeFragment(); - void writeLineNumber(const char *,const char *,const char *,int l) { t << l << " "; } + void writeLineNumber(const char *,const char *,const char *,int l) { t << QString("%1").arg(l,5) << " "; } void startCodeLine(bool) { col=0; } void endCodeLine() { lineBreak(); } void startEmphasis() { t << "{\\i "; } @@ -277,6 +277,7 @@ class RTFGenerator : public OutputGenerator void incrementIndentLevel(); void decrementIndentLevel(); int col; + bool m_prettyCode; bool m_bstartedBody; // has startbody been called yet? int m_listLevel; // // RTF does not really have a addative indent...manually set list level. |