");
}
void visit(DocStyleChange *s)
{
indent_leaf();
switch (s->style())
{
case DocStyleChange::Bold:
if (s->enable()) printf(""); else printf("");
break;
case DocStyleChange::Italic:
if (s->enable()) printf(""); else printf("");
break;
case DocStyleChange::Code:
if (s->enable()) printf(""); else printf("");
break;
case DocStyleChange::Subscript:
if (s->enable()) printf(""); else printf("");
break;
case DocStyleChange::Superscript:
if (s->enable()) printf(""); else printf("");
break;
case DocStyleChange::Center:
if (s->enable()) printf("
"); else printf("
");
break;
case DocStyleChange::Small:
if (s->enable()) printf(""); else printf("");
break;
case DocStyleChange::Preformatted:
if (s->enable()) printf("
"); else printf("
");
break;
case DocStyleChange::Div:
if (s->enable()) printf("
"); else printf("
");
break;
case DocStyleChange::Span:
if (s->enable()) printf(""); else printf("");
break;
}
}
void visit(DocVerbatim *s)
{
indent_leaf();
switch(s->type())
{
case DocVerbatim::Code: printf(""); break;
case DocVerbatim::Verbatim: printf(""); break;
case DocVerbatim::HtmlOnly: printf(""); break;
case DocVerbatim::RtfOnly: printf(""); break;
case DocVerbatim::ManOnly: printf(""); break;
case DocVerbatim::LatexOnly: printf(""); break;
case DocVerbatim::XmlOnly: printf(""); break;
case DocVerbatim::Dot: printf(""); break;
case DocVerbatim::Msc: printf(""); break;
}
printf("%s",s->text().data());
switch(s->type())
{
case DocVerbatim::Code: printf(""); break;
case DocVerbatim::Verbatim: printf(""); break;
case DocVerbatim::HtmlOnly: printf(""); break;
case DocVerbatim::RtfOnly: printf(""); break;
case DocVerbatim::ManOnly: printf(""); break;
case DocVerbatim::LatexOnly: printf(""); break;
case DocVerbatim::XmlOnly: printf(""); break;
case DocVerbatim::Dot: printf(""); break;
case DocVerbatim::Msc: printf(""); break;
}
}
void visit(DocAnchor *a)
{
indent_leaf();
printf("",a->anchor().data());
}
void visit(DocInclude *inc)
{
indent_leaf();
printf("file().data());
switch(inc->type())
{
case DocInclude::Include: printf("include"); break;
case DocInclude::IncWithLines: printf("incwithlines"); break;
case DocInclude::DontInclude: printf("dontinclude"); break;
case DocInclude::HtmlInclude: printf("htmlinclude"); break;
case DocInclude::VerbInclude: printf("verbinclude"); break;
case DocInclude::Snippet: printf("snippet"); break;
}
printf("\"/>");
}
void visit(DocIncOperator *op)
{
indent_leaf();
printf("pattern().data());
switch(op->type())
{
case DocIncOperator::Line: printf("line"); break;
case DocIncOperator::Skip: printf("skip"); break;
case DocIncOperator::SkipLine: printf("skipline"); break;
case DocIncOperator::Until: printf("until"); break;
}
printf("\"/>");
}
void visit(DocFormula *f)
{
indent_leaf();
printf("",f->name().data(),f->text().data());
}
void visit(DocIndexEntry *i)
{
indent_leaf();
printf("%sentry().data());
}
void visit(DocSimpleSectSep *)
{
indent_leaf();
printf("");
}
void visit(DocCite *cite)
{
indent_leaf();
printf("\n",
cite->ref().data(),cite->file().data(),cite->anchor().data(),
cite->text().data());
}
//--------------------------------------
void visitPre(DocAutoList *l)
{
indent_pre();
if (l->isEnumList())
{
printf("\n");
}
else
{
printf("