#include <htmlgen.h>
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) |
OutputGenerator * | get (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) |
HtmlGenerator & | operator= (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 |
QFile * | file |
QCString | fileName |
QCString | dir |
bool | active |
QStack< bool > * | genStack |
HtmlGenerator::HtmlGenerator | ( | ) |
Definition at line 672 of file htmlgen.cpp.
|
virtual |
Definition at line 678 of file htmlgen.cpp.
|
private |
|
virtual |
|
virtual |
Implements CodeOutputInterface.
Definition at line 2616 of file htmlgen.cpp.
void HtmlGenerator::clearBuffer | ( | ) |
|
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.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
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.
|
private |
Definition at line 1217 of file htmlgen.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
End a section of text displayed in bold face.
Implements BaseOutputDocInterface.
Definition at line 219 of file htmlgen.h.
|
virtual |
Implements OutputGenerator.
Definition at line 1750 of file htmlgen.cpp.
|
inlinevirtual |
|
virtual |
Implements OutputGenerator.
Definition at line 1334 of file htmlgen.cpp.
|
inlinevirtual |
Ends a source code fragment
Implements BaseOutputDocInterface.
Definition at line 215 of file htmlgen.h.
|
inlinevirtual |
Ends a line of code started with startCodeLine()
Implements CodeOutputInterface.
Definition at line 112 of file htmlgen.h.
|
virtual |
|
virtual |
|
virtual |
Implements OutputGenerator.
Definition at line 2395 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 2405 of file htmlgen.cpp.
|
virtual |
|
inlinevirtual |
|
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.
|
inlinevirtual |
Ends a description list: e.g. </dl>
in HTML
Implements BaseOutputDocInterface.
Definition at line 221 of file htmlgen.h.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements OutputGenerator.
Definition at line 1768 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 1686 of file htmlgen.cpp.
|
virtual |
|
inlinevirtual |
Ends a section of text displayed in italic.
Implements BaseOutputDocInterface.
Definition at line 217 of file htmlgen.h.
|
virtual |
|
inlinevirtual |
Ends a block started with startFontClass()
Implements CodeOutputInterface.
Definition at line 116 of file htmlgen.h.
|
virtual |
Implements OutputGenerator.
Definition at line 1732 of file htmlgen.cpp.
|
virtual |
|
virtual |
|
virtual |
Ends a link started by startHtmlLink().
Implements BaseOutputDocInterface.
Definition at line 1148 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 1714 of file htmlgen.cpp.
|
virtual |
|
virtual |
|
virtual |
Implements OutputGenerator.
Definition at line 1516 of file htmlgen.cpp.
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Ends a bullet list: e.g. </ul>
in html
Implements BaseOutputDocInterface.
Definition at line 155 of file htmlgen.h.
|
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.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements BaseOutputDocInterface.
Definition at line 1869 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 958 of file htmlgen.cpp.
|
virtual |
|
virtual |
Implements BaseOutputDocInterface.
Definition at line 1199 of file htmlgen.cpp.
|
virtual |
Implements BaseOutputDocInterface.
Definition at line 1856 of file htmlgen.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements BaseOutputDocInterface.
Definition at line 1133 of file htmlgen.cpp.
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
End a section of text displayed in typewriter style.
Implements BaseOutputDocInterface.
Definition at line 168 of file htmlgen.h.
|
virtual |
|
inlinevirtual |
|
static |
Definition at line 683 of file htmlgen.cpp.
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
private |
|
virtual |
Implements CodeOutputInterface.
Definition at line 2608 of file htmlgen.cpp.
|
inlinevirtual |
|
inlinevirtual |
Changes the text font to bold face. The bold section ends with endBold()
Implements BaseOutputDocInterface.
Definition at line 218 of file htmlgen.h.
|
virtual |
Implements OutputGenerator.
Definition at line 1745 of file htmlgen.cpp.
|
inlinevirtual |
|
virtual |
Implements OutputGenerator.
Definition at line 1329 of file htmlgen.cpp.
|
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.
|
inlinevirtual |
|
virtual |
Implements OutputGenerator.
Definition at line 2410 of file htmlgen.cpp.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
Starts an item of a description list: e.g. <dt>
in HTML.
Implements BaseOutputDocInterface.
Definition at line 222 of file htmlgen.h.
|
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.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Implements OutputGenerator.
Definition at line 1763 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 1681 of file htmlgen.cpp.
|
virtual |
|
inlinevirtual |
Changes the text font to italic. The italic section ends with endEmphasis()
Implements BaseOutputDocInterface.
Definition at line 216 of file htmlgen.h.
|
virtual |
Implements OutputGenerator.
Definition at line 843 of file htmlgen.cpp.
|
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'.
clsName | The category name. |
Implements CodeOutputInterface.
Definition at line 114 of file htmlgen.h.
|
virtual |
Implements OutputGenerator.
Definition at line 1727 of file htmlgen.cpp.
|
virtual |
|
virtual |
|
virtual |
Starts a (link to an) URL found in the documentation.
url | The URL to link to. |
Implements BaseOutputDocInterface.
Definition at line 1138 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 1709 of file htmlgen.cpp.
|
virtual |
|
virtual |
Implements OutputGenerator.
Definition at line 1057 of file htmlgen.cpp.
|
virtual |
|
virtual |
|
virtual |
Implements OutputGenerator.
Definition at line 1047 of file htmlgen.cpp.
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
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.
|
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.
|
virtual |
|
inlinevirtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Implements OutputGenerator.
Definition at line 2477 of file htmlgen.cpp.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
Starts a new paragraph
Starts a new paragraph
Implements BaseOutputDocInterface.
Definition at line 1032 of file htmlgen.cpp.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
|
virtual |
Implements BaseOutputDocInterface.
Definition at line 1185 of file htmlgen.cpp.
|
virtual |
Implements BaseOutputDocInterface.
Definition at line 1840 of file htmlgen.cpp.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
Changes the text font to fixed size. The section ends with endTypewriter()
Implements BaseOutputDocInterface.
Definition at line 167 of file htmlgen.h.
|
inlinevirtual |
|
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.
|
inlinevirtual |
Write an anchor to a source listing.
name | The name of the anchor. |
Implements CodeOutputInterface.
Definition at line 118 of file htmlgen.h.
|
inlinevirtual |
Writes a link to an object in a code fragment.
ref | If this is non-zero, the object is to be found in an external documentation file. |
file | The file in which the object is located. |
anchor | The anchor uniquely identifying the object within the file. |
name | The text to display as a placeholder for the link. |
tooltip | The tooltip to display when the mouse is on the link. |
Implements CodeOutputInterface.
Definition at line 100 of file htmlgen.h.
|
virtual |
Implements OutputGenerator.
Definition at line 1874 of file htmlgen.cpp.
|
inlinevirtual |
|
static |
Definition at line 2281 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 943 of file htmlgen.cpp.
|
static |
Definition at line 836 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 1781 of file htmlgen.cpp.
|
static |
Definition at line 829 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 2546 of file htmlgen.cpp.
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
Writes the line number of a source listing
ref | External reference (when imported from a tag file) |
file | The file part of the URL pointing to the docs. |
anchor | The anchor part of the URL pointing to the docs. |
lineNumber | The line number to write |
Implements CodeOutputInterface.
Definition at line 104 of file htmlgen.h.
|
virtual |
Implements OutputGenerator.
Definition at line 932 of file htmlgen.cpp.
|
static |
Definition at line 908 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 2172 of file htmlgen.cpp.
|
virtual |
|
virtual |
Writes a link to an object in the documentation.
ref | If this is non-zero, the object is to be found in an external documentation file. |
file | The file in which the object is located. |
anchor | The anchor uniquely identifying the object within the file. |
name | The text to display as a placeholder for the link. |
Implements BaseOutputDocInterface.
Definition at line 1104 of file htmlgen.cpp.
|
staticprivate |
Definition at line 937 of file htmlgen.cpp.
|
inlinevirtual |
|
virtual |
Implements OutputGenerator.
Definition at line 2187 of file htmlgen.cpp.
|
inlinevirtual |
Writes a horizontal ruler to the output
Implements BaseOutputDocInterface.
Definition at line 211 of file htmlgen.h.
|
static |
Definition at line 781 of file htmlgen.cpp.
|
static |
Definition at line 878 of file htmlgen.cpp.
|
virtual |
|
static |
Definition at line 2193 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 2167 of file htmlgen.cpp.
|
static |
Definition at line 2138 of file htmlgen.cpp.
|
virtual |
|
virtual |
Writes an ASCII string to the output, without converting special characters.
Implements BaseOutputDocInterface.
Definition at line 1042 of file htmlgen.cpp.
|
virtual |
Implements OutputGenerator.
Definition at line 963 of file htmlgen.cpp.
|
static |
Definition at line 823 of file htmlgen.cpp.
|
virtual |
|
inlinevirtual |
|
static |
Additional initialization after indices have been created.
Definition at line 752 of file htmlgen.cpp.
|
inlinevirtual |
Writes a tool tip definition
id | unique identifier for the tooltip |
docInfo | Info about the symbol's documentation. |
decl | full declaration of the symbol (for functions) |
desc | brief description for the symbol |
defInfo | Info about the symbol's definition in the source code |
declInfo | Info about the symbol's declaration in the source code |
Implements CodeOutputInterface.
Definition at line 106 of file htmlgen.h.
|
private |