Public Member Functions | Private Attributes | List of all members
TextGeneratorLatex Class Reference
Inheritance diagram for TextGeneratorLatex:
TextGeneratorIntf

Public Member Functions

 TextGeneratorLatex (FTextStream &ts)
 
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 *text) const
 
- Public Member Functions inherited from TextGeneratorIntf
virtual ~TextGeneratorIntf ()
 

Private Attributes

FTextStreamm_ts
 

Detailed Description

Definition at line 3767 of file context.cpp.

Constructor & Destructor Documentation

TextGeneratorLatex::TextGeneratorLatex ( FTextStream ts)
inline

Definition at line 3770 of file context.cpp.

3770 : m_ts(ts) {}
FTextStream & m_ts
Definition: context.cpp:3808

Member Function Documentation

void TextGeneratorLatex::writeBreak ( int  indent) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3776 of file context.cpp.

3777  {
3778  m_ts << "\\\\*\n";
3779  for (int i=0;i<indent;i++)
3780  {
3781  m_ts << "~";
3782  }
3783  }
FTextStream & m_ts
Definition: context.cpp:3808
void TextGeneratorLatex::writeLink ( const char *  ref,
const char *  f,
const char *  anchor,
const char *  text 
) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3784 of file context.cpp.

3787  {
3788  static bool pdfHyperlinks = Config_getBool("PDF_HYPERLINKS");
3789  if (!ref && pdfHyperlinks)
3790  {
3791  m_ts << "\\hyperlink{";
3792  if (f) m_ts << stripPath(f);
3793  if (f && anchor) m_ts << "_";
3794  if (anchor) m_ts << anchor;
3795  m_ts << "}{";
3796  filterLatexString(m_ts,text);
3797  m_ts << "}";
3798  }
3799  else
3800  {
3801  m_ts << "{\\bf ";
3802  filterLatexString(m_ts,text);
3803  m_ts << "}";
3804  }
3805  }
FTextStream & m_ts
Definition: context.cpp:3808
static QCString stripPath(const QCString &s)
Definition: tagreader.cpp:1287
#define Config_getBool(val)
Definition: config.cpp:664
void filterLatexString(FTextStream &t, const char *str, bool insideTabbing, bool insidePre, bool insideItem, bool keepSpaces)
Definition: util.cpp:6533
void TextGeneratorLatex::writeString ( const char *  s,
bool  keepSpaces 
) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3771 of file context.cpp.

3772  {
3773  if (s==0) return;
3774  m_ts << convertToLaTeX(s,FALSE,keepSpaces);
3775  }
FTextStream & m_ts
Definition: context.cpp:3808
const bool FALSE
Definition: qglobal.h:370
QCString convertToLaTeX(const QCString &s, bool insideTabbing, bool keepSpaces)
Definition: util.cpp:5812
static QCString * s
Definition: config.cpp:1042

Member Data Documentation

FTextStream& TextGeneratorLatex::m_ts
private

Definition at line 3808 of file context.cpp.


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