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

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

Inheritance diagram for TemplateNodeSpaceless:
TemplateNodeCreator< TemplateNodeSpaceless > TemplateNode

Public Member Functions

 TemplateNodeSpaceless (TemplateParser *parser, TemplateNode *parent, int line, const QCString &)
 
void render (FTextStream &ts, TemplateContext *c)
 
- Public Member Functions inherited from TemplateNodeCreator< TemplateNodeSpaceless >
 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< TemplateNodeSpaceless >
static TemplateNodecreateInstance (TemplateParser *parser, TemplateNode *parent, int line, const QCString &data)
 
- Protected Member Functions inherited from TemplateNodeCreator< TemplateNodeSpaceless >
void mkpath (TemplateContextImpl *ci, const QCString &fileName)
 
- Protected Attributes inherited from TemplateNodeCreator< TemplateNodeSpaceless >
QCString m_templateName
 
int m_line
 

Detailed Description

Class representing an 'spaceless' tag in a template.

Definition at line 4030 of file template.cpp.

Constructor & Destructor Documentation

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

Definition at line 4033 of file template.cpp.

4035  {
4036  TRACE(("{TemplateNodeSpaceless()\n"));
4037  QStrList stopAt;
4038  stopAt.append("endspaceless");
4039  parser->parse(this,line,stopAt,m_nodes);
4040  parser->removeNextToken(); // skip over endwith
4041  TRACE(("}TemplateNodeSpaceless()\n"));
4042  }
TemplateNode * parent()
Definition: template.cpp:1647
void append(const type *d)
Definition: qinternallist.h:61
void line(double t, double *p, double &x, double &y, double &z)
TemplateNodeList m_nodes
Definition: template.cpp:4054
#define TRACE(x)
Definition: template.cpp:43

Member Function Documentation

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

Implements TemplateNode.

Definition at line 4043 of file template.cpp.

4044  {
4045  TemplateContextImpl *ci = dynamic_cast<TemplateContextImpl*>(c);
4046  if (ci==0) return; // should not happen
4048  bool wasSpaceless = ci->spacelessEnabled();
4049  ci->enableSpaceless(TRUE);
4050  m_nodes.render(ts,c);
4051  ci->enableSpaceless(wasSpaceless);
4052  }
void render(FTextStream &ts, TemplateContext *c)
Definition: template.cpp:2246
void enableSpaceless(bool b)
Definition: template.cpp:547
bool spacelessEnabled() const
Definition: template.cpp:550
Internal class representing the implementation of a template context.
Definition: template.cpp:511
TemplateNodeList m_nodes
Definition: template.cpp:4054
void setLocation(const QCString &templateName, int line)
Definition: template.cpp:540
const bool TRUE
Definition: qglobal.h:371

Member Data Documentation

TemplateNodeList TemplateNodeSpaceless::m_nodes
private

Definition at line 4054 of file template.cpp.


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