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

#include <util.h>

Inheritance diagram for TextGeneratorOLImpl:
TextGeneratorIntf

Public Member Functions

virtual ~TextGeneratorOLImpl ()
 
 TextGeneratorOLImpl (OutputDocInterface &od)
 
void writeString (const char *s, bool keepSpaces) const
 
void writeBreak (int indent) const
 
void writeLink (const char *extRef, const char *file, const char *anchor, const char *text) const
 
- Public Member Functions inherited from TextGeneratorIntf
virtual ~TextGeneratorIntf ()
 

Private Attributes

OutputDocInterfacem_od
 

Detailed Description

Implements TextGeneratorIntf for an OutputDocInterface stream.

Definition at line 77 of file util.h.

Constructor & Destructor Documentation

virtual TextGeneratorOLImpl::~TextGeneratorOLImpl ( )
inlinevirtual

Definition at line 80 of file util.h.

80 {}
TextGeneratorOLImpl::TextGeneratorOLImpl ( OutputDocInterface od)

Definition at line 97 of file util.cpp.

97  : m_od(od)
98 {
99 }
OutputDocInterface & m_od
Definition: util.h:88

Member Function Documentation

void TextGeneratorOLImpl::writeBreak ( int  indent) const
virtual

Implements TextGeneratorIntf.

Definition at line 126 of file util.cpp.

127 {
128  m_od.lineBreak("typebreak");
129  int i;
130  for (i=0;i<indent;i++)
131  {
133  }
134 }
virtual void writeNonBreakableSpace(int)=0
OutputDocInterface & m_od
Definition: util.h:88
virtual void lineBreak(const char *style)=0
void TextGeneratorOLImpl::writeLink ( const char *  extRef,
const char *  file,
const char *  anchor,
const char *  text 
) const
virtual

Implements TextGeneratorIntf.

Definition at line 136 of file util.cpp.

139 {
140  //printf("TextGeneratorOlImpl::writeLink('%s')\n",text);
141  m_od.writeObjectLink(extRef,file,anchor,text);
142 }
OutputDocInterface & m_od
Definition: util.h:88
virtual void writeObjectLink(const char *ref, const char *file, const char *anchor, const char *name)=0
void TextGeneratorOLImpl::writeString ( const char *  s,
bool  keepSpaces 
) const
virtual

Implements TextGeneratorIntf.

Definition at line 101 of file util.cpp.

102 {
103  if (s==0) return;
104  //printf("TextGeneratorOlImpl::writeString('%s',%d)\n",s,keepSpaces);
105  if (keepSpaces)
106  {
107  const char *p=s;
108  if (p)
109  {
110  char cs[2];
111  char c;
112  cs[1]='\0';
113  while ((c=*p++))
114  {
115  if (c==' ') m_od.writeNonBreakableSpace(1);
116  else cs[0]=c,m_od.docify(cs);
117  }
118  }
119  }
120  else
121  {
122  m_od.docify(s);
123  }
124 }
virtual void writeNonBreakableSpace(int)=0
OutputDocInterface & m_od
Definition: util.h:88
virtual void docify(const char *s)=0
p
Definition: test.py:223
const char * cs
static QCString * s
Definition: config.cpp:1042

Member Data Documentation

OutputDocInterface& TextGeneratorOLImpl::m_od
private

Definition at line 88 of file util.h.


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