My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | List of all members
HtmlAttribList Class Reference

A list of Html attributes. More...

#include <htmlattrib.h>

Inheritance diagram for HtmlAttribList:

Public Member Functions

 HtmlAttribList ()
 
 ~HtmlAttribList ()
 
 HtmlAttribList (const HtmlAttribList &l)
 
HtmlAttribListoperator= (const HtmlAttribList &l)
 
QCString find (const QCString name) const
 
QCString toString () const
 

Private Member Functions

HtmlAttribnewValue (HtmlAttrib *v) const
 
void deleteValue (HtmlAttrib *v) const
 

Detailed Description

A list of Html attributes.

The Html attributes are deeply copied into the list.

Definition at line 32 of file htmlattrib.h.

Constructor & Destructor Documentation

HtmlAttribList::HtmlAttribList ( )
inline

Definition at line 35 of file htmlattrib.h.

: QList<HtmlAttrib>() { setAutoDelete(TRUE); }
HtmlAttribList::~HtmlAttribList ( )
inline

Definition at line 36 of file htmlattrib.h.

{ clear(); }
HtmlAttribList::HtmlAttribList ( const HtmlAttribList l)
inline

Definition at line 37 of file htmlattrib.h.

References operator=().

: QList<HtmlAttrib>()
{ operator=(l); }

Member Function Documentation

void HtmlAttribList::deleteValue ( HtmlAttrib v) const
inlineprivate

Definition at line 66 of file htmlattrib.h.

{ delete v; }
QCString HtmlAttribList::find ( const QCString  name) const
inline

Definition at line 41 of file htmlattrib.h.

References HtmlAttrib::name, and HtmlAttrib::value.

Referenced by LatexDocVisitor::visitPost(), and LatexDocVisitor::visitPre().

{
QListIterator<HtmlAttrib> it(*this);
QCString result;
HtmlAttrib *attr;
for (;(attr=it.current());++it)
{
if (attr->name==name) return attr->value;
}
return result;
}
HtmlAttrib* HtmlAttribList::newValue ( HtmlAttrib v) const
inlineprivate

Definition at line 64 of file htmlattrib.h.

{ return new HtmlAttrib(*v); }
HtmlAttribList& HtmlAttribList::operator= ( const HtmlAttribList l)
inline

Definition at line 39 of file htmlattrib.h.

Referenced by HtmlAttribList().

{ clear(); QList<HtmlAttrib>::operator=(l); return *this; }
QCString HtmlAttribList::toString ( ) const
inline

Definition at line 52 of file htmlattrib.h.

References HtmlAttrib::name, and HtmlAttrib::value.

Referenced by DocPara::handleHtmlStartTag().

{
QListIterator<HtmlAttrib> it(*this);
QCString result;
HtmlAttrib *attr;
for (;(attr=it.current());++it)
{
result+=" "+attr->name+"=\""+attr->value+"\"";
}
return result;
}

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