#include <htmlgen.h>
|
| HtmlCodeGenerator (FTextStream &t, const QCString &relPath) |
|
| HtmlCodeGenerator () |
|
void | setTextStream (FTextStream &t) |
|
void | setRelativePath (const QCString &path) |
|
void | codify (const char *text) |
|
void | writeCodeLink (const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip) |
|
void | writeTooltip (const char *id, const DocLinkInfo &docInfo, const char *decl, const char *desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo) |
|
void | writeLineNumber (const char *, const char *, const char *, int) |
|
void | startCodeLine (bool) |
|
void | endCodeLine () |
|
void | startFontClass (const char *s) |
|
void | endFontClass () |
|
void | writeCodeAnchor (const char *anchor) |
|
void | setCurrentDoc (Definition *, const char *, bool) |
|
void | addWord (const char *, bool) |
|
virtual | ~CodeOutputInterface () |
|
Definition at line 31 of file htmlgen.h.
Definition at line 406 of file htmlgen.cpp.
void setTextStream(FTextStream &t)
HtmlCodeGenerator::HtmlCodeGenerator |
( |
| ) |
|
void HtmlCodeGenerator::_writeCodeLink |
( |
const char * |
className, |
|
|
const char * |
ref, |
|
|
const char * |
file, |
|
|
const char * |
anchor, |
|
|
const char * |
name, |
|
|
const char * |
tooltip |
|
) |
| |
|
private |
Definition at line 533 of file htmlgen.cpp.
550 if (anchor)
m_t <<
"#" << anchor;
static QCString htmlFileExtension
static QCString className
void docify(const char *str)
Q_EXPORT uint qstrlen(const char *str)
QCString convertToHtml(const char *s, bool keepEntities)
QCString externalLinkTarget()
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)
void HtmlCodeGenerator::addWord |
( |
const char * |
, |
|
|
bool |
|
|
) |
| |
|
inlinevirtual |
void HtmlCodeGenerator::codify |
( |
const char * |
s | ) |
|
|
virtual |
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 423 of file htmlgen.cpp.
430 int spacesToNextTabStop;
436 case '\t': spacesToNextTabStop =
437 tabSize - (
m_col%tabSize);
439 m_col+=spacesToNextTabStop;
456 {
m_t <<
"<"; p++; }
458 {
m_t <<
">"; p++; }
QCString left(uint len) const
#define Config_getInt(val)
const char * writeUtf8Char(FTextStream &t, const char *s)
void HtmlCodeGenerator::docify |
( |
const char * |
str | ) |
|
|
private |
Definition at line 471 of file htmlgen.cpp.
482 case '<':
m_t <<
"<";
break;
483 case '>':
m_t <<
">";
break;
484 case '&':
m_t <<
"&";
break;
485 case '"':
m_t <<
""";
break;
488 {
m_t <<
"<"; p++; }
490 {
m_t <<
">"; p++; }
void HtmlCodeGenerator::endCodeLine |
( |
| ) |
|
|
virtual |
void HtmlCodeGenerator::endFontClass |
( |
| ) |
|
|
virtual |
void HtmlCodeGenerator::setCurrentDoc |
( |
Definition * |
, |
|
|
const char * |
, |
|
|
bool |
|
|
) |
| |
|
inlinevirtual |
void HtmlCodeGenerator::setRelativePath |
( |
const QCString & |
path | ) |
|
void HtmlCodeGenerator::setTextStream |
( |
FTextStream & |
t | ) |
|
Definition at line 412 of file htmlgen.cpp.
void setDevice(QIODevice *)
QIODevice * device() const
void HtmlCodeGenerator::startCodeLine |
( |
bool |
hasLineNumbers | ) |
|
|
virtual |
void HtmlCodeGenerator::startFontClass |
( |
const char * |
clsName | ) |
|
|
virtual |
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
-
clsName | The category name. |
Implements CodeOutputInterface.
Definition at line 655 of file htmlgen.cpp.
void HtmlCodeGenerator::writeCodeAnchor |
( |
const char * |
name | ) |
|
|
virtual |
void HtmlCodeGenerator::writeCodeLink |
( |
const char * |
ref, |
|
|
const char * |
file, |
|
|
const char * |
anchor, |
|
|
const char * |
name, |
|
|
const char * |
tooltip |
|
) |
| |
|
virtual |
Writes a link to an object in a code fragment.
- Parameters
-
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 524 of file htmlgen.cpp.
void _writeCodeLink(const char *className, const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip)
void HtmlCodeGenerator::writeLineNumber |
( |
const char * |
ref, |
|
|
const char * |
file, |
|
|
const char * |
anchor, |
|
|
int |
lineNumber |
|
) |
| |
|
virtual |
Writes the line number of a source listing
- Parameters
-
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 500 of file htmlgen.cpp.
504 const int maxLineNrStr = 10;
505 char lineNumber[maxLineNrStr];
506 char lineAnchor[maxLineNrStr];
510 m_t <<
"<div class=\"line\">";
511 m_t <<
"<a name=\"" << lineAnchor <<
"\"></a><span class=\"lineno\">";
void codify(const char *text)
void _writeCodeLink(const char *className, const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip)
Writes a tool tip definition
- Parameters
-
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 559 of file htmlgen.cpp.
564 m_t <<
"<div class=\"ttc\" id=\"" <<
id <<
"\">";
565 m_t <<
"<div class=\"ttname\">";
585 m_t <<
"<div class=\"ttdeci\">";
591 m_t <<
"<div class=\"ttdoc\">";
597 m_t <<
"<div class=\"ttdef\"><b>Definition:</b> ";
618 m_t <<
"<div class=\"ttdecl\"><b>Declaration:</b> ";
static QCString htmlFileExtension
void docify(const char *str)
QTextStream & endl(QTextStream &s)
QCString externalRef(const QCString &relPath, const QCString &ref, bool href)
int HtmlCodeGenerator::m_col |
|
private |
bool HtmlCodeGenerator::m_streamSet |
|
private |
The documentation for this class was generated from the following files: