My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
TextGeneratorHtml Class Reference
Inheritance diagram for TextGeneratorHtml:
TextGeneratorIntf

Public Member Functions

 TextGeneratorHtml (FTextStream &ts, const QCString &relPath)
 
void writeString (const char *s, bool keepSpaces) const
 
void writeBreak (int indent) const
 
void writeLink (const char *ref, const char *f, const char *anchor, const char *name) const
 
- Public Member Functions inherited from TextGeneratorIntf
virtual ~TextGeneratorIntf ()
 

Private Attributes

FTextStreamm_ts
 
QCString m_relPath
 

Detailed Description

Definition at line 3713 of file context.cpp.

Constructor & Destructor Documentation

TextGeneratorHtml::TextGeneratorHtml ( FTextStream ts,
const QCString &  relPath 
)
inline

Definition at line 3716 of file context.cpp.

: m_ts(ts), m_relPath(relPath) {}

Member Function Documentation

void TextGeneratorHtml::writeBreak ( int  indent) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3744 of file context.cpp.

References m_ts.

{
m_ts << "<br />";
for (int i=0;i<indent;i++)
{
m_ts << "&#160;";
}
}
void TextGeneratorHtml::writeLink ( const char *  ref,
const char *  f,
const char *  anchor,
const char *  name 
) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3753 of file context.cpp.

References convertToHtml(), externalLinkTarget(), externalRef(), Doxygen::htmlFileExtension, m_relPath, and m_ts.

{
if (ref)
{
m_ts << "<a class=\"elRef\" ";
}
else
{
m_ts << "<a class=\"el\" ";
}
m_ts << "href=\"";
m_ts << externalRef(m_relPath,ref,TRUE);
if (anchor) m_ts << "#" << anchor;
m_ts << "\">";
m_ts << "</a>";
}
void TextGeneratorHtml::writeString ( const char *  s,
bool  keepSpaces 
) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3718 of file context.cpp.

References convertToHtml(), and m_ts.

{
if (s==0) return;
if (keepSpaces)
{
const char *p=s;
char c;
while ((c=*p++))
{
switch(c)
{
case '<': m_ts << "&lt;"; break;
case '>': m_ts << "&gt;"; break;
case '\'': m_ts << "&#39;"; break;
case '"': m_ts << "&quot;"; break;
case '&': m_ts << "&amp;"; break;
case ' ': m_ts << "&#160;"; break;
}
}
}
else
{
}
}

Member Data Documentation

QCString TextGeneratorHtml::m_relPath
private

Definition at line 3777 of file context.cpp.

Referenced by writeLink().

FTextStream& TextGeneratorHtml::m_ts
private

Definition at line 3776 of file context.cpp.

Referenced by writeBreak(), writeLink(), and writeString().


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