Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
HtmlGenerator Class Reference

#include <htmlgen.h>

Inheritance diagram for HtmlGenerator:
OutputGenerator BaseOutputDocInterface CodeOutputInterface

Public Member Functions

 HtmlGenerator ()
 
virtual ~HtmlGenerator ()
 
void enable ()
 
void disable ()
 
void enableIf (OutputType o)
 
void disableIf (OutputType o)
 
void disableIfNot (OutputType o)
 
bool isEnabled (OutputType o)
 
OutputGeneratorget (OutputType o)
 
void codify (const char *text)
 
void writeCodeLink (const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip)
 
void writeLineNumber (const char *ref, const char *file, const char *anchor, int lineNumber)
 
void writeTooltip (const char *id, const DocLinkInfo &docInfo, const char *decl, const char *desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo)
 
void startCodeLine (bool hasLineNumbers)
 
void endCodeLine ()
 
void startFontClass (const char *s)
 
void endFontClass ()
 
void writeCodeAnchor (const char *anchor)
 
void setCurrentDoc (Definition *context, const char *anchor, bool isSourceFile)
 
void addWord (const char *word, bool hiPriority)
 
void writeDoc (DocNode *, Definition *, MemberDef *)
 
void startFile (const char *name, const char *manName, const char *title)
 
void writeFooter (const char *navPath)
 
void endFile ()
 
void clearBuffer ()
 
void writeSearchInfo ()
 
void startIndexSection (IndexSections)
 
void endIndexSection (IndexSections)
 
void writePageLink (const char *, bool)
 
void startProjectNumber ()
 
void endProjectNumber ()
 
void writeStyleInfo (int part)
 
void startTitleHead (const char *)
 
void endTitleHead (const char *, const char *)
 
void startTitle ()
 
void endTitle ()
 
void startParagraph ()
 
void endParagraph ()
 
void writeString (const char *text)
 
void startIndexListItem ()
 
void endIndexListItem ()
 
void startIndexList ()
 
void endIndexList ()
 
void startIndexKey ()
 
void endIndexKey ()
 
void startIndexValue (bool)
 
void endIndexValue (const char *, bool)
 
void startItemList ()
 
void endItemList ()
 
void startIndexItem (const char *ref, const char *file)
 
void endIndexItem (const char *ref, const char *file)
 
void docify (const char *text)
 
void writeObjectLink (const char *ref, const char *file, const char *anchor, const char *name)
 
void startTextLink (const char *file, const char *anchor)
 
void endTextLink ()
 
void startHtmlLink (const char *url)
 
void endHtmlLink ()
 
void startTypewriter ()
 
void endTypewriter ()
 
void startGroupHeader (int)
 
void endGroupHeader (int)
 
void startItemListItem ()
 
void endItemListItem ()
 
void startMemberSections ()
 
void endMemberSections ()
 
void startHeaderSection ()
 
void endHeaderSection ()
 
void startMemberHeader (const char *)
 
void endMemberHeader ()
 
void startMemberSubtitle ()
 
void endMemberSubtitle ()
 
void startMemberDocList ()
 
void endMemberDocList ()
 
void startMemberList ()
 
void endMemberList ()
 
void startInlineHeader ()
 
void endInlineHeader ()
 
void startAnonTypeScope (int)
 
void endAnonTypeScope (int)
 
void startMemberItem (const char *anchor, int, const char *inheritId)
 
void endMemberItem ()
 
void startMemberTemplateParams ()
 
void endMemberTemplateParams (const char *anchor, const char *inheritId)
 
void startMemberGroupHeader (bool)
 
void endMemberGroupHeader ()
 
void startMemberGroupDocs ()
 
void endMemberGroupDocs ()
 
void startMemberGroup ()
 
void endMemberGroup (bool)
 
void insertMemberAlign (bool)
 
void startMemberDescription (const char *anchor, const char *inheritId)
 
void endMemberDescription ()
 
void startMemberDeclaration ()
 
void endMemberDeclaration (const char *anchor, const char *inheritId)
 
void writeInheritedSectionTitle (const char *id, const char *ref, const char *file, const char *anchor, const char *title, const char *name)
 
void writeRuler ()
 
void writeAnchor (const char *, const char *name)
 
void startCodeFragment ()
 
void endCodeFragment ()
 
void startEmphasis ()
 
void endEmphasis ()
 
void startBold ()
 
void endBold ()
 
void startDescription ()
 
void endDescription ()
 
void startDescItem ()
 
void endDescItem ()
 
void startDescForItem ()
 
void endDescForItem ()
 
void lineBreak (const char *style)
 
void writeChar (char c)
 
void startMemberDoc (const char *, const char *, const char *, const char *, bool)
 
void endMemberDoc (bool)
 
void startDoxyAnchor (const char *fName, const char *manName, const char *anchor, const char *name, const char *args)
 
void endDoxyAnchor (const char *fName, const char *anchor)
 
void writeLatexSpacing ()
 
void writeStartAnnoItem (const char *type, const char *file, const char *path, const char *name)
 
void writeEndAnnoItem (const char *)
 
void startSubsection ()
 
void endSubsection ()
 
void startSubsubsection ()
 
void endSubsubsection ()
 
void startCenter ()
 
void endCenter ()
 
void startSmall ()
 
void endSmall ()
 
void startSimpleSect (SectionTypes, const char *, const char *, const char *)
 
void endSimpleSect ()
 
void startParamList (ParamListTypes, const char *)
 
void endParamList ()
 
void startSection (const char *, const char *, SectionInfo::SectionType)
 
void endSection (const char *, SectionInfo::SectionType)
 
void addIndexItem (const char *, const char *)
 
void startIndent ()
 
void endIndent ()
 
void writeSynopsis ()
 
void startClassDiagram ()
 
void endClassDiagram (const ClassDiagram &, const char *, const char *)
 
void startPageRef ()
 
void endPageRef (const char *, const char *)
 
void startQuickIndices ()
 
void endQuickIndices ()
 
void writeSplitBar (const char *name)
 
void writeNavigationPath (const char *s)
 
void writeLogo ()
 
void writeQuickLinks (bool compact, HighlightedItem hli, const char *file)
 
void writeSummaryLink (const char *file, const char *anchor, const char *title, bool first)
 
void startContents ()
 
void endContents ()
 
void writeNonBreakableSpace (int)
 
void startDescTable (const char *title)
 
void endDescTable ()
 
void startDescTableTitle ()
 
void endDescTableTitle ()
 
void startDescTableData ()
 
void endDescTableData ()
 
void startDotGraph ()
 
void endDotGraph (const DotClassGraph &g)
 
void startInclDepGraph ()
 
void endInclDepGraph (const DotInclDepGraph &g)
 
void startGroupCollaboration ()
 
void endGroupCollaboration (const DotGroupCollaboration &g)
 
void startCallGraph ()
 
void endCallGraph (const DotCallGraph &g)
 
void startDirDepGraph ()
 
void endDirDepGraph (const DotDirDeps &g)
 
void writeGraphicalHierarchy (const DotGfxHierarchyTable &g)
 
void startTextBlock (bool)
 
void endTextBlock (bool)
 
void lastIndexPage ()
 
void startMemberDocPrefixItem ()
 
void endMemberDocPrefixItem ()
 
void startMemberDocName (bool)
 
void endMemberDocName ()
 
void startParameterType (bool first, const char *key)
 
void endParameterType ()
 
void startParameterName (bool)
 
void endParameterName (bool last, bool emptyList, bool closeBracket)
 
void startParameterList (bool)
 
void endParameterList ()
 
virtual void exceptionEntry (const char *, bool)
 
void startConstraintList (const char *)
 
void startConstraintParam ()
 
void endConstraintParam ()
 
void startConstraintType ()
 
void endConstraintType ()
 
void startConstraintDocs ()
 
void endConstraintDocs ()
 
void endConstraintList ()
 
void startMemberDocSimple ()
 
void endMemberDocSimple ()
 
void startInlineMemberType ()
 
void endInlineMemberType ()
 
void startInlineMemberName ()
 
void endInlineMemberName ()
 
void startInlineMemberDoc ()
 
void endInlineMemberDoc ()
 
void startLabels ()
 
void writeLabel (const char *l, bool isLast)
 
void endLabels ()
 
- Public Member Functions inherited from OutputGenerator
 OutputGenerator ()
 
virtual ~OutputGenerator ()
 
void startPlainFile (const char *name)
 
void endPlainFile ()
 
bool isEnabled () const
 
void pushGeneratorState ()
 
void popGeneratorState ()
 
- Public Member Functions inherited from BaseOutputDocInterface
virtual ~BaseOutputDocInterface ()
 
virtual bool parseText (const QCString &s)
 
- Public Member Functions inherited from CodeOutputInterface
virtual ~CodeOutputInterface ()
 

Static Public Member Functions

static void init ()
 
static void writeStyleSheetFile (QFile &f)
 
static void writeHeaderFile (QFile &f, const char *cssname)
 
static void writeFooterFile (QFile &f)
 
static void writeTabData ()
 Additional initialization after indices have been created. More...
 
static void writeSearchInfo (FTextStream &t, const QCString &relPath)
 
static void writeSearchData (const char *dir)
 
static void writeSearchPage ()
 
static void writeExternalSearchPage ()
 
static QCString writeLogoAsString (const char *path)
 
static QCString writeSplitBarAsString (const char *name, const char *relpath)
 

Private Member Functions

void docify (const char *text, bool inHtmlComment)
 
HtmlGeneratoroperator= (const HtmlGenerator &g)
 
 HtmlGenerator (const HtmlGenerator &g)
 

Static Private Member Functions

static void writePageFooter (FTextStream &t, const QCString &, const QCString &, const QCString &)
 

Private Attributes

QCString lastTitle
 
QCString lastFile
 
QCString relPath
 
int m_sectionCount
 
bool m_emptySection
 
HtmlCodeGenerator m_codeGen
 

Additional Inherited Members

- Public Types inherited from OutputGenerator
enum  OutputType {
  Html, Latex, Man, RTF,
  XML, DEF, Perl
}
 
- Public Types inherited from BaseOutputDocInterface
enum  ParamListTypes { Param, RetVal, Exception }
 
enum  SectionTypes { EnumValues, Examples }
 
- Protected Attributes inherited from OutputGenerator
FTextStream t
 
QFilefile
 
QCString fileName
 
QCString dir
 
bool active
 
QStack< bool > * genStack
 

Detailed Description

Generator for HTML output

Definition at line 71 of file htmlgen.h.

Constructor & Destructor Documentation

HtmlGenerator::HtmlGenerator ( )

Definition at line 672 of file htmlgen.cpp.

672  : OutputGenerator()
673 {
674  dir=Config_getString("HTML_OUTPUT");
676 }
const bool FALSE
Definition: qglobal.h:370
bool m_emptySection
Definition: htmlgen.h:358
#define Config_getString(val)
Definition: config.cpp:660
QCString dir
Definition: outputgen.h:489
HtmlGenerator::~HtmlGenerator ( )
virtual

Definition at line 678 of file htmlgen.cpp.

679 {
680  //printf("HtmlGenerator::~HtmlGenerator()\n");
681 }
HtmlGenerator::HtmlGenerator ( const HtmlGenerator g)
private

Member Function Documentation

