summaryrefslogtreecommitdiffstats
path: root/src/htmldocvisitor.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2004-04-27 19:44:46 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2004-04-27 19:44:46 (GMT)
commit08b4b96ea20ded173b851aeb452c5d3c98e08cc4 (patch)
tree73dfea63810e8b2a57aee5b37ecd2f360c69f440 /src/htmldocvisitor.cpp
parentf08c77a2ead21877f1cbd49a5b325ab7be0fc599 (diff)
downloadDoxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.zip
Doxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.tar.gz
Doxygen-08b4b96ea20ded173b851aeb452c5d3c98e08cc4.tar.bz2
Release-1.3.6-20040427
Diffstat (limited to 'src/htmldocvisitor.cpp')
-rw-r--r--src/htmldocvisitor.cpp34
1 files changed, 26 insertions, 8 deletions
diff --git a/src/htmldocvisitor.cpp b/src/htmldocvisitor.cpp
index a2ca11f..62460df 100644
--- a/src/htmldocvisitor.cpp
+++ b/src/htmldocvisitor.cpp
@@ -189,12 +189,12 @@ void HtmlDocVisitor::visit(DocVerbatim *s)
switch(s->type())
{
case DocVerbatim::Code: // fall though
- m_t << "<pre class=\"fragment\"><div>";
+ m_t << "<pre><div class=\"fragment\">";
parseCode(m_ci,s->context(),s->text().latin1(),s->isExample(),s->exampleFile());
m_t << "</div></pre>";
break;
case DocVerbatim::Verbatim:
- m_t << "<pre class=\"fragment\"><div>";
+ m_t << "<pre><div class=\"fragment\">";
filter(s->text());
m_t << "</div></pre>";
break;
@@ -246,16 +246,16 @@ void HtmlDocVisitor::visit(DocInclude *inc)
switch(inc->type())
{
case DocInclude::Include:
- m_t << "<pre class=\"fragment\"><div>";
+ m_t << "<pre><div class=\"fragment\">";
parseCode(m_ci,inc->context(),inc->text().latin1(),inc->isExample(),inc->exampleFile());
m_t << "</div></pre>";
case DocInclude::IncWithLines:
{
- m_t << "<div class=\"fragment\"><pre>";
+ m_t << "<pre><div class=\"fragment\">";
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>";
+ m_t << "</div></pre>";
}
break;
break;
@@ -265,7 +265,7 @@ void HtmlDocVisitor::visit(DocInclude *inc)
m_t << inc->text();
break;
case DocInclude::VerbInclude:
- m_t << "<pre class=\"fragment\"><div>";
+ m_t << "<pre><div class=\"fragment\">";
filter(inc->text());
m_t << "</div></pre>";
break;
@@ -278,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 << "<pre class=\"fragment\"><div>";
+ if (!m_hide) m_t << "<pre><div class=\"fragment\">";
pushEnabled();
m_hide=TRUE;
}
@@ -868,7 +868,25 @@ void HtmlDocVisitor::visitPost(DocParamSect *)
void HtmlDocVisitor::visitPre(DocParamList *pl)
{
if (m_hide) return;
- m_t << " <tr><td valign=top><em>";
+ m_t << " <tr><td>";
+ if (pl->direction()!=DocParamSect::Unspecified)
+ {
+ m_t << "<tt>[";
+ if (pl->direction()==DocParamSect::In)
+ {
+ m_t << "in";
+ }
+ else if (pl->direction()==DocParamSect::Out)
+ {
+ m_t << "out";
+ }
+ else if (pl->direction()==DocParamSect::InOut)
+ {
+ m_t << "in,out";
+ }
+ m_t << "]</tt>&nbsp;";
+ }
+ m_t << "</td><td valign=top><em>";
QStrListIterator li(pl->parameters());
const char *s;
bool first=TRUE;