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

Class representing an 'tabbing' tag in a template. More...

Inheritance diagram for TemplateNodeTabbing:
TemplateNodeCreator< TemplateNodeTabbing > TemplateNode

Public Member Functions

 TemplateNodeTabbing (TemplateParser *parser, TemplateNode *parent, int line, const QCString &)
 
void render (FTextStream &ts, TemplateContext *c)
 
- Public Member Functions inherited from TemplateNodeCreator< TemplateNodeTabbing >
 TemplateNodeCreator (TemplateParser *parser, TemplateNode *parent, int line)
 
TemplateImplgetTemplate ()
 
- Public Member Functions inherited from TemplateNode
 TemplateNode (TemplateNode *parent)
 
virtual ~TemplateNode ()
 
TemplateNodeparent ()
 

Private Attributes

TemplateNodeList m_nodes
 

Additional Inherited Members

- Static Public Member Functions inherited from TemplateNodeCreator< TemplateNodeTabbing >
static TemplateNodecreateInstance (TemplateParser *parser, TemplateNode *parent, int line, const QCString &data)
 
- Protected Member Functions inherited from TemplateNodeCreator< TemplateNodeTabbing >
void mkpath (TemplateContextImpl *ci, const QCString &fileName)
 
- Protected Attributes inherited from TemplateNodeCreator< TemplateNodeTabbing >
QCString m_templateName
 
int m_line
 

Detailed Description

Class representing an 'tabbing' tag in a template.

Definition at line 4165 of file template.cpp.

Constructor & Destructor Documentation

TemplateNodeTabbing::TemplateNodeTabbing ( TemplateParser parser,
TemplateNode parent,
int  line,
const QCString  
)
inline

Definition at line 4168 of file template.cpp.

4170  {
4171  TRACE(("{TemplateNodeTabbing()\n"));
4172  QStrList stopAt;
4173  stopAt.append("endtabbing");
4174  parser->parse(this,line,stopAt,m_nodes);
4175  parser->removeNextToken(); // skip over endtabbing
4176  TRACE(("}TemplateNodeTabbing()\n"));
4177  }
TemplateNode * parent()
Definition: template.cpp:1647
TemplateNodeList m_nodes
Definition: template.cpp:4189
void append(const type *d)
Definition: qinternallist.h:61
void line(double t, double *p, double &x, double &y, double &z)
#define TRACE(x)
Definition: template.cpp:43

Member Function Documentation

void TemplateNodeTabbing::render ( FTextStream ts,
TemplateContext c 
)
inlinevirtual

Implements TemplateNode.

Definition at line 4178 of file template.cpp.

4179  {
4180  TemplateContextImpl *ci = dynamic_cast<TemplateContextImpl*>(c);
4181  if (ci==0) return; // should not happen
4183  bool wasTabbing = ci->tabbingEnabled();
4184  ci->enableTabbing(TRUE);
4185  m_nodes.render(ts,c);
4186  ci->enableTabbing(wasTabbing);
4187  }
void render(FTextStream &ts, TemplateContext *c)
Definition: template.cpp:2246
Internal class representing the implementation of a template context.
Definition: template.cpp:511
TemplateNodeList m_nodes
Definition: template.cpp:4189
void setLocation(const QCString &templateName, int line)
Definition: template.cpp:540
void enableTabbing(bool b)
Definition: template.cpp:551
bool tabbingEnabled() const
Definition: template.cpp:554
const bool TRUE
Definition: qglobal.h:371

Member Data Documentation

TemplateNodeList TemplateNodeTabbing::m_nodes
private

Definition at line 4189 of file template.cpp.


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