void HtmlGenerator::addIndexItem ( const char *  ,
const char *   
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1827 of file htmlgen.cpp.

1828 {
1829 }
void HtmlGenerator::addWord ( const char *  word,
bool  hiPriority 
)
virtual

Implements CodeOutputInterface.

Definition at line 2616 of file htmlgen.cpp.

2617 {
2619  {
2620  Doxygen::searchIndex->addWord(word,hiPriority);
2621  }
2622 }
static SearchIndexIntf * searchIndex
Definition: doxygen.h:133
virtual void addWord(const char *word, bool hiPriority)=0
union ptb::content::word::word word
void HtmlGenerator::clearBuffer ( )
void HtmlGenerator::codify ( const char *  s)
inlinevirtual

Writes an code fragment to the output. This function should keep spaces visible, should break lines at a newline and should convert tabs to the right number of spaces.

Implements CodeOutputInterface.

Definition at line 98 of file htmlgen.h.

99  { m_codeGen.codify(text); }
void codify(const char *text)
Definition: htmlgen.cpp:423
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void HtmlGenerator::disable ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 90 of file htmlgen.h.

90 { active=FALSE; }
const bool FALSE
Definition: qglobal.h:370
void HtmlGenerator::disableIf ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 92 of file htmlgen.h.

92 { if (o==Html) disable(); }
void disable()
Definition: htmlgen.h:90
void HtmlGenerator::disableIfNot ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 93 of file htmlgen.h.

93 { if (o!=Html) disable(); }
void disable()
Definition: htmlgen.h:90
void HtmlGenerator::docify ( const char *  s)
virtual

Writes an ASCII string to the output. Converts characters that have A special meaning, like & in html.

Implements BaseOutputDocInterface.

Definition at line 1212 of file htmlgen.cpp.

1213 {
1214  docify(str,FALSE);
1215 }
const bool FALSE
Definition: qglobal.h:370
void docify(const char *text)
Definition: htmlgen.cpp:1212
static QCString str
void HtmlGenerator::docify ( const char *  text,
bool  inHtmlComment 
)
private

Definition at line 1217 of file htmlgen.cpp.

1218 {
1219  if (str)
1220  {
1221  const char *p=str;
1222  char c;
1223  while (*p)
1224  {
1225  c=*p++;
1226  switch(c)
1227  {
1228  case '<': t << "&lt;"; break;
1229  case '>': t << "&gt;"; break;
1230  case '&': t << "&amp;"; break;
1231  case '"': t << "&quot;"; break;
1232  case '-': if (inHtmlComment) t << "&#45;"; else t << "-"; break;
1233  case '\\':
1234  if (*p=='<')
1235  { t << "&lt;"; p++; }
1236  else if (*p=='>')
1237  { t << "&gt;"; p++; }
1238  else
1239  t << "\\";
1240  break;
1241  default: t << c;
1242  }
1243  }
1244  }
1245 }
p
Definition: test.py:223
FTextStream t
Definition: outputgen.h:486
static QCString str
void HtmlGenerator::enable ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 88 of file htmlgen.h.

89  { if (genStack->top()) active=*genStack->top(); else active=TRUE; }
QStack< bool > * genStack
Definition: outputgen.h:491
const bool TRUE
Definition: qglobal.h:371
type * top() const
Definition: qstack.h:63
void HtmlGenerator::enableIf ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 91 of file htmlgen.h.

91 { if (o==Html) enable(); }
void enable()
Definition: htmlgen.h:88
void HtmlGenerator::endAnonTypeScope ( int  )
inlinevirtual

Implements OutputGenerator.

Definition at line 189 of file htmlgen.h.

189 {}
void HtmlGenerator::endBold ( )
inlinevirtual

End a section of text displayed in bold face.

Implements BaseOutputDocInterface.

Definition at line 219 of file htmlgen.h.

219 { t << "</b>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endCallGraph ( const DotCallGraph g)
virtual

Implements OutputGenerator.

Definition at line 1750 of file htmlgen.cpp.

1751 {
1756 
1758 
1760  m_sectionCount++;
1761 }
static void endSectionContent(FTextStream &t)
Definition: htmlgen.cpp:1321
static void startSectionContent(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1305
static void endSectionHeader(FTextStream &t)
Definition: htmlgen.cpp:1277
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3824
FTextStream t
Definition: outputgen.h:486
static void endSectionSummary(FTextStream &t)
Definition: htmlgen.cpp:1295
static void startSectionSummary(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1283
int m_sectionCount
Definition: htmlgen.h:357
Definition: dot.h:42
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::endCenter ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 243 of file htmlgen.h.

243 { t << "</center>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endClassDiagram ( const ClassDiagram d,
const char *  fileName,
const char *  name 
)
virtual

Implements OutputGenerator.

Definition at line 1334 of file htmlgen.cpp.

1336 {
1341  t << " <div class=\"center\">" << endl;
1342  t << " <img src=\"";
1343  t << relPath << fileName << ".png\" usemap=\"#" << convertToId(name);
1344  t << "_map\" alt=\"\"/>" << endl;
1345  t << " <map id=\"" << convertToId(name);
1346  t << "_map\" name=\"";
1347  docify(name);
1348  t << "_map\">" << endl;
1349 
1351  t << " </div>";
1353  m_sectionCount++;
1354 }
static void endSectionContent(FTextStream &t)
Definition: htmlgen.cpp:1321
static QCString name
Definition: declinfo.cpp:673
static void startSectionContent(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1305
static void endSectionHeader(FTextStream &t)
Definition: htmlgen.cpp:1277
QCString convertToId(const char *s)
Definition: util.cpp:5685
void writeImage(FTextStream &t, const char *path, const char *relPath, const char *file, bool generateMap=TRUE) const
Definition: diagram.cpp:1353
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
FTextStream t
Definition: outputgen.h:486
static void endSectionSummary(FTextStream &t)
Definition: htmlgen.cpp:1295
static void startSectionSummary(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1283
int m_sectionCount
Definition: htmlgen.h:357
void docify(const char *text)
Definition: htmlgen.cpp:1212
QTextStream & endl(QTextStream &s)
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::endCodeFragment ( )
inlinevirtual

Ends a source code fragment

Implements BaseOutputDocInterface.

Definition at line 215 of file htmlgen.h.

215 { t << PREFRAG_END; }
#define PREFRAG_END
Definition: htmlgen.h:27
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endCodeLine ( )
inlinevirtual

Ends a line of code started with startCodeLine()

Implements CodeOutputInterface.

Definition at line 112 of file htmlgen.h.

113  { m_codeGen.endCodeLine(); }
void endCodeLine()
Definition: htmlgen.cpp:650
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void HtmlGenerator::endConstraintDocs ( )
virtual

Implements OutputGenerator.

Definition at line 2415 of file htmlgen.cpp.

2416 {
2417  t << "</td></tr>" << endl;
2418 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endConstraintList ( )
virtual

Implements OutputGenerator.

Definition at line 2420 of file htmlgen.cpp.

2421 {
2422  t << "</table>" << endl;
2423  t << "</dd>" << endl;
2424  t << "</dl>" << endl;
2425  t << "</div>" << endl;
2426 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endConstraintParam ( )
virtual

Implements OutputGenerator.

Definition at line 2395 of file htmlgen.cpp.

2396 {
2397  t << "</em></td>";
2398 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endConstraintType ( )
virtual

Implements OutputGenerator.

Definition at line 2405 of file htmlgen.cpp.

2406 {
2407  t << "</em></td>";
2408 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endContents ( )
virtual

Implements OutputGenerator.

Definition at line 2182 of file htmlgen.cpp.

2183 {
2184  t << "</div><!-- contents -->" << endl;
2185 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endDescForItem ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 225 of file htmlgen.h.

225 { t << "</dd>\n"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endDescItem ( )
inlinevirtual

Ends an item of a description list and starts the description itself: e.g. </dt> in HTML.

Implements BaseOutputDocInterface.

Definition at line 223 of file htmlgen.h.

223 { t << "</dt>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endDescription ( )
inlinevirtual

Ends a description list: e.g. </dl> in HTML

Implements BaseOutputDocInterface.

Definition at line 221 of file htmlgen.h.

221 { t << endl << "</dl>\n" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endDescTable ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 279 of file htmlgen.h.

280  { t << "</table>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endDescTableData ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 289 of file htmlgen.h.

290  { t << "</td></tr>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endDescTableTitle ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 284 of file htmlgen.h.

285  { t << "&#160;</td>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endDirDepGraph ( const DotDirDeps g)
virtual

Implements OutputGenerator.

Definition at line 1768 of file htmlgen.cpp.

1769 {
1774 
1776 
1778  m_sectionCount++;
1779 }
static void endSectionContent(FTextStream &t)
Definition: htmlgen.cpp:1321
static void startSectionContent(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1305
static void endSectionHeader(FTextStream &t)
Definition: htmlgen.cpp:1277
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
FTextStream t
Definition: outputgen.h:486
static void endSectionSummary(FTextStream &t)
Definition: htmlgen.cpp:1295
static void startSectionSummary(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1283
QCString writeGraph(FTextStream &out, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1, bool linkRelations=TRUE) const
Definition: dot.cpp:3977
int m_sectionCount
Definition: htmlgen.h:357
Definition: dot.h:42
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::endDotGraph ( const DotClassGraph g)
virtual

Implements OutputGenerator.

Definition at line 1686 of file htmlgen.cpp.

1687 {
1688  bool generateLegend = Config_getBool("GENERATE_LEGEND");
1689  bool umlLook = Config_getBool("UML_LOOK");
1694 
1696  if (generateLegend && !umlLook)
1697  {
1698  t << "<center><span class=\"legend\">[";
1700  t << theTranslator->trLegend();
1701  endHtmlLink();
1702  t << "]</span></center>";
1703  }
1704 
1706  m_sectionCount++;
1707 }
static void endSectionContent(FTextStream &t)
Definition: htmlgen.cpp:1321
static void startSectionContent(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1305
static QCString htmlFileExtension
Definition: doxygen.h:130
static void endSectionHeader(FTextStream &t)
Definition: htmlgen.cpp:1277
void startHtmlLink(const char *url)
Definition: htmlgen.cpp:1138
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool TBRank=TRUE, bool imageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3133
void endHtmlLink()
Definition: htmlgen.cpp:1148
#define Config_getBool(val)
Definition: config.cpp:664
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
FTextStream t
Definition: outputgen.h:486
static void endSectionSummary(FTextStream &t)
Definition: htmlgen.cpp:1295
static void startSectionSummary(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1283
Translator * theTranslator
Definition: language.cpp:157
int m_sectionCount
Definition: htmlgen.h:357
virtual QCString trLegend()=0
Definition: dot.h:42
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::endDoxyAnchor ( const char *  fName,
const char *  anchor 
)
virtual

Implements OutputGenerator.

Definition at line 1023 of file htmlgen.cpp.

1024 {
1025 }
void HtmlGenerator::endEmphasis ( )
inlinevirtual

Ends a section of text displayed in italic.

Implements BaseOutputDocInterface.

Definition at line 217 of file htmlgen.h.

217 { t << "</em>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endFile ( )
virtual

Implements OutputGenerator.

Definition at line 948 of file htmlgen.cpp.

949 {
950  endPlainFile();
951 }
void endPlainFile()
Definition: outputgen.cpp:55
void HtmlGenerator::endFontClass ( )
inlinevirtual

Ends a block started with startFontClass()

Implements CodeOutputInterface.

Definition at line 116 of file htmlgen.h.

117  { m_codeGen.endFontClass(); }
void endFontClass()
Definition: htmlgen.cpp:660
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void HtmlGenerator::endGroupCollaboration ( const DotGroupCollaboration g)
virtual

Implements OutputGenerator.

Definition at line 1732 of file htmlgen.cpp.

1733 {
1738 
1740 
1742  m_sectionCount++;
1743 }
static void endSectionContent(FTextStream &t)
Definition: htmlgen.cpp:1321
static void startSectionContent(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1305
static void endSectionHeader(FTextStream &t)
Definition: htmlgen.cpp:1277
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:4519
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
FTextStream t
Definition: outputgen.h:486
static void endSectionSummary(FTextStream &t)
Definition: htmlgen.cpp:1295
static void startSectionSummary(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1283
int m_sectionCount
Definition: htmlgen.h:357
Definition: dot.h:42
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::endGroupHeader ( int  extraIndentLevel)
virtual

Implements OutputGenerator.

Definition at line 1169 of file htmlgen.cpp.

1170 {
1171  if (extraIndentLevel==2)
1172  {
1173  t << "</h4>" << endl;
1174  }
1175  else if (extraIndentLevel==1)
1176  {
1177  t << "</h3>" << endl;
1178  }
1179  else
1180  {
1181  t << "</h2>" << endl;
1182  }
1183 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endHeaderSection ( )
virtual

Implements OutputGenerator.

Definition at line 2457 of file htmlgen.cpp.

2458 {
2459  t << "</div><!--header-->" << endl;
2460 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endHtmlLink ( )
virtual

Ends a link started by startHtmlLink().

Implements BaseOutputDocInterface.

Definition at line 1148 of file htmlgen.cpp.

1149 {
1150  t << "</a>";
1151 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endInclDepGraph ( const DotInclDepGraph g)
virtual

Implements OutputGenerator.

Definition at line 1714 of file htmlgen.cpp.

1715 {
1720 
1722 
1724  m_sectionCount++;
1725 }
static void endSectionContent(FTextStream &t)
Definition: htmlgen.cpp:1321
static void startSectionContent(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1305
static void endSectionHeader(FTextStream &t)
Definition: htmlgen.cpp:1277
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
FTextStream t
Definition: outputgen.h:486
static void endSectionSummary(FTextStream &t)
Definition: htmlgen.cpp:1295
static void startSectionSummary(FTextStream &t, int sectionCount)
Definition: htmlgen.cpp:1283
int m_sectionCount
Definition: htmlgen.h:357
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3503
Definition: dot.h:42
Definition: dot.h:43
const bool TRUE
Definition: qglobal.h:371
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::endIndent ( )
virtual

Implements OutputGenerator.

Definition at line 1821 of file htmlgen.cpp.

1822 {
1823  DBG_HTML(t << "<!-- endIndent -->" << endl;)
1824  t << endl << "</div>" << endl << "</div>" << endl;
1825 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endIndexItem ( const char *  ref,
const char *  file 
)
virtual

Implements OutputGenerator.

Definition at line 1081 of file htmlgen.cpp.

1082 {
1083  //printf("HtmlGenerator::endIndexItem(%s,%s,%s)\n",ref,f,name);
1084  if (ref || f)
1085  {
1086  t << "</a>";
1087  }
1088  else
1089  {
1090  t << "</b>";
1091  }
1092 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endIndexKey ( )
virtual

Implements OutputGenerator.

Definition at line 1516 of file htmlgen.cpp.

1517 {
1518  t << "</td>";
1519 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endIndexList ( )
virtual

Implements OutputGenerator.

Definition at line 1505 of file htmlgen.cpp.

1506 {
1507  t << "</table>" << endl;
1508 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endIndexListItem ( )
virtual

Implements OutputGenerator.

Definition at line 1052 of file htmlgen.cpp.

1053 {
1054  t << "</li>" << endl;
1055 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endIndexSection ( IndexSections  )
inlinevirtual

Implements OutputGenerator.

Definition at line 133 of file htmlgen.h.

133 {}
void HtmlGenerator::endIndexValue ( const char *  ,
bool   
)
virtual

Implements OutputGenerator.

Definition at line 1527 of file htmlgen.cpp.

1528 {
1529  t << "</td></tr>" << endl;
1530 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endInlineHeader ( )
virtual

Implements OutputGenerator.

Definition at line 2472 of file htmlgen.cpp.

2473 {
2474  t << "</h3></td></tr>" << endl;
2475 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endInlineMemberDoc ( )
virtual

Implements OutputGenerator.

Definition at line 2520 of file htmlgen.cpp.

2521 {
2522  DBG_HTML(t << "<!-- endInlineMemberDoc -->" << endl;)
2523  t << "</td></tr>" << endl;
2524 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endInlineMemberName ( )
virtual

Implements OutputGenerator.

Definition at line 2508 of file htmlgen.cpp.

2509 {
2510  DBG_HTML(t << "<!-- endInlineMemberName -->" << endl;)
2511  t << "</td>" << endl;
2512 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endInlineMemberType ( )
virtual

Implements OutputGenerator.

Definition at line 2496 of file htmlgen.cpp.

2497 {
2498  DBG_HTML(t << "<!-- endInlineMemberType -->" << endl;)
2499  t << "</td>" << endl;
2500 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endItemList ( )
inlinevirtual

Ends a bullet list: e.g. </ul> in html

Implements BaseOutputDocInterface.

Definition at line 155 of file htmlgen.h.

155 { t << "</ul>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endItemListItem ( )
inlinevirtual

Writes a list item for a bullet or enumerated list: e.g. </li> in html

Implements BaseOutputDocInterface.

Definition at line 172 of file htmlgen.h.

172 { t << "</li>\n"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endLabels ( )
virtual

Implements OutputGenerator.

Definition at line 2540 of file htmlgen.cpp.

2541 {
2542  DBG_HTML(t << "<!-- endLabels -->" << endl;)
2543  t << "</span>";
2544 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberDeclaration ( const char *  anchor,
const char *  inheritId 
)
virtual

Implements OutputGenerator.

Definition at line 2598 of file htmlgen.cpp.

2599 {
2600  t << "<tr class=\"separator:" << anchor;
2601  if (inheritId)
2602  {
2603  t << " inherit " << inheritId;
2604  }
2605  t << "\"><td class=\"memSeparator\" colspan=\"2\">&#160;</td></tr>\n";
2606 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endMemberDescription ( )
virtual

Implements OutputGenerator.

Definition at line 1439 of file htmlgen.cpp.

1440 {
1441  DBG_HTML(t << "<!-- endMemberDescription -->" << endl)
1442  t << "<br /></td></tr>" << endl;
1443 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberDoc ( bool  hasArgs)
virtual

Implements OutputGenerator.

Definition at line 1670 of file htmlgen.cpp.

1671 {
1672  DBG_HTML(t << "<!-- endMemberDoc -->" << endl;)
1673  if (!hasArgs)
1674  {
1675  t << " </tr>" << endl;
1676  }
1677  t << " </table>" << endl;
1678  // t << "</div>" << endl;
1679 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberDocList ( )
virtual

Implements OutputGenerator.

Definition at line 1537 of file htmlgen.cpp.

1538 {
1539  DBG_HTML(t << "<!-- endMemberDocList -->" << endl;)
1540 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberDocName ( )
virtual

Implements OutputGenerator.

Definition at line 1572 of file htmlgen.cpp.

1573 {
1574  DBG_HTML(t << "<!-- endMemberDocName -->" << endl;)
1575  t << "</td>" << endl;
1576 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberDocPrefixItem ( )
virtual

Implements OutputGenerator.

Definition at line 1556 of file htmlgen.cpp.

1557 {
1558  DBG_HTML(t << "<!-- endMemberDocPrefixItem -->" << endl;)
1559  t << "</div>" << endl;
1560 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberDocSimple ( )
virtual

Implements OutputGenerator.

Definition at line 2484 of file htmlgen.cpp.

2485 {
2486  DBG_HTML(t << "<!-- endMemberDocSimple -->" << endl;)
2487  t << "</table>" << endl;
2488 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberGroup ( bool  )
virtual

Implements OutputGenerator.

Definition at line 1810 of file htmlgen.cpp.

1811 {
1812 }
void HtmlGenerator::endMemberGroupDocs ( )
virtual

Implements OutputGenerator.

Definition at line 1801 of file htmlgen.cpp.

1802 {
1803  t << "</div></td></tr>" << endl;
1804 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberGroupHeader ( )
virtual

Implements OutputGenerator.

Definition at line 1791 of file htmlgen.cpp.

1792 {
1793  t << "</div></td></tr>" << endl;
1794 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberHeader ( )
virtual

Implements OutputGenerator.

Definition at line 1482 of file htmlgen.cpp.

1483 {
1484  DBG_HTML(t << "<!-- endMemberHeader -->" << endl)
1485  t << "</h2></td></tr>" << endl;
1486 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberItem ( )
virtual

Implements OutputGenerator.

Definition at line 1394 of file htmlgen.cpp.

1395 {
1396  t << "</td></tr>";
1397  t << endl;
1398 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberList ( )
virtual

Implements OutputGenerator.

Definition at line 1362 of file htmlgen.cpp.

1363 {
1364  DBG_HTML(t << "<!-- endMemberList -->" << endl)
1365 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberSections ( )
virtual

Implements OutputGenerator.

Definition at line 1453 of file htmlgen.cpp.

1454 {
1455  DBG_HTML(t << "<!-- endMemberSections -->" << endl)
1456  if (!m_emptySection)
1457  {
1458  t << "</table>" << endl;
1459  }
1460 }
bool m_emptySection
Definition: htmlgen.h:358
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberSubtitle ( )
virtual

Implements OutputGenerator.

Definition at line 1494 of file htmlgen.cpp.

1495 {
1496  DBG_HTML(t << "<!-- endMemberSubtitle -->" << endl)
1497  t << "</td></tr>" << endl;
1498 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endMemberTemplateParams ( const char *  anchor,
const char *  inheritId 
)
virtual

Implements OutputGenerator.

Definition at line 1404 of file htmlgen.cpp.

1405 {
1406  t << "</td></tr>" << endl;
1407  t << "<tr class=\"memitem:" << anchor;
1408  if (inheritId)
1409  {
1410  t << " inherit " << inheritId;
1411  }
1412  t << "\"><td class=\"memTemplItemLeft\" align=\"right\" valign=\"top\">";
1413 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endPageRef ( const char *  ,
const char *   
)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 262 of file htmlgen.h.

262 {}
void HtmlGenerator::endParagraph ( )
virtual

Ends a paragraph

Implements BaseOutputDocInterface.

Definition at line 1037 of file htmlgen.cpp.

1038 {
1039  t << "</p>" << endl;
1040 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endParameterList ( )
virtual

Implements OutputGenerator.

Definition at line 1647 of file htmlgen.cpp.

1648 {
1649  DBG_HTML(t << "<!-- endParameterList -->" << endl;)
1650  t << "</td>" << endl;
1651  t << " </tr>" << endl;
1652 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endParameterName ( bool  last,
bool  emptyList,
bool  closeBracket 
)
virtual

Implements OutputGenerator.

Definition at line 1617 of file htmlgen.cpp.

1618 {
1619  DBG_HTML(t << "<!-- endParameterName -->" << endl;)
1620  if (last)
1621  {
1622  if (emptyList)
1623  {
1624  if (closeBracket) t << "</td><td>)";
1625  t << "</td>" << endl;
1626  t << " <td>";
1627  }
1628  else
1629  {
1630  t << "&#160;</td>" << endl;
1631  t << " </tr>" << endl;
1632  t << " <tr>" << endl;
1633  t << " <td></td>" << endl;
1634  t << " <td>";
1635  if (closeBracket) t << ")";
1636  t << "</td>" << endl;
1637  t << " <td></td><td>";
1638  }
1639  }
1640  else
1641  {
1642  t << "</td>" << endl;
1643  t << " </tr>" << endl;
1644  }
1645 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endParameterType ( )
virtual

Implements OutputGenerator.

Definition at line 1605 of file htmlgen.cpp.

1606 {
1607  DBG_HTML(t << "<!-- endParameterType -->" << endl;)
1608  t << "&#160;</td>" << endl;
1609 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endParamList ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1869 of file htmlgen.cpp.

1870 {
1871  t << "</dl>";
1872 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endProjectNumber ( )
virtual

Implements OutputGenerator.

Definition at line 958 of file htmlgen.cpp.

959 {
960  t << "</h3>";
961 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endQuickIndices ( )
virtual

Implements OutputGenerator.

Definition at line 2133 of file htmlgen.cpp.

2134 {
2135  t << "</div><!-- top -->" << endl;
2136 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endSection ( const char *  ,
SectionInfo::SectionType  type 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1199 of file htmlgen.cpp.

1200 {
1201  switch(type)
1202  {
1203  case SectionInfo::Page: t << "</h1>"; break;
1204  case SectionInfo::Section: t << "</h2>"; break;
1205  case SectionInfo::Subsection: t << "</h3>"; break;
1206  case SectionInfo::Subsubsection: t << "</h4>"; break;
1207  case SectionInfo::Paragraph: t << "</h5>"; break;
1208  default: ASSERT(0); break;
1209  }
1210 }
FTextStream t
Definition: outputgen.h:486
#define ASSERT(x)
Definition: qglobal.h:590
void HtmlGenerator::endSimpleSect ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1856 of file htmlgen.cpp.

1857 {
1858  t << "</dl>";
1859 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endSmall ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 245 of file htmlgen.h.

245 { t << "</small>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endSubsection ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 239 of file htmlgen.h.

239 { t << "</h2>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endSubsubsection ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 241 of file htmlgen.h.

241 { t << "</h3>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endTextBlock ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 306 of file htmlgen.h.

307  { t << "</div>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endTextLink ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1133 of file htmlgen.cpp.

1134 {
1135  t << "</a>";
1136 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endTitle ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 141 of file htmlgen.h.

141 { t << "</div>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::endTitleHead ( const char *  ,
const char *   
)
virtual

Implements OutputGenerator.

Definition at line 2451 of file htmlgen.cpp.

2452 {
2453  endTitle();
2454  t << " </div>" << endl;
2455 }
void endTitle()
Definition: htmlgen.h:141
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::endTypewriter ( )
inlinevirtual

End a section of text displayed in typewriter style.

Implements BaseOutputDocInterface.

Definition at line 168 of file htmlgen.h.

168 { t << "</code>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::exceptionEntry ( const char *  prefix,
bool  closeBracket 
)
virtual

Implements OutputGenerator.

Definition at line 1654 of file htmlgen.cpp.

1655 {
1656  DBG_HTML(t << "<!-- exceptionEntry -->" << endl;)
1657  t << "</td>" << endl;
1658  t << " </tr>" << endl;
1659  t << " <tr>" << endl;
1660  t << " <td align=\"right\">";
1661  // colspan 2 so it gets both parameter type and parameter name columns
1662  if (prefix)
1663  t << prefix << "</td><td>(</td><td colspan=\"2\">";
1664  else if (closeBracket)
1665  t << "</td><td>)</td><td></td><td>";
1666  else
1667  t << "</td><td></td><td colspan=\"2\">";
1668 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
OutputGenerator* HtmlGenerator::get ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 95 of file htmlgen.h.

95 { return (o==Html) ? this : 0; }
void HtmlGenerator::init ( )
static

Definition at line 683 of file htmlgen.cpp.

684 {
685  QCString dname=Config_getString("HTML_OUTPUT");
686  QDir d(dname);
687  if (!d.exists() && !d.mkdir(dname))
688  {
689  err("Could not create output directory %s\n",dname.data());
690  exit(1);
691  }
692  //writeLogo(dname);
693  if (!Config_getString("HTML_HEADER").isEmpty())
694  {
695  g_header=fileToString(Config_getString("HTML_HEADER"));
696  //printf("g_header='%s'\n",g_header.data());
697  }
698  else
699  {
700  g_header = ResourceMgr::instance().getAsString("header.html");
701  }
702 
703  if (!Config_getString("HTML_FOOTER").isEmpty())
704  {
705  g_footer=fileToString(Config_getString("HTML_FOOTER"));
706  //printf("g_footer='%s'\n",g_footer.data());
707  }
708  else
709  {
710  g_footer = ResourceMgr::instance().getAsString("footer.html");
711  }
712 
713  if (Config_getBool("USE_MATHJAX"))
714  {
715  if (!Config_getString("MATHJAX_CODEFILE").isEmpty())
716  {
717  g_mathjax_code=fileToString(Config_getString("MATHJAX_CODEFILE"));
718  //printf("g_mathjax_code='%s'\n",g_mathjax_code.data());
719  }
720  }
721  createSubDirs(d);
722 
724  mgr.copyResource("tabs.css",dname);
725  mgr.copyResource("jquery.js",dname);
726  if (Config_getBool("INTERACTIVE_SVG"))
727  {
728  mgr.copyResource("svgpan.js",dname);
729  }
730 
731  {
732  QFile f(dname+"/dynsections.js");
733  if (f.open(IO_WriteOnly))
734  {
735  FTextStream t(&f);
736  t << mgr.getAsString("dynsections.js");
737  if (Config_getBool("SOURCE_BROWSER") && Config_getBool("SOURCE_TOOLTIPS"))
738  {
739  t << endl <<
740  "$(document).ready(function() {\n"
741  " $('.code,.codeRef').each(function() {\n"
742  " $(this).data('powertip',$('#'+$(this).attr('href').replace(/.*\\//,'').replace(/[^a-z_A-Z0-9]/g,'_')).html());\n"
743  " $(this).powerTip({ placement: 's', smartPlacement: true, mouseOnToPopup: true });\n"
744  " });\n"
745  "});\n";
746  }
747  }
748  }
749 }
Traverses directory structures and contents in a platform-independent way.
Definition: qdir.h:52
QCString fileToString(const char *name, bool filter, bool isSourceCode)
Definition: util.cpp:2418
QCString getAsString(const char *name) const
static QCString g_footer
Definition: htmlgen.cpp:51
#define IO_WriteOnly
Definition: qiodevice.h:62
bool copyResource(const char *name, const char *targetDir) const
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
Singleton for managing resources compiled into an executable.
Definition: resourcemgr.h:32
const char * data() const
Definition: qcstring.h:207
#define Config_getString(val)
Definition: config.cpp:660
#define Config_getBool(val)
Definition: config.cpp:664
static QCString g_header
Definition: htmlgen.cpp:50
void err(const char *fmt,...)
Definition: message.cpp:226
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
FTextStream t
Definition: outputgen.h:486
static QCString g_mathjax_code
Definition: htmlgen.cpp:52
void createSubDirs(QDir &d)
Definition: util.cpp:5458
QTextStream & endl(QTextStream &s)
void HtmlGenerator::insertMemberAlign ( bool  templ)
virtual

Implements OutputGenerator.

Definition at line 1416 of file htmlgen.cpp.

1417 {
1418  DBG_HTML(t << "<!-- insertMemberAlign -->" << endl)
1419  QCString className = templ ? "memTemplItemRight" : "memItemRight";
1420  t << "&#160;</td><td class=\"" << className << "\" valign=\"bottom\">";
1421 }
static QCString className
Definition: declinfo.cpp:669
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
bool HtmlGenerator::isEnabled ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 94 of file htmlgen.h.

94 { return (o==Html && active); }
void HtmlGenerator::lastIndexPage ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 308 of file htmlgen.h.

308 {}
void HtmlGenerator::lineBreak ( const char *  style)
virtual

Implements BaseOutputDocInterface.

Definition at line 2428 of file htmlgen.cpp.

2429 {
2430  if (style)
2431  {
2432  t << "<br class=\"" << style << "\" />" << endl;
2433  }
2434  else
2435  {
2436  t << "<br />" << endl;
2437  }
2438 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
HtmlGenerator& HtmlGenerator::operator= ( const HtmlGenerator g)
private
void HtmlGenerator::setCurrentDoc ( Definition context,
const char *  anchor,
bool  isSourceFile 
)
virtual

Implements CodeOutputInterface.

Definition at line 2608 of file htmlgen.cpp.

2609 {
2611  {
2612  Doxygen::searchIndex->setCurrentDoc(context,anchor,isSourceFile);
2613  }
2614 }
static SearchIndexIntf * searchIndex
Definition: doxygen.h:133
virtual void setCurrentDoc(Definition *ctx, const char *anchor, bool isSourceFile)=0
void HtmlGenerator::startAnonTypeScope ( int  )
inlinevirtual

Implements OutputGenerator.

Definition at line 188 of file htmlgen.h.

188 {}
void HtmlGenerator::startBold ( )
inlinevirtual

Changes the text font to bold face. The bold section ends with endBold()

Implements BaseOutputDocInterface.

Definition at line 218 of file htmlgen.h.

218 { t << "<b>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startCallGraph ( )
virtual

Implements OutputGenerator.

Definition at line 1745 of file htmlgen.cpp.

1746 {
1748 }
static void startSectionHeader(FTextStream &t, const QCString &relPath, int sectionCount)
Definition: htmlgen.cpp:1257
FTextStream t
Definition: outputgen.h:486
int m_sectionCount
Definition: htmlgen.h:357
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::startCenter ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 242 of file htmlgen.h.

242 { t << "<center>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startClassDiagram ( )
virtual

Implements OutputGenerator.

Definition at line 1329 of file htmlgen.cpp.

1330 {
1332 }
static void startSectionHeader(FTextStream &t, const QCString &relPath, int sectionCount)
Definition: htmlgen.cpp:1257
FTextStream t
Definition: outputgen.h:486
int m_sectionCount
Definition: htmlgen.h:357
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::startCodeFragment ( )
inlinevirtual

Starts a source code fragment. The fragment will be fed to the code parser (see code.h) for syntax highlighting and cross-referencing. The fragment ends by a call to endCodeFragment()

Implements BaseOutputDocInterface.

Definition at line 214 of file htmlgen.h.

214 { t << PREFRAG_START; }
#define PREFRAG_START
Definition: htmlgen.h:26
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startCodeLine ( bool  hasLineNumbers)
inlinevirtual

Implements CodeOutputInterface.

Definition at line 110 of file htmlgen.h.

111  { m_codeGen.startCodeLine(hasLineNumbers); }
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void startCodeLine(bool)
Definition: htmlgen.cpp:641
void HtmlGenerator::startConstraintDocs ( )
virtual

Implements OutputGenerator.

Definition at line 2410 of file htmlgen.cpp.

2411 {
2412  t << "<td>&#160;";
2413 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startConstraintList ( const char *  header)
virtual

Implements OutputGenerator.

Definition at line 2383 of file htmlgen.cpp.

2384 {
2385  t << "<div class=\"typeconstraint\">" << endl;
2386  t << "<dl><dt><b>" << header << "</b></dt><dd>" << endl;
2387  t << "<table border=\"0\" cellspacing=\"2\" cellpadding=\"0\">" << endl;
2388 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startConstraintParam ( )
virtual

Implements OutputGenerator.

Definition at line 2390 of file htmlgen.cpp.

2391 {
2392  t << "<tr><td valign=\"top\"><em>";
2393 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startConstraintType ( )
virtual

Implements OutputGenerator.

Definition at line 2400 of file htmlgen.cpp.

2401 {
2402  t << "<td>&#160;:</td><td valign=\"top\"><em>";
2403 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startContents ( )
virtual

Implements OutputGenerator.

Definition at line 2177 of file htmlgen.cpp.

2178 {
2179  t << "<div class=\"contents\">" << endl;
2180 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startDescForItem ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 224 of file htmlgen.h.

224 { t << "<dd>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startDescItem ( )
inlinevirtual

Starts an item of a description list: e.g. <dt> in HTML.

Implements BaseOutputDocInterface.

Definition at line 222 of file htmlgen.h.

222 { t << "<dt>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startDescription ( )
inlinevirtual

Starts a description list: e.g. <dl> in HTML Items are surrounded by startDescItem() and endDescItem()

Implements BaseOutputDocInterface.

Definition at line 220 of file htmlgen.h.

220 { t << endl << "<dl>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startDescTable ( const char *  title)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 274 of file htmlgen.h.

276  { t << "<table class=\"fieldtable\">" << endl
277  << "<tr><th colspan=\"2\">" << title << "</th></tr>";
278  }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startDescTableData ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 286 of file htmlgen.h.

288  { t << "<td class=\"fielddoc\">" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startDescTableTitle ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 281 of file htmlgen.h.

283  { t << "<tr><td class=\"fieldname\">"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startDirDepGraph ( )
virtual

Implements OutputGenerator.

Definition at line 1763 of file htmlgen.cpp.

1764 {
1766 }
static void startSectionHeader(FTextStream &t, const QCString &relPath, int sectionCount)
Definition: htmlgen.cpp:1257
FTextStream t
Definition: outputgen.h:486
int m_sectionCount
Definition: htmlgen.h:357
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::startDotGraph ( )
virtual

Implements OutputGenerator.

Definition at line 1681 of file htmlgen.cpp.

1682 {
1684 }
static void startSectionHeader(FTextStream &t, const QCString &relPath, int sectionCount)
Definition: htmlgen.cpp:1257
FTextStream t
Definition: outputgen.h:486
int m_sectionCount
Definition: htmlgen.h:357
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::startDoxyAnchor ( const char *  fName,
const char *  manName,
const char *  anchor,
const char *  name,
const char *  args 
)
virtual

Implements OutputGenerator.

Definition at line 1016 of file htmlgen.cpp.

1019 {
1020  t << "<a class=\"anchor\" id=\"" << anchor << "\"></a>";
1021 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startEmphasis ( )
inlinevirtual

Changes the text font to italic. The italic section ends with endEmphasis()

Implements BaseOutputDocInterface.

Definition at line 216 of file htmlgen.h.

216 { t << "<em>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startFile ( const char *  name,
const char *  manName,
const char *  title 
)
virtual

Implements OutputGenerator.

Definition at line 843 of file htmlgen.cpp.

845 {
846  //printf("HtmlGenerator::startFile(%s)\n",name);
849  relPath = relativePathToRoot(fileName);
850 
852  {
853  fileName+=Doxygen::htmlFileExtension;
854  }
855  startPlainFile(fileName);
858  Doxygen::indexList->addIndexFile(fileName);
859 
860  lastFile = fileName;
862 
863  t << "<!-- " << theTranslator->trGeneratedBy() << " Doxygen "
864  << versionString << " -->" << endl;
865  //static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
866  static bool searchEngine = Config_getBool("SEARCHENGINE");
867  if (searchEngine /*&& !generateTreeView*/)
868  {
869  t << "<script type=\"text/javascript\">\n";
870  t << "var searchBox = new SearchBox(\"searchBox\", \""
871  << relPath<< "search\",false,'" << theTranslator->trSearch() << "');\n";
872  t << "</script>\n";
873  }
874  //generateDynamicSections(t,relPath);
875  m_sectionCount=0;
876 }
static QCString name
Definition: declinfo.cpp:673
uint length() const
Definition: qcstring.h:195
static QCString htmlFileExtension
Definition: doxygen.h:130
QCString relativePathToRoot(const char *name)
Definition: util.cpp:5436
QCString lastTitle
Definition: htmlgen.h:349
void setTextStream(FTextStream &t)
Definition: htmlgen.cpp:412
void startPlainFile(const char *name)
Definition: outputgen.cpp:42
virtual QCString trGeneratedBy()=0
QCString convertToHtml(const char *s, bool keepEntities)
Definition: util.cpp:5746
QCString right(uint len) const
Definition: qcstring.cpp:231
char versionString[]
Definition: version.cpp:1
#define Config_getBool(val)
Definition: config.cpp:664
static QCString g_header
Definition: htmlgen.cpp:50
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
virtual QCString trSearch()=0
static QCString substituteHtmlKeywords(const QCString &s, const QCString &title, const QCString &relPath, const QCString &navPath=QCString())
Definition: htmlgen.cpp:216
Translator * theTranslator
Definition: language.cpp:157
int m_sectionCount
Definition: htmlgen.h:357
QCString lastFile
Definition: htmlgen.h:350
void addIndexFile(const char *name)
Definition: index.h:145
void setRelativePath(const QCString &path)
Definition: htmlgen.cpp:418
static IndexList * indexList
Definition: doxygen.h:149
QTextStream & endl(QTextStream &s)
QCString relPath
Definition: htmlgen.h:351
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
QCString filterTitle(const QCString &title)
Definition: util.cpp:7765
void HtmlGenerator::startFontClass ( const char *  clsName)
inlinevirtual

Starts a block with a certain meaning. Used for syntax highlighting, which elements of the same type are rendered using the same 'font class'.

Parameters
clsNameThe category name.

Implements CodeOutputInterface.

Definition at line 114 of file htmlgen.h.

void startFontClass(const char *s)
Definition: htmlgen.cpp:655
static QCString * s
Definition: config.cpp:1042
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void HtmlGenerator::startGroupCollaboration ( )
virtual

Implements OutputGenerator.

Definition at line 1727 of file htmlgen.cpp.

1728 {
1730 }
static void startSectionHeader(FTextStream &t, const QCString &relPath, int sectionCount)
Definition: htmlgen.cpp:1257
FTextStream t
Definition: outputgen.h:486
int m_sectionCount
Definition: htmlgen.h:357
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::startGroupHeader ( int  extraIndentLevel)
virtual

Implements OutputGenerator.

Definition at line 1153 of file htmlgen.cpp.

1154 {
1155  if (extraIndentLevel==2)
1156  {
1157  t << "<h4 class=\"groupheader\">";
1158  }
1159  else if (extraIndentLevel==1)
1160  {
1161  t << "<h3 class=\"groupheader\">";
1162  }
1163  else // extraIndentLevel==0
1164  {
1165  t << "<h2 class=\"groupheader\">";
1166  }
1167 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startHeaderSection ( )
virtual

Implements OutputGenerator.

Definition at line 2440 of file htmlgen.cpp.

2441 {
2442  t << "<div class=\"header\">" << endl;
2443 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startHtmlLink ( const char *  url)
virtual

Starts a (link to an) URL found in the documentation.

Parameters
urlThe URL to link to.

Implements BaseOutputDocInterface.

Definition at line 1138 of file htmlgen.cpp.

1139 {
1140  static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
1141  t << "<a ";
1142  if (generateTreeView) t << "target=\"top\" ";
1143  t << "href=\"";
1144  if (url) t << url;
1145  t << "\">";
1146 }
#define Config_getBool(val)
Definition: config.cpp:664
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startInclDepGraph ( )
virtual

Implements OutputGenerator.

Definition at line 1709 of file htmlgen.cpp.

1710 {
1712 }
static void startSectionHeader(FTextStream &t, const QCString &relPath, int sectionCount)
Definition: htmlgen.cpp:1257
FTextStream t
Definition: outputgen.h:486
int m_sectionCount
Definition: htmlgen.h:357
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::startIndent ( )
virtual

Implements OutputGenerator.

Definition at line 1814 of file htmlgen.cpp.

1815 {
1816  DBG_HTML(t << "<!-- startIndent -->" << endl;)
1817 
1818  t << "<div class=\"memdoc\">\n";
1819 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startIndexItem ( const char *  ref,
const char *  file 
)
virtual

Implements OutputGenerator.

Definition at line 1057 of file htmlgen.cpp.

1058 {
1059  //printf("HtmlGenerator::startIndexItem(%s,%s)\n",ref,f);
1060  if (ref || f)
1061  {
1062  if (ref)
1063  {
1064  t << "<a class=\"elRef\" ";
1066  }
1067  else
1068  {
1069  t << "<a class=\"el\" ";
1070  }
1071  t << "href=\"";
1072  t << externalRef(relPath,ref,TRUE);
1073  if (f) t << f << Doxygen::htmlFileExtension << "\">";
1074  }
1075  else
1076  {
1077  t << "<b>";
1078  }
1079 }
static QCString htmlFileExtension
Definition: doxygen.h:130
const bool FALSE
Definition: qglobal.h:370
FTextStream t
Definition: outputgen.h:486
QCString externalLinkTarget()
Definition: util.cpp:7850
const bool TRUE
Definition: qglobal.h:371
QCString relPath
Definition: htmlgen.h:351
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)
Definition: util.cpp:7856
void HtmlGenerator::startIndexKey ( )
virtual

Implements OutputGenerator.

Definition at line 1510 of file htmlgen.cpp.

1511 {
1512  // inserted 'class = ...', 02 jan 2002, jh
1513  t << " <tr><td class=\"indexkey\">";
1514 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startIndexList ( )
virtual

Implements OutputGenerator.

Definition at line 1500 of file htmlgen.cpp.

1501 {
1502  t << "<table>" << endl;
1503 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startIndexListItem ( )
virtual

Implements OutputGenerator.

Definition at line 1047 of file htmlgen.cpp.

1048 {
1049  t << "<li>";
1050 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startIndexSection ( IndexSections  )
inlinevirtual

Implements OutputGenerator.

Definition at line 132 of file htmlgen.h.

132 {}
void HtmlGenerator::startIndexValue ( bool  )
virtual

Implements OutputGenerator.

Definition at line 1521 of file htmlgen.cpp.

1522 {
1523  // inserted 'class = ...', 02 jan 2002, jh
1524  t << "<td class=\"indexvalue\">";
1525 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startInlineHeader ( )
virtual

Implements OutputGenerator.

Definition at line 2462 of file htmlgen.cpp.

2463 {
2464  if (m_emptySection)
2465  {
2466  t << "<table class=\"memberdecls\">" << endl;
2468  }
2469  t << "<tr><td colspan=\"2\"><h3>";
2470 }
const bool FALSE
Definition: qglobal.h:370
bool m_emptySection
Definition: htmlgen.h:358
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startInlineMemberDoc ( )
virtual

Implements OutputGenerator.

Definition at line 2514 of file htmlgen.cpp.

2515 {
2516  DBG_HTML(t << "<!-- startInlineMemberDoc -->" << endl;)
2517  t << "<td class=\"fielddoc\">" << endl;
2518 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startInlineMemberName ( )
virtual

Implements OutputGenerator.

Definition at line 2502 of file htmlgen.cpp.

2503 {
2504  DBG_HTML(t << "<!-- startInlineMemberName -->" << endl;)
2505  t << "<td class=\"fieldname\">" << endl;
2506 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startInlineMemberType ( )
virtual

Implements OutputGenerator.

Definition at line 2490 of file htmlgen.cpp.

2491 {
2492  DBG_HTML(t << "<!-- startInlineMemberType -->" << endl;)
2493  t << "<tr><td class=\"fieldtype\">" << endl;
2494 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startItemList ( )
inlinevirtual

Start of a bullet list: e.g. <ul> in html. startItemListItem() is Used for the bullet items.

Implements BaseOutputDocInterface.

Definition at line 154 of file htmlgen.h.

154 { t << "<ul>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startItemListItem ( )
inlinevirtual

Writes a list item for a bullet or enumerated list: e.g. <li> in html

Implements BaseOutputDocInterface.

Definition at line 171 of file htmlgen.h.

171 { t << "<li>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startLabels ( )
virtual

Implements OutputGenerator.

Definition at line 2526 of file htmlgen.cpp.

2527 {
2528  DBG_HTML(t << "<!-- startLabels -->" << endl;)
2529  t << "<span class=\"mlabels\">";
2530 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberDeclaration ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 205 of file htmlgen.h.

205 {}
void HtmlGenerator::startMemberDescription ( const char *  anchor,
const char *  inheritId 
)
virtual

Implements OutputGenerator.

Definition at line 1423 of file htmlgen.cpp.

1424 {
1425  DBG_HTML(t << "<!-- startMemberDescription -->" << endl)
1426  if (m_emptySection)
1427  {
1428  t << "<table class=\"memberdecls\">" << endl;
1429  m_emptySection=FALSE;
1430  }
1431  t << "<tr class=\"memdesc:" << anchor;
1432  if (inheritId)
1433  {
1434  t << " inherit " << inheritId;
1435  }
1436  t << "\"><td class=\"mdescLeft\">&#160;</td><td class=\"mdescRight\">";
1437 }
const bool FALSE
Definition: qglobal.h:370
bool m_emptySection
Definition: htmlgen.h:358
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberDoc ( const char *  ,
const char *  ,
const char *  ,
const char *  ,
bool   
)
virtual

Implements OutputGenerator.

Definition at line 1542 of file htmlgen.cpp.

1543 {
1544  DBG_HTML(t << "<!-- startMemberDoc -->" << endl;)
1545 
1546  t << "\n<div class=\"memitem\">" << endl;
1547  t << "<div class=\"memproto\">" << endl;
1548 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberDocList ( )
virtual

Implements OutputGenerator.

Definition at line 1532 of file htmlgen.cpp.

1533 {
1534  DBG_HTML(t << "<!-- startMemberDocList -->" << endl;)
1535 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberDocName ( bool  )
virtual

Implements OutputGenerator.

Definition at line 1562 of file htmlgen.cpp.

1563 {
1564  DBG_HTML(t << "<!-- startMemberDocName -->" << endl;)
1565 
1566  t << " <table class=\"memname\">" << endl;
1567 
1568  t << " <tr>" << endl;
1569  t << " <td class=\"memname\">";
1570 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberDocPrefixItem ( )
virtual

Implements OutputGenerator.

Definition at line 1550 of file htmlgen.cpp.

1551 {
1552  DBG_HTML(t << "<!-- startMemberDocPrefixItem -->" << endl;)
1553  t << "<div class=\"memtemplate\">" << endl;
1554 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberDocSimple ( )
virtual

Implements OutputGenerator.

Definition at line 2477 of file htmlgen.cpp.

2478 {
2479  DBG_HTML(t << "<!-- startMemberDocSimple -->" << endl;)
2480  t << "<table class=\"fieldtable\">" << endl;
2481  t << "<tr><th colspan=\"3\">" << theTranslator->trCompoundMembers() << "</th></tr>" << endl;
2482 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
Translator * theTranslator
Definition: language.cpp:157
virtual QCString trCompoundMembers()=0
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberGroup ( )
virtual

Implements OutputGenerator.

Definition at line 1806 of file htmlgen.cpp.

1807 {
1808 }
void HtmlGenerator::startMemberGroupDocs ( )
virtual

Implements OutputGenerator.

Definition at line 1796 of file htmlgen.cpp.

1797 {
1798  t << "<tr><td colspan=\"2\"><div class=\"groupText\">";
1799 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startMemberGroupHeader ( bool  )
virtual

Implements OutputGenerator.

Definition at line 1786 of file htmlgen.cpp.

1787 {
1788  t << "<tr><td colspan=\"2\"><div class=\"groupHeader\">";
1789 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startMemberHeader ( const char *  anchor)
virtual

Implements OutputGenerator.

Definition at line 1462 of file htmlgen.cpp.

1463 {
1464  DBG_HTML(t << "<!-- startMemberHeader -->" << endl)
1465  if (!m_emptySection)
1466  {
1467  t << "</table>";
1468  m_emptySection=TRUE;
1469  }
1470  if (m_emptySection)
1471  {
1472  t << "<table class=\"memberdecls\">" << endl;
1474  }
1475  t << "<tr class=\"heading\"><td colspan=\"2\"><h2 class=\"groupheader\">";
1476  if (anchor)
1477  {
1478  t << "<a name=\"" << anchor << "\"></a>" << endl;
1479  }
1480 }
const bool FALSE
Definition: qglobal.h:370
bool m_emptySection
Definition: htmlgen.h:358
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
if(!yymsg) yymsg
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberItem ( const char *  anchor,
int  annoType,
const char *  inheritId 
)
virtual

Implements OutputGenerator.

Definition at line 1371 of file htmlgen.cpp.

1372 {
1373  DBG_HTML(t << "<!-- startMemberItem() -->" << endl)
1374  if (m_emptySection)
1375  {
1376  t << "<table class=\"memberdecls\">" << endl;
1377  m_emptySection=FALSE;
1378  }
1379  t << "<tr class=\"memitem:" << anchor;
1380  if (inheritId)
1381  {
1382  t << " inherit " << inheritId;
1383  }
1384  t << "\">";
1385  switch(annoType)
1386  {
1387  case 0: t << "<td class=\"memItemLeft\" align=\"right\" valign=\"top\">"; break;
1388  case 1: t << "<td class=\"memItemLeft\" >"; break;
1389  case 2: t << "<td class=\"memItemLeft\" valign=\"top\">"; break;
1390  default: t << "<td class=\"memTemplParams\" colspan=\"2\">"; break;
1391  }
1392 }
const bool FALSE
Definition: qglobal.h:370
bool m_emptySection
Definition: htmlgen.h:358
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberList ( )
virtual

Implements OutputGenerator.

Definition at line 1357 of file htmlgen.cpp.

1358 {
1359  DBG_HTML(t << "<!-- startMemberList -->" << endl)
1360 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberSections ( )
virtual

Implements OutputGenerator.

Definition at line 1445 of file htmlgen.cpp.

1446 {
1447  DBG_HTML(t << "<!-- startMemberSections -->" << endl)
1448  m_emptySection=TRUE; // we postpone writing <table> until we actually
1449  // write a row to prevent empty tables, which
1450  // are not valid XHTML!
1451 }
bool m_emptySection
Definition: htmlgen.h:358
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberSubtitle ( )
virtual

Implements OutputGenerator.

Definition at line 1488 of file htmlgen.cpp.

1489 {
1490  DBG_HTML(t << "<!-- startMemberSubtitle -->" << endl)
1491  t << "<tr><td class=\"ititle\" colspan=\"2\">";
1492 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startMemberTemplateParams ( )
virtual

Implements OutputGenerator.

Definition at line 1400 of file htmlgen.cpp.

1401 {
1402 }
void HtmlGenerator::startPageRef ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 261 of file htmlgen.h.

261 {}
void HtmlGenerator::startParagraph ( )
virtual

Starts a new paragraph

Starts a new paragraph

Implements BaseOutputDocInterface.

Definition at line 1032 of file htmlgen.cpp.

1033 {
1034  t << endl << "<p>";
1035 }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startParameterList ( bool  openBracket)
virtual

Implements OutputGenerator.

Definition at line 1578 of file htmlgen.cpp.

1579 {
1580  DBG_HTML(t << "<!-- startParameterList -->" << endl;)
1581  t << " <td>";
1582  if (openBracket) t << "(";
1583  t << "</td>" << endl;
1584 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startParameterName ( bool  )
virtual

Implements OutputGenerator.

Definition at line 1611 of file htmlgen.cpp.

1612 {
1613  DBG_HTML(t << "<!-- startParameterName -->" << endl;)
1614  t << " <td class=\"paramname\">";
1615 }
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startParameterType ( bool  first,
const char *  key 
)
virtual

Implements OutputGenerator.

Definition at line 1586 of file htmlgen.cpp.

1587 {
1588  if (first)
1589  {
1590  DBG_HTML(t << "<!-- startFirstParameterType -->" << endl;)
1591  t << " <td class=\"paramtype\">";
1592  }
1593  else
1594  {
1595  DBG_HTML(t << "<!-- startParameterType -->" << endl;)
1596  t << " <tr>" << endl;
1597  t << " <td class=\"paramkey\">";
1598  if (key) t << key;
1599  t << "</td>" << endl;
1600  t << " <td></td>" << endl;
1601  t << " <td class=\"paramtype\">";
1602  }
1603 }
def key(type, name=None)
Definition: graph.py:13
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startParamList ( ParamListTypes  ,
const char *  title 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1861 of file htmlgen.cpp.

1863 {
1864  t << "<dl><dt><b>";
1865  docify(title);
1866  t << "</b></dt>";
1867 }
FTextStream t
Definition: outputgen.h:486
void docify(const char *text)
Definition: htmlgen.cpp:1212
void HtmlGenerator::startProjectNumber ( )
virtual

Implements OutputGenerator.

Definition at line 953 of file htmlgen.cpp.

954 {
955  t << "<h3 class=\"version\">";
956 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startQuickIndices ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 263 of file htmlgen.h.

263 {}
void HtmlGenerator::startSection ( const char *  lab,
const char *  ,
SectionInfo::SectionType  type 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1185 of file htmlgen.cpp.

1186 {
1187  switch(type)
1188  {
1189  case SectionInfo::Page: t << "\n\n<h1>"; break;
1190  case SectionInfo::Section: t << "\n\n<h2>"; break;
1191  case SectionInfo::Subsection: t << "\n\n<h3>"; break;
1192  case SectionInfo::Subsubsection: t << "\n\n<h4>"; break;
1193  case SectionInfo::Paragraph: t << "\n\n<h5>"; break;
1194  default: ASSERT(0); break;
1195  }
1196  t << "<a class=\"anchor\" id=\"" << lab << "\"></a>";
1197 }
FTextStream t
Definition: outputgen.h:486
#define ASSERT(x)
Definition: qglobal.h:590
void HtmlGenerator::startSimpleSect ( SectionTypes  ,
const char *  filename,
const char *  anchor,
const char *  title 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1840 of file htmlgen.cpp.

1843 {
1844  t << "<dl><dt><b>";
1845  if (filename)
1846  {
1847  writeObjectLink(0,filename,anchor,title);
1848  }
1849  else
1850  {
1851  docify(title);
1852  }
1853  t << "</b></dt>";
1854 }
string filename
Definition: train.py:213
void writeObjectLink(const char *ref, const char *file, const char *anchor, const char *name)
Definition: htmlgen.cpp:1104
FTextStream t
Definition: outputgen.h:486
void docify(const char *text)
Definition: htmlgen.cpp:1212
void HtmlGenerator::startSmall ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 244 of file htmlgen.h.

244 { t << "<small>" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startSubsection ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 238 of file htmlgen.h.

238 { t << "<h2>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startSubsubsection ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 240 of file htmlgen.h.

240 { t << "<h3>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startTextBlock ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 304 of file htmlgen.h.

305  { t << "<div class=\"textblock\">"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startTextLink ( const char *  file,
const char *  anchor 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1125 of file htmlgen.cpp.

1126 {
1127  t << "<a href=\"";
1128  if (f) t << relPath << f << Doxygen::htmlFileExtension;
1129  if (anchor) t << "#" << anchor;
1130  t << "\">";
1131 }
static QCString htmlFileExtension
Definition: doxygen.h:130
FTextStream t
Definition: outputgen.h:486
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::startTitle ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 140 of file htmlgen.h.

140 { t << "<div class=\"title\">"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::startTitleHead ( const char *  )
virtual

Implements OutputGenerator.

Definition at line 2445 of file htmlgen.cpp.

2446 {
2447  t << " <div class=\"headertitle\">" << endl;
2448  startTitle();
2449 }
void startTitle()
Definition: htmlgen.h:140
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::startTypewriter ( )
inlinevirtual

Changes the text font to fixed size. The section ends with endTypewriter()

Implements BaseOutputDocInterface.

Definition at line 167 of file htmlgen.h.

167 { t << "<code>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::writeAnchor ( const char *  ,
const char *  name 
)
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 212 of file htmlgen.h.

213  { t << "<a name=\"" << name <<"\" id=\"" << name << "\"></a>"; }
static QCString name
Definition: declinfo.cpp:673
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::writeChar ( char  c)
virtual

Writes a single ASCII character to the output. Converts characters that have a special meaning.

Implements BaseOutputDocInterface.

Definition at line 1247 of file htmlgen.cpp.

1248 {
1249  char cs[2];
1250  cs[0]=c;
1251  cs[1]=0;
1252  docify(cs);
1253 }
void docify(const char *text)
Definition: htmlgen.cpp:1212
const char * cs
void HtmlGenerator::writeCodeAnchor ( const char *  name)
inlinevirtual

Write an anchor to a source listing.

Parameters
nameThe name of the anchor.

Implements CodeOutputInterface.

Definition at line 118 of file htmlgen.h.

119  { m_codeGen.writeCodeAnchor(anchor); }
void writeCodeAnchor(const char *anchor)
Definition: htmlgen.cpp:665
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void HtmlGenerator::writeCodeLink ( const char *  ref,
const char *  file,
const char *  anchor,
const char *  name,
const char *  tooltip 
)
inlinevirtual

Writes a link to an object in a code fragment.

Parameters
refIf this is non-zero, the object is to be found in an external documentation file.
fileThe file in which the object is located.
anchorThe anchor uniquely identifying the object within the file.
nameThe text to display as a placeholder for the link.
tooltipThe tooltip to display when the mouse is on the link.

Implements CodeOutputInterface.

Definition at line 100 of file htmlgen.h.

103  { m_codeGen.writeCodeLink(ref,file,anchor,name,tooltip); }
static QCString name
Definition: declinfo.cpp:673
void writeCodeLink(const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip)
Definition: htmlgen.cpp:524
QFile * file
Definition: outputgen.h:487
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void HtmlGenerator::writeDoc ( DocNode n,
Definition ctx,
MemberDef  
)
virtual

Implements OutputGenerator.

Definition at line 1874 of file htmlgen.cpp.

1875 {
1876  HtmlDocVisitor *visitor = new HtmlDocVisitor(t,m_codeGen,ctx);
1877  n->accept(visitor);
1878  delete visitor;
1879 }
Concrete visitor implementation for HTML output.
FTextStream t
Definition: outputgen.h:486
virtual void accept(DocVisitor *v)=0
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void HtmlGenerator::writeEndAnnoItem ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 237 of file htmlgen.h.

237 { t << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::writeExternalSearchPage ( )
static

Definition at line 2281 of file htmlgen.cpp.

2282 {
2283  static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
2284  QCString fileName = Config_getString("HTML_OUTPUT")+"/search"+Doxygen::htmlFileExtension;
2285  QFile f(fileName);
2286  if (f.open(IO_WriteOnly))
2287  {
2288  FTextStream t(&f);
2289  t << substituteHtmlKeywords(g_header,"Search","");
2290 
2291  t << "<!-- " << theTranslator->trGeneratedBy() << " Doxygen "
2292  << versionString << " -->" << endl;
2293  t << "<script type=\"text/javascript\">\n";
2294  t << "var searchBox = new SearchBox(\"searchBox\", \""
2295  << "search\",false,'" << theTranslator->trSearch() << "');\n";
2296  t << "</script>\n";
2297  if (!Config_getBool("DISABLE_INDEX"))
2298  {
2300  t << " <input type=\"text\" id=\"MSearchField\" name=\"query\" value=\"\" size=\"20\" accesskey=\"S\" onfocus=\"searchBox.OnSearchFieldFocus(true)\" onblur=\"searchBox.OnSearchFieldFocus(false)\"/>\n";
2301  t << " </form>\n";
2302  t << " </div><div class=\"right\"></div>\n";
2303  t << " </div>\n";
2304  t << " </li>\n";
2305  t << " </ul>\n";
2306  t << " </div>\n";
2307  t << "</div>\n";
2308  }
2309  else
2310  {
2311  t << "</div>" << endl;
2312  }
2313  t << writeSplitBarAsString("search","");
2314  t << "<div class=\"header\">" << endl;
2315  t << " <div class=\"headertitle\">" << endl;
2316  t << " <div class=\"title\">" << theTranslator->trSearchResultsTitle() << "</div>" << endl;
2317  t << " </div>" << endl;
2318  t << "</div>" << endl;
2319  t << "<div class=\"contents\">" << endl;
2320 
2321  t << "<div id=\"searchresults\"></div>" << endl;
2322  t << "</div>" << endl;
2323 
2324  if (generateTreeView)
2325  {
2326  t << "</div><!-- doc-contents -->" << endl;
2327  }
2328 
2329  writePageFooter(t,"Search","","");
2330  }
2331  QCString scriptName = Config_getString("HTML_OUTPUT")+"/search/search.js";
2332  QFile sf(scriptName);
2333  if (sf.open(IO_WriteOnly))
2334  {
2335  FTextStream t(&sf);
2336  t << "var searchResultsText=["
2337  << "\"" << theTranslator->trSearchResults(0) << "\","
2338  << "\"" << theTranslator->trSearchResults(1) << "\","
2339  << "\"" << theTranslator->trSearchResults(2) << "\"];" << endl;
2340  t << "var serverUrl=\"" << Config_getString("SEARCHENGINE_URL") << "\";" << endl;
2341  t << "var tagMap = {" << endl;
2342  bool first=TRUE;
2343  // add search mappings
2344  QStrList &extraSearchMappings = Config_getList("EXTRA_SEARCH_MAPPINGS");
2345  char *ml=extraSearchMappings.first();
2346  while (ml)
2347  {
2348  QCString mapLine = ml;
2349  int eqPos = mapLine.find('=');
2350  if (eqPos!=-1) // tag command contains a destination
2351  {
2352  QCString tagName = mapLine.left(eqPos).stripWhiteSpace();
2353  QCString destName = mapLine.right(mapLine.length()-eqPos-1).stripWhiteSpace();
2354  if (!tagName.isEmpty())
2355  {
2356  if (!first) t << "," << endl;
2357  t << " \"" << tagName << "\": \"" << destName << "\"";
2358  first=FALSE;
2359  }
2360  }
2361  ml=extraSearchMappings.next();
2362  }
2363  if (!first) t << endl;
2364  t << "};" << endl << endl;
2365  t << ResourceMgr::instance().getAsString("extsearch.js");
2366  t << endl;
2367  t << "$(document).ready(function() {" << endl;
2368  t << " var query = trim(getURLParameter('query'));" << endl;
2369  t << " if (query) {" << endl;
2370  t << " searchFor(query,0,20);" << endl;
2371  t << " } else {" << endl;
2372  t << " var results = $('#results');" << endl;
2373  t << " results.html('<p>" << theTranslator->trSearchResults(0) << "</p>');" << endl;
2374  t << " }" << endl;
2375  t << "});" << endl;
2376  }
2377  else
2378  {
2379  err("Failed to open file '%s' for writing...\n",scriptName.data());
2380  }
2381 }
static QCString writeSplitBarAsString(const char *name, const char *relpath)
Definition: htmlgen.cpp:2138
static void writeDefaultQuickLinks(FTextStream &t, bool compact, HighlightedItem hli, const char *file, const QCString &relPath)
Definition: htmlgen.cpp:2068
QCString getAsString(const char *name) const
QCString stripWhiteSpace() const
Definition: qcstring.cpp:295
bool isEmpty() const
Definition: qcstring.h:189
uint length() const
Definition: qcstring.h:195
#define IO_WriteOnly
Definition: qiodevice.h:62
static QCString htmlFileExtension
Definition: doxygen.h:130
type * first()
Definition: qinternallist.h:87
virtual QCString trSearchResultsTitle()=0
const bool FALSE
Definition: qglobal.h:370
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
#define Config_getList(val)
Definition: config.cpp:662
QCString left(uint len) const
Definition: qcstring.cpp:213
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
int find(char c, int index=0, bool cs=TRUE) const
Definition: qcstring.cpp:41
virtual QCString trSearchResults(int numDocuments)=0
virtual QCString trGeneratedBy()=0
QCString right(uint len) const
Definition: qcstring.cpp:231
char versionString[]
Definition: version.cpp:1
const char * data() const
Definition: qcstring.h:207
#define Config_getString(val)
Definition: config.cpp:660
#define Config_getBool(val)
Definition: config.cpp:664
static QCString g_header
Definition: htmlgen.cpp:50
type * next()
Definition: qinternallist.h:89
void err(const char *fmt,...)
Definition: message.cpp:226
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
virtual QCString trSearch()=0
static void writePageFooter(FTextStream &t, const QCString &, const QCString &, const QCString &)
Definition: htmlgen.cpp:937
static QCString substituteHtmlKeywords(const QCString &s, const QCString &title, const QCString &relPath, const QCString &navPath=QCString())
Definition: htmlgen.cpp:216
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void HtmlGenerator::writeFooter ( const char *  navPath)
virtual

Implements OutputGenerator.

Definition at line 943 of file htmlgen.cpp.

944 {
946 }
QCString lastTitle
Definition: htmlgen.h:349
FTextStream t
Definition: outputgen.h:486
static void writePageFooter(FTextStream &t, const QCString &, const QCString &, const QCString &)
Definition: htmlgen.cpp:937
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::writeFooterFile ( QFile f)
static

Definition at line 836 of file htmlgen.cpp.

837 {
838  FTextStream t(&file);
839  t << "<!-- HTML footer for doxygen " << versionString << "-->" << endl;
840  t << ResourceMgr::instance().getAsString("footer.html");
841 }
QCString getAsString(const char *name) const
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
char versionString[]
Definition: version.cpp:1
QFile * file
Definition: outputgen.h:487
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::writeGraphicalHierarchy ( const DotGfxHierarchyTable g)
virtual

Implements OutputGenerator.

Definition at line 1781 of file htmlgen.cpp.

1782 {
1783  g.writeGraph(t,dir,fileName);
1784 }
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
FTextStream t
Definition: outputgen.h:486
void writeGraph(FTextStream &t, const char *path, const char *fileName) const
Definition: dot.cpp:2366
void HtmlGenerator::writeHeaderFile ( QFile f,
const char *  cssname 
)
static

Definition at line 829 of file htmlgen.cpp.

830 {
831  FTextStream t(&file);
832  t << "<!-- HTML header for doxygen " << versionString << "-->" << endl;
833  t << ResourceMgr::instance().getAsString("header.html");
834 }
QCString getAsString(const char *name) const
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
char versionString[]
Definition: version.cpp:1
QFile * file
Definition: outputgen.h:487
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void HtmlGenerator::writeInheritedSectionTitle ( const char *  id,
const char *  ref,
const char *  file,
const char *  anchor,
const char *  title,
const char *  name 
)
virtual

Implements OutputGenerator.

Definition at line 2546 of file htmlgen.cpp.

2550 {
2551  DBG_HTML(t << "<!-- writeInheritedSectionTitle -->" << endl;)
2552  QCString a = anchor;
2553  if (!a.isEmpty()) a.prepend("#");
2554  QCString classLink = QCString("<a class=\"el\" href=\"");
2555  if (ref)
2556  {
2557  classLink+= externalLinkTarget() + externalRef(relPath,ref,TRUE);
2558  }
2559  else
2560  {
2561  classLink+=relPath;
2562  }
2563  classLink+=file+Doxygen::htmlFileExtension+a;
2564  classLink+=QCString("\">")+convertToHtml(name,FALSE)+"</a>";
2565  t << "<tr class=\"inherit_header " << id << "\">"
2566  << "<td colspan=\"2\" onclick=\"javascript:toggleInherit('" << id << "')\">"
2567  << "<img src=\"" << relPath << "closed.png\" alt=\"-\"/>&#160;"
2569  << "</td></tr>" << endl;
2570 }
static QCString name
Definition: declinfo.cpp:673
virtual QCString trInheritedFrom(const char *members, const char *what)=0
static QCString htmlFileExtension
Definition: doxygen.h:130
const bool FALSE
Definition: qglobal.h:370
QCString convertToHtml(const char *s, bool keepEntities)
Definition: util.cpp:5746
const double a
QFile * file
Definition: outputgen.h:487
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
Translator * theTranslator
Definition: language.cpp:157
QCString externalLinkTarget()
Definition: util.cpp:7850
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
QCString relPath
Definition: htmlgen.h:351
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)
Definition: util.cpp:7856
void HtmlGenerator::writeLabel ( const char *  l,
bool  isLast 
)
virtual

Implements OutputGenerator.

Definition at line 2532 of file htmlgen.cpp.

2533 {
2534  DBG_HTML(t << "<!-- writeLabel(" << l << ") -->" << endl;)
2535  //t << "<tt>[" << l << "]</tt>";
2536  //if (!isLast) t << ", ";
2537  t << "<span class=\"mlabel\">" << l << "</span>";
2538 }
static QStrList * l
Definition: config.cpp:1044
FTextStream t
Definition: outputgen.h:486
#define DBG_HTML(x)
Definition: htmlgen.cpp:48
QTextStream & endl(QTextStream &s)
void HtmlGenerator::writeLatexSpacing ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 234 of file htmlgen.h.

234 {}
void HtmlGenerator::writeLineNumber ( const char *  ref,
const char *  file,
const char *  anchor,
int  lineNumber 
)
inlinevirtual

Writes the line number of a source listing

Parameters
refExternal reference (when imported from a tag file)
fileThe file part of the URL pointing to the docs.
anchorThe anchor part of the URL pointing to the docs.
lineNumberThe line number to write

Implements CodeOutputInterface.

Definition at line 104 of file htmlgen.h.

105  { m_codeGen.writeLineNumber(ref,file,anchor,lineNumber); }
void writeLineNumber(const char *, const char *, const char *, int)
Definition: htmlgen.cpp:500
QFile * file
Definition: outputgen.h:487
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359
void HtmlGenerator::writeLogo ( )
virtual

Implements OutputGenerator.

Definition at line 932 of file htmlgen.cpp.

933 {
935 }
FTextStream t
Definition: outputgen.h:486
static QCString writeLogoAsString(const char *path)
Definition: htmlgen.cpp:908
QCString relPath
Definition: htmlgen.h:351
QCString HtmlGenerator::writeLogoAsString ( const char *  path)
static

Definition at line 908 of file htmlgen.cpp.

909 {
910  static bool timeStamp = Config_getBool("HTML_TIMESTAMP");
912  if (timeStamp)
913  {
914  result += theTranslator->trGeneratedAt(
916  Config_getString("PROJECT_NAME")
917  );
918  }
919  else
920  {
921  result += theTranslator->trGeneratedBy();
922  }
923  result += "&#160;\n<a href=\"http://www.doxygen.org/index.html\">\n"
924  "<img class=\"footer\" src=\"";
925  result += path;
926  result += "doxygen.png\" alt=\"doxygen\"/></a> ";
927  result += versionString;
928  result += " ";
929  return result;
930 }
static QCString result
virtual QCString trGeneratedBy()=0
char versionString[]
Definition: version.cpp:1
QCString dateToString(bool includeTime)
Definition: util.cpp:2473
#define Config_getString(val)
Definition: config.cpp:660
#define Config_getBool(val)
Definition: config.cpp:664
virtual QCString trGeneratedAt(const char *date, const char *projName)=0
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
void HtmlGenerator::writeNavigationPath ( const char *  s)
virtual

Implements OutputGenerator.

Definition at line 2172 of file htmlgen.cpp.

2173 {
2174  t << substitute(s,"$relpath^",relPath);
2175 }
FTextStream t
Definition: outputgen.h:486
static QCString * s
Definition: config.cpp:1042
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Definition: util.cpp:5088
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::writeNonBreakableSpace ( int  n)
virtual

Implements BaseOutputDocInterface.

Definition at line 1831 of file htmlgen.cpp.

1832 {
1833  int i;
1834  for (i=0;i<n;i++)
1835  {
1836  t << "&#160;";
1837  }
1838 }
std::void_t< T > n
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::writeObjectLink ( const char *  ref,
const char *  file,
const char *  anchor,
const char *  name 
)
virtual

Writes a link to an object in the documentation.

Parameters
refIf this is non-zero, the object is to be found in an external documentation file.
fileThe file in which the object is located.
anchorThe anchor uniquely identifying the object within the file.
nameThe text to display as a placeholder for the link.

Implements BaseOutputDocInterface.

Definition at line 1104 of file htmlgen.cpp.

1106 {
1107  if (ref)
1108  {
1109  t << "<a class=\"elRef\" ";
1111  }
1112  else
1113  {
1114  t << "<a class=\"el\" ";
1115  }
1116  t << "href=\"";
1117  t << externalRef(relPath,ref,TRUE);
1118  if (f) t << f << Doxygen::htmlFileExtension;
1119  if (anchor) t << "#" << anchor;
1120  t << "\">";
1121  docify(name);
1122  t << "</a>";
1123 }
static QCString name
Definition: declinfo.cpp:673
static QCString htmlFileExtension
Definition: doxygen.h:130
const bool FALSE
Definition: qglobal.h:370
FTextStream t
Definition: outputgen.h:486
void docify(const char *text)
Definition: htmlgen.cpp:1212
QCString externalLinkTarget()
Definition: util.cpp:7850
const bool TRUE
Definition: qglobal.h:371
QCString relPath
Definition: htmlgen.h:351
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)
Definition: util.cpp:7856
void HtmlGenerator::writePageFooter ( FTextStream t,
const QCString lastTitle,
const QCString relPath,
const QCString navPath 
)
staticprivate

Definition at line 937 of file htmlgen.cpp.

939 {
940  t << substituteHtmlKeywords(g_footer,convertToHtml(lastTitle),relPath,navPath);
941 }
static QCString g_footer
Definition: htmlgen.cpp:51
QCString convertToHtml(const char *s, bool keepEntities)
Definition: util.cpp:5746
static QCString substituteHtmlKeywords(const QCString &s, const QCString &title, const QCString &relPath, const QCString &navPath=QCString())
Definition: htmlgen.cpp:216
void HtmlGenerator::writePageLink ( const char *  ,
bool   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 134 of file htmlgen.h.

134 {}
void HtmlGenerator::writeQuickLinks ( bool  compact,
HighlightedItem  hli,
const char *  file 
)
virtual

Implements OutputGenerator.

Definition at line 2187 of file htmlgen.cpp.

2188 {
2189  writeDefaultQuickLinks(t,compact,hli,file,relPath);
2190 }
static void writeDefaultQuickLinks(FTextStream &t, bool compact, HighlightedItem hli, const char *file, const QCString &relPath)
Definition: htmlgen.cpp:2068
QFile * file
Definition: outputgen.h:487
FTextStream t
Definition: outputgen.h:486
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::writeRuler ( )
inlinevirtual

Writes a horizontal ruler to the output

Implements BaseOutputDocInterface.

Definition at line 211 of file htmlgen.h.

211 { t << "<hr/>"; }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::writeSearchData ( const char *  dir)
static

Definition at line 781 of file htmlgen.cpp.

782 {
783  static bool serverBasedSearch = Config_getBool("SERVER_BASED_SEARCH");
784  //writeImgData(dir,serverBasedSearch ? search_server_data : search_client_data);
786 
787  mgr.copyResource("search_l.png",dir);
788  Doxygen::indexList->addImageFile("search/search_l.png");
789  mgr.copyResource("search_m.png",dir);
790  Doxygen::indexList->addImageFile("search/search_m.png");
791  mgr.copyResource("search_r.png",dir);
792  Doxygen::indexList->addImageFile("search/search_r.png");
793  if (serverBasedSearch)
794  {
795  mgr.copyResource("mag.png",dir);
796  Doxygen::indexList->addImageFile("search/mag.png");
797  }
798  else
799  {
800  mgr.copyResource("close.png",dir);
801  Doxygen::indexList->addImageFile("search/close.png");
802  mgr.copyResource("mag_sel.png",dir);
803  Doxygen::indexList->addImageFile("search/mag_sel.png");
804  }
805 
806  QCString searchDirName = Config_getString("HTML_OUTPUT")+"/search";
807  QFile f(searchDirName+"/search.css");
808  if (f.open(IO_WriteOnly))
809  {
810  FTextStream t(&f);
811  QCString searchCss = replaceColorMarkers(mgr.getAsString("search.css"));
812  searchCss = substitute(searchCss,"$doxygenversion",versionString);
813  if (Config_getBool("DISABLE_INDEX"))
814  {
815  // move up the search box if there are no tabs
816  searchCss = substitute(searchCss,"margin-top: 8px;","margin-top: 0px;");
817  }
818  t << searchCss;
819  Doxygen::indexList->addStyleSheetFile("search/search.css");
820  }
821 }
QCString getAsString(const char *name) const
#define IO_WriteOnly
Definition: qiodevice.h:62
bool copyResource(const char *name, const char *targetDir) const
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
Singleton for managing resources compiled into an executable.
Definition: resourcemgr.h:32
void addStyleSheetFile(const char *name)
Definition: index.h:149
char versionString[]
Definition: version.cpp:1
void addImageFile(const char *name)
Definition: index.h:147
#define Config_getString(val)
Definition: config.cpp:660
#define Config_getBool(val)
Definition: config.cpp:664
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
QCString dir
Definition: outputgen.h:489
FTextStream t
Definition: outputgen.h:486
QCString replaceColorMarkers(const char *str)
Definition: util.cpp:7919
static IndexList * indexList
Definition: doxygen.h:149
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Definition: util.cpp:5088
void HtmlGenerator::writeSearchInfo ( FTextStream t,
const QCString relPath 
)
static

Definition at line 878 of file htmlgen.cpp.

879 {
880  static bool searchEngine = Config_getBool("SEARCHENGINE");
881  static bool serverBasedSearch = Config_getBool("SERVER_BASED_SEARCH");
882  if (searchEngine && !serverBasedSearch)
883  {
884  (void)relPath;
885  t << "<!-- window showing the filter options -->\n";
886  t << "<div id=\"MSearchSelectWindow\"\n";
887  t << " onmouseover=\"return searchBox.OnSearchSelectShow()\"\n";
888  t << " onmouseout=\"return searchBox.OnSearchSelectHide()\"\n";
889  t << " onkeydown=\"return searchBox.OnSearchSelectKey(event)\">\n";
890  t << "</div>\n";
891  t << "\n";
892  t << "<!-- iframe showing the search results (closed by default) -->\n";
893  t << "<div id=\"MSearchResultsWindow\">\n";
894  t << "<iframe src=\"javascript:void(0)\" frameborder=\"0\" \n";
895  t << " name=\"MSearchResults\" id=\"MSearchResults\">\n";
896  t << "</iframe>\n";
897  t << "</div>\n";
898  t << "\n";
899  }
900 }
#define Config_getBool(val)
Definition: config.cpp:664
void HtmlGenerator::writeSearchInfo ( )
virtual

Implements OutputGenerator.

Definition at line 902 of file htmlgen.cpp.

903 {
905 }
FTextStream t
Definition: outputgen.h:486
void writeSearchInfo()
Definition: htmlgen.cpp:902
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::writeSearchPage ( )
static

Definition at line 2193 of file htmlgen.cpp.

2194 {
2195  static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
2196  static bool disableIndex = Config_getBool("DISABLE_INDEX");
2197  static QCString projectName = Config_getString("PROJECT_NAME");
2198  static QCString htmlOutput = Config_getString("HTML_OUTPUT");
2199 
2200  // OPENSEARCH_PROVIDER {
2201  QCString configFileName = htmlOutput+"/search_config.php";
2202  QFile cf(configFileName);
2203  if (cf.open(IO_WriteOnly))
2204  {
2205  FTextStream t(&cf);
2206  t << "<script language=\"php\">\n\n";
2207  t << "$config = array(\n";
2208  t << " 'PROJECT_NAME' => \"" << convertToHtml(projectName) << "\",\n";
2209  t << " 'GENERATE_TREEVIEW' => " << (generateTreeView?"true":"false") << ",\n";
2210  t << " 'DISABLE_INDEX' => " << (disableIndex?"true":"false") << ",\n";
2211  t << ");\n\n";
2212  t << "$translator = array(\n";
2213  t << " 'search_results_title' => \"" << theTranslator->trSearchResultsTitle() << "\",\n";
2214  t << " 'search_results' => array(\n";
2215  t << " 0 => \"" << theTranslator->trSearchResults(0) << "\",\n";
2216  t << " 1 => \"" << theTranslator->trSearchResults(1) << "\",\n";
2217  t << " 2 => \"" << substitute(theTranslator->trSearchResults(2), "$", "\\$") << "\",\n";
2218  t << " ),\n";
2219  t << " 'search_matches' => \"" << theTranslator->trSearchMatches() << "\",\n";
2220  t << " 'search' => \"" << theTranslator->trSearch() << "\",\n";
2221  t << " 'split_bar' => \"" << substitute(substitute(writeSplitBarAsString("search",""), "\"","\\\""), "\n","\\n") << "\",\n";
2222  t << " 'logo' => \"" << substitute(substitute(writeLogoAsString(""), "\"","\\\""), "\n","\\n") << "\",\n";
2223  t << ");\n\n";
2224  t << "</script>\n";
2225  }
2226 
2227  ResourceMgr::instance().copyResource("search_functions.php",htmlOutput);
2228  ResourceMgr::instance().copyResource("search_opensearch.php",htmlOutput);
2229  // OPENSEARCH_PROVIDER }
2230 
2231  QCString fileName = htmlOutput+"/search.php";
2232  QFile f(fileName);
2233  if (f.open(IO_WriteOnly))
2234  {
2235  FTextStream t(&f);
2236  t << substituteHtmlKeywords(g_header,"Search","");
2237 
2238  t << "<!-- " << theTranslator->trGeneratedBy() << " Doxygen "
2239  << versionString << " -->" << endl;
2240  t << "<script type=\"text/javascript\">\n";
2241  t << "var searchBox = new SearchBox(\"searchBox\", \""
2242  << "search\",false,'" << theTranslator->trSearch() << "');\n";
2243  t << "</script>\n";
2244  if (!Config_getBool("DISABLE_INDEX"))
2245  {
2247  }
2248  else
2249  {
2250  t << "</div>" << endl;
2251  }
2252 
2253  t << "<script language=\"php\">\n";
2254  t << "require_once \"search_functions.php\";\n";
2255  t << "main();\n";
2256  t << "</script>\n";
2257 
2258  // Write empty navigation path, to make footer connect properly
2259  if (generateTreeView)
2260  {
2261  t << "</div><!-- doc-contents -->\n";
2262  //t << "<div id=\"nav-path\" class=\"navpath\">\n";
2263  //t << " <ul>\n";
2264  }
2265 
2266  writePageFooter(t,"Search","","");
2267  }
2268  QCString scriptName = htmlOutput+"/search/search.js";
2269  QFile sf(scriptName);
2270  if (sf.open(IO_WriteOnly))
2271  {
2272  FTextStream t(&sf);
2273  t << ResourceMgr::instance().getAsString("extsearch.js");
2274  }
2275  else
2276  {
2277  err("Failed to open file '%s' for writing...\n",scriptName.data());
2278  }
2279 }
static QCString writeSplitBarAsString(const char *name, const char *relpath)
Definition: htmlgen.cpp:2138
static void writeDefaultQuickLinks(FTextStream &t, bool compact, HighlightedItem hli, const char *file, const QCString &relPath)
Definition: htmlgen.cpp:2068
QCString getAsString(const char *name) const
#define IO_WriteOnly
Definition: qiodevice.h:62
virtual QCString trSearchMatches()=0
virtual QCString trSearchResultsTitle()=0
bool copyResource(const char *name, const char *targetDir) const
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
virtual QCString trSearchResults(int numDocuments)=0
virtual QCString trGeneratedBy()=0
QCString convertToHtml(const char *s, bool keepEntities)
Definition: util.cpp:5746
char versionString[]
Definition: version.cpp:1
const char * data() const
Definition: qcstring.h:207
#define Config_getString(val)
Definition: config.cpp:660
#define Config_getBool(val)
Definition: config.cpp:664
static QCString g_header
Definition: htmlgen.cpp:50
void err(const char *fmt,...)
Definition: message.cpp:226
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
virtual QCString trSearch()=0
static QCString writeLogoAsString(const char *path)
Definition: htmlgen.cpp:908
static void writePageFooter(FTextStream &t, const QCString &, const QCString &, const QCString &)
Definition: htmlgen.cpp:937
static QCString substituteHtmlKeywords(const QCString &s, const QCString &title, const QCString &relPath, const QCString &navPath=QCString())
Definition: htmlgen.cpp:216
Translator * theTranslator
Definition: language.cpp:157
const bool TRUE
Definition: qglobal.h:371
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Definition: util.cpp:5088
QTextStream & endl(QTextStream &s)
void HtmlGenerator::writeSplitBar ( const char *  name)
virtual

Implements OutputGenerator.

Definition at line 2167 of file htmlgen.cpp.

2168 {
2170 }
static QCString name
Definition: declinfo.cpp:673
static QCString writeSplitBarAsString(const char *name, const char *relpath)
Definition: htmlgen.cpp:2138
FTextStream t
Definition: outputgen.h:486
QCString relPath
Definition: htmlgen.h:351
QCString HtmlGenerator::writeSplitBarAsString ( const char *  name,
const char *  relpath 
)
static

Definition at line 2138 of file htmlgen.cpp.

2139 {
2140  static bool generateTreeView = Config_getBool("GENERATE_TREEVIEW");
2141  QCString result;
2142  // write split bar
2143  if (generateTreeView)
2144  {
2145  result = QCString(
2146  "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n"
2147  " <div id=\"nav-tree\">\n"
2148  " <div id=\"nav-tree-contents\">\n"
2149  " <div id=\"nav-sync\" class=\"sync\"></div>\n"
2150  " </div>\n"
2151  " </div>\n"
2152  " <div id=\"splitbar\" style=\"-moz-user-select:none;\" \n"
2153  " class=\"ui-resizable-handle\">\n"
2154  " </div>\n"
2155  "</div>\n"
2156  "<script type=\"text/javascript\">\n"
2157  "$(document).ready(function(){initNavTree('") +
2159  QCString("','") + relpath +
2160  QCString("');});\n"
2161  "</script>\n"
2162  "<div id=\"doc-content\">\n");
2163  }
2164  return result;
2165 }
static QCString name
Definition: declinfo.cpp:673
static QCString result
static QCString htmlFileExtension
Definition: doxygen.h:130
#define Config_getBool(val)
Definition: config.cpp:664
void HtmlGenerator::writeStartAnnoItem ( const char *  type,
const char *  file,
const char *  path,
const char *  name 
)
virtual

Implements OutputGenerator.

Definition at line 1094 of file htmlgen.cpp.

1096 {
1097  t << "<li>";
1098  if (path) docify(path);
1099  t << "<a class=\"el\" href=\"" << f << Doxygen::htmlFileExtension << "\">";
1100  docify(name);
1101  t << "</a> ";
1102 }
static QCString name
Definition: declinfo.cpp:673
static QCString htmlFileExtension
Definition: doxygen.h:130
FTextStream t
Definition: outputgen.h:486
void docify(const char *text)
Definition: htmlgen.cpp:1212
void HtmlGenerator::writeString ( const char *  text)
virtual

Writes an ASCII string to the output, without converting special characters.

Implements BaseOutputDocInterface.

Definition at line 1042 of file htmlgen.cpp.

1043 {
1044  t << text;
1045 }
FTextStream t
Definition: outputgen.h:486
void HtmlGenerator::writeStyleInfo ( int  part)
virtual

Implements OutputGenerator.

Definition at line 963 of file htmlgen.cpp.

964 {
965  //printf("writeStyleInfo(%d)\n",part);
966  if (part==0)
967  {
968  if (Config_getString("HTML_STYLESHEET").isEmpty()) // write default style sheet
969  {
970  //printf("write doxygen.css\n");
971  startPlainFile("doxygen.css");
972 
973  // alternative, cooler looking titles
974  //t << "H1 { text-align: center; border-width: thin none thin none;" << endl;
975  //t << " border-style : double; border-color : blue; padding-left : 1em; padding-right : 1em }" << endl;
976 
977  t << replaceColorMarkers(substitute(ResourceMgr::instance().getAsString("doxygen.css"),"$doxygenversion",versionString));
978  endPlainFile();
979  Doxygen::indexList->addStyleSheetFile("doxygen.css");
980  }
981  else // write user defined style sheet
982  {
983  QCString cssname=Config_getString("HTML_STYLESHEET");
984  QFileInfo cssfi(cssname);
985  if (!cssfi.exists() || !cssfi.isFile() || !cssfi.isReadable())
986  {
987  err("style sheet %s does not exist or is not readable!", Config_getString("HTML_STYLESHEET").data());
988  }
989  else
990  {
991  // convert style sheet to string
992  QCString fileStr = fileToString(cssname);
993  // write the string into the output dir
994  startPlainFile(cssfi.fileName().utf8());
995  t << fileStr;
996  endPlainFile();
997  }
998  Doxygen::indexList->addStyleSheetFile(cssfi.fileName().utf8());
999  }
1000  static QStrList extraCssFile = Config_getList("HTML_EXTRA_STYLESHEET");
1001  for (uint i=0; i<extraCssFile.count(); ++i)
1002  {
1003  QCString fileName(extraCssFile.at(i));
1004  if (!fileName.isEmpty())
1005  {
1006  QFileInfo fi(fileName);
1007  if (fi.exists())
1008  {
1009  Doxygen::indexList->addStyleSheetFile(fi.fileName().utf8());
1010  }
1011  }
1012  }
1013  }
1014 }
void endPlainFile()
Definition: outputgen.cpp:55
QCString fileToString(const char *name, bool filter, bool isSourceCode)
Definition: util.cpp:2418
bool isEmpty() const
Definition: qcstring.h:189
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
#define Config_getList(val)
Definition: config.cpp:662
void startPlainFile(const char *name)
Definition: outputgen.cpp:42
void addStyleSheetFile(const char *name)
Definition: index.h:149
char versionString[]
Definition: version.cpp:1
#define Config_getString(val)
Definition: config.cpp:660
void err(const char *fmt,...)
Definition: message.cpp:226
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
type * at(uint i)
Definition: qinternallist.h:81
QCString replaceColorMarkers(const char *str)
Definition: util.cpp:7919
The QFileInfo class provides system-independent file information.
Definition: qfileinfo.h:51
uint count() const
Definition: qinternallist.h:56
unsigned uint
Definition: qglobal.h:351
static IndexList * indexList
Definition: doxygen.h:149
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Definition: util.cpp:5088
void HtmlGenerator::writeStyleSheetFile ( QFile f)
static

Definition at line 823 of file htmlgen.cpp.

824 {
825  FTextStream t(&file);
826  t << replaceColorMarkers(substitute(ResourceMgr::instance().getAsString("doxygen.css"),"$doxygenversion",versionString));
827 }
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
char versionString[]
Definition: version.cpp:1
QFile * file
Definition: outputgen.h:487
FTextStream t
Definition: outputgen.h:486
QCString replaceColorMarkers(const char *str)
Definition: util.cpp:7919
QCString substitute(const QCString &s, const QCString &src, const QCString &dst)
substitute all occurrences of src in s by dst
Definition: util.cpp:5088
void HtmlGenerator::writeSummaryLink ( const char *  file,
const char *  anchor,
const char *  title,
bool  first 
)
virtual

Implements OutputGenerator.

Definition at line 2572 of file htmlgen.cpp.

2573 {
2574  if (first)
2575  {
2576  t << " <div class=\"summary\">\n";
2577  }
2578  else
2579  {
2580  t << " &#124;\n";
2581  }
2582  t << "<a href=\"";
2583  if (file)
2584  {
2585  t << relPath << file;
2587  }
2588  else
2589  {
2590  t << "#";
2591  t << anchor;
2592  }
2593  t << "\">";
2594  t << title;
2595  t << "</a>";
2596 }
static QCString htmlFileExtension
Definition: doxygen.h:130
QFile * file
Definition: outputgen.h:487
FTextStream t
Definition: outputgen.h:486
QCString relPath
Definition: htmlgen.h:351
void HtmlGenerator::writeSynopsis ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 258 of file htmlgen.h.

258 {}
void HtmlGenerator::writeTabData ( )
static

Additional initialization after indices have been created.

Definition at line 752 of file htmlgen.cpp.

753 {
755  QCString dname=Config_getString("HTML_OUTPUT");
757  //writeColoredImgData(dname,colored_tab_data);
758  mgr.copyResource("tab_a.lum",dname);
759  mgr.copyResource("tab_b.lum",dname);
760  mgr.copyResource("tab_h.lum",dname);
761  mgr.copyResource("tab_s.lum",dname);
762  mgr.copyResource("nav_h.lum",dname);
763  mgr.copyResource("nav_f.lum",dname);
764  mgr.copyResource("bc_s.luma",dname);
765  mgr.copyResource("doxygen.luma",dname);
766  mgr.copyResource("closed.luma",dname);
767  mgr.copyResource("open.luma",dname);
768  mgr.copyResource("bdwn.luma",dname);
769  mgr.copyResource("sync_on.luma",dname);
770  mgr.copyResource("sync_off.luma",dname);
771 
772  //{
773  // unsigned char shadow[6] = { 5, 5, 5, 5, 5, 5 };
774  // unsigned char shadow_alpha[6] = { 80, 60, 40, 20, 10, 0 };
775  // ColoredImage img(1,6,shadow,shadow_alpha,0,0,100);
776  // img.save(dname+"/nav_g.png");
777  //}
778  mgr.copyResource("nav_g.png",dname);
779 }
bool copyResource(const char *name, const char *targetDir) const
static ResourceMgr & instance()
Definition: resourcemgr.cpp:35
Singleton for managing resources compiled into an executable.
Definition: resourcemgr.h:32
void addStyleSheetFile(const char *name)
Definition: index.h:149
#define Config_getString(val)
Definition: config.cpp:660
static IndexList * indexList
Definition: doxygen.h:149
void HtmlGenerator::writeTooltip ( const char *  id,
const DocLinkInfo docInfo,
const char *  decl,
const char *  desc,
const SourceLinkInfo defInfo,
const SourceLinkInfo declInfo 
)
inlinevirtual

Writes a tool tip definition

Parameters
idunique identifier for the tooltip
docInfoInfo about the symbol's documentation.
declfull declaration of the symbol (for functions)
descbrief description for the symbol
defInfoInfo about the symbol's definition in the source code
declInfoInfo about the symbol's declaration in the source code

Implements CodeOutputInterface.

Definition at line 106 of file htmlgen.h.

109  { m_codeGen.writeTooltip(id,docInfo,decl,desc,defInfo,declInfo); }
void writeTooltip(const char *id, const DocLinkInfo &docInfo, const char *decl, const char *desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo)
Definition: htmlgen.cpp:559
HtmlCodeGenerator m_codeGen
Definition: htmlgen.h:359

Member Data Documentation

QCString HtmlGenerator::lastFile
private

Definition at line 350 of file htmlgen.h.

QCString HtmlGenerator::lastTitle
private

Definition at line 349 of file htmlgen.h.

HtmlCodeGenerator HtmlGenerator::m_codeGen
private

Definition at line 359 of file htmlgen.h.

bool HtmlGenerator::m_emptySection
private

Definition at line 358 of file htmlgen.h.

int HtmlGenerator::m_sectionCount
private

Definition at line 357 of file htmlgen.h.

QCString HtmlGenerator::relPath
private

Definition at line 351 of file htmlgen.h.


The documentation for this class was generated from the following files: