diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-04-13 19:01:22 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-04-13 19:01:22 (GMT) |
commit | 4088d90d9abafaa51250e55a5f48a787a921ed98 (patch) | |
tree | 17a9c5d727d7c9aee93cdd92b7f832a4a09c1b2a /src/htmldocvisitor.cpp | |
parent | 02b5f51ef09a211e16e0158e5115ddf5b33d194d (diff) | |
download | Doxygen-4088d90d9abafaa51250e55a5f48a787a921ed98.zip Doxygen-4088d90d9abafaa51250e55a5f48a787a921ed98.tar.gz Doxygen-4088d90d9abafaa51250e55a5f48a787a921ed98.tar.bz2 |
Release-1.3.6-20040413
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r-- | src/htmldocvisitor.cpp | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp index 6d46942..a2ca11f 100644 --- a/src/htmldocvisitor.cpp +++ b/src/htmldocvisitor.cpp @@ -171,6 +171,7 @@ void HtmlDocVisitor::visit(DocStyleChange *s) m_insidePre=FALSE; m_t << "</pre>"; } + break; case DocStyleChange::Div: if (s->enable()) m_t << "<div" << htmlAttribsToString(s->attribs()) << ">"; else m_t << "</div>"; break; @@ -245,9 +246,18 @@ void HtmlDocVisitor::visit(DocInclude *inc) switch(inc->type()) { case DocInclude::Include: - m_t << "<div class=\"fragment\"><pre>"; + m_t << "<pre class=\"fragment\"><div>"; parseCode(m_ci,inc->context(),inc->text().latin1(),inc->isExample(),inc->exampleFile()); - m_t << "</pre></div>"; + m_t << "</div></pre>"; + case DocInclude::IncWithLines: + { + m_t << "<div class=\"fragment\"><pre>"; + 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 << "</pre></div>"; + } + break; break; case DocInclude::DontInclude: break; @@ -255,9 +265,9 @@ void HtmlDocVisitor::visit(DocInclude *inc) m_t << inc->text(); break; case DocInclude::VerbInclude: - m_t << "<div class=\"fragment\"><pre>"; + m_t << "<pre class=\"fragment\"><div>"; filter(inc->text()); - m_t << "</pre></div>"; + m_t << "</div></pre>"; break; } } @@ -268,7 +278,7 @@ void HtmlDocVisitor::visit(DocIncOperator *op) // op->type(),op->isFirst(),op->isLast(),op->text().data()); if (op->isFirst()) { - if (!m_hide) m_t << "<div class=\"fragment\"><pre>"; + if (!m_hide) m_t << "<pre class=\"fragment\"><div>"; pushEnabled(); m_hide=TRUE; } @@ -282,7 +292,7 @@ void HtmlDocVisitor::visit(DocIncOperator *op) if (op->isLast()) { popEnabled(); - if (!m_hide) m_t << "</pre></div>"; + if (!m_hide) m_t << "</div></pre>"; } else { |