/******************************************************************************
*
* $Id$
*
* Copyright (C) 1997-1999 by Dimitri van Heesch.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation under the terms of the GNU General Public License is hereby
* granted. No representations are made about the suitability of this software
* for any purpose. It is provided "as is" without express or implied warranty.
* See the GNU General Public License for more details.
*
* All output generated with Doxygen is not covered by this license.
*
*/
#include " << endl;
}
void HtmlGenerator::writeString(const char *text)
{
t << text;
}
void HtmlGenerator::writeIndexItem(const char *ref,const char *f,
const char *name)
{
t << " ";
}
void HtmlGenerator::endClassDiagram(ClassDiagram &d,
const char *fileName,const char *name)
{
t << ":\n
";
else
t << substitute(
substitute(
substitute(footer,"$title",lastTitle),
"$datetime",dateToString(TRUE)
),
"$date",dateToString(FALSE)
);
break;
case 1:
if (footer.length()==0)
{
t << " ";
t << " ";
}
break;
default:
if (footer.length()==0)
t << " Dimitri van Heesch, © "
"1997-1999\n\n\n";
break;
}
}
void HtmlGenerator::endFile()
{
endPlainFile();
}
void HtmlGenerator::startProjectNumber()
{
t << "";
}
void HtmlGenerator::endProjectNumber()
{
t << "
";
}
void HtmlGenerator::writeStyleInfo(int part)
{
if (part==0)
{
startPlainFile("doxygen.css");
t << "H1 { border-width: thin; border: solid; text-align: center }" << endl
<< "A.el { text-decoration: none; font-weight: bold }" << endl
<< "DL.el { margin-left: -1cm }" << endl
<< "DIV.fragment { width: 100%; border: none; background-color: #eeeeee }" << endl
<< "DIV.in { margin-left: 16 }" << endl
<< endl;
endPlainFile();
}
}
void HtmlGenerator::writeDoxyAnchor(const char *,const char *anchor, const char *name)
{
t << "";
}
void HtmlGenerator::newParagraph()
{
t << endl << "";
}
void HtmlGenerator::endGroupHeader()
{
t << "
" << endl;
}
void HtmlGenerator::writeSection(const char *lab,const char *title,bool sub)
{
t << "";
if (sub) t << ""; else t << "
"; else t << "";
t << "" << endl;
}
void HtmlGenerator::writeSectionRef(const char *name,const char *lab,
const char *title)
{
QString refName=name;
if (refName.right(5)!=".html") refName+=".html";
t << "";
docify(title);
t << "";
}
void HtmlGenerator::writeSectionRefItem(const char *name,const char *lab,
const char *title)
{
QString refName=name;
if (refName.right(5)!=".html") refName+=".html";
t << "";
docify(title);
t << "";
}
void HtmlGenerator::writeSectionRefAnchor(const char *name,const char *lab,
const char *title)
{
writeSectionRef(name,lab,title);
}
void HtmlGenerator::docify(const char *str)
{
if (str)
{
const char *p=str;
char c;
while (*p)
{
c=*p++;
switch(c)
{
case '<': t << "<"; break;
case '>': t << ">"; break;
case '&': t << "&"; break;
case '\\':
if (*p=='<')
{ t << "<"; p++; }
else if (*p=='>')
{ t << ">"; p++; }
else
t << "\\";
break;
default: t << c;
}
}
}
}
void HtmlGenerator::codify(const char *str)
{
docify(str);
}
void HtmlGenerator::writeChar(char c)
{
char cs[2];
cs[0]=c;
cs[1]=0;
docify(cs);
}
void HtmlGenerator::startClassDiagram()
{
t << "";
docify(title);
if (sub) t << "