summaryrefslogtreecommitdiffstats
path: root/src/rtfdocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-04-13 19:01:22 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-04-13 19:01:22 (GMT)
commitf08c77a2ead21877f1cbd49a5b325ab7be0fc599 (patch)
tree17a9c5d727d7c9aee93cdd92b7f832a4a09c1b2a /src/rtfdocvisitor.cpp
parentcba24284923c7319c08926c3ba9cd20f3eee3fdf (diff)
downloadDoxygen-f08c77a2ead21877f1cbd49a5b325ab7be0fc599.zip
Doxygen-f08c77a2ead21877f1cbd49a5b325ab7be0fc599.tar.gz
Doxygen-f08c77a2ead21877f1cbd49a5b325ab7be0fc599.tar.bz2
Release-1.3.6-20040413
Diffstat (limited to 'src/rtfdocvisitor.cpp')
-rw-r--r--src/rtfdocvisitor.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp
index 6c65ee2..2f2dd25 100644
--- a/src/rtfdocvisitor.cpp
+++ b/src/rtfdocvisitor.cpp
@@ -26,6 +26,7 @@
#include "util.h"
#include "rtfstyle.h"
#include "message.h"
+#include <qfileinfo.h>
RTFDocVisitor::RTFDocVisitor(QTextStream &t,BaseCodeDocInterface &ci)
: DocVisitor(DocVisitor_RTF), m_t(t), m_ci(ci), m_insidePre(FALSE), m_hide(FALSE), m_indentLevel(1)
@@ -366,7 +367,19 @@ void RTFDocVisitor::visit(DocInclude *inc)
if (m_hide) return;
switch(inc->type())
{
- case DocInclude::Include:
+ case DocInclude::IncWithLines:
+ {
+ m_t << "{" << endl;
+ m_t << "\\par" << endl;
+ m_t << rtf_Style_Reset << getStyle("CodeExample");
+ QFileInfo cfi( inc->file() );
+ FileDef fd( cfi.dirPath(), cfi.fileName() );
+ parseCode(m_ci,inc->context(),inc->text().latin1(),inc->isExample(),inc->exampleFile(), &fd);
+ m_t << "\\par" << endl;
+ m_t << "}" << endl;
+ }
+ break;
+ case DocInclude::Include:
m_t << "{" << endl;
m_t << "\\par" << endl;
m_t << rtf_Style_Reset << getStyle("CodeExample");