My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 3782 of file context.cpp.

Constructor & Destructor Documentation

TextGeneratorLatex::TextGeneratorLatex ( FTextStream ts)
inline

Definition at line 3785 of file context.cpp.

: m_ts(ts) {}

Member Function Documentation

void TextGeneratorLatex::writeBreak ( int  indent) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3791 of file context.cpp.

References m_ts.

{
m_ts << "\\\\*\n";
for (int i=0;i<indent;i++)
{
m_ts << "~";
}
}
void TextGeneratorLatex::writeLink ( const char *  ref,
const char *  f,
const char *  anchor,
const char *  text 
) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3799 of file context.cpp.

References Config_getBool, filterLatexString(), m_ts, and stripPath().

{
static bool pdfHyperlinks = Config_getBool(PDF_HYPERLINKS);
if (!ref && pdfHyperlinks)
{
m_ts << "\\hyperlink{";
if (f) m_ts << stripPath(f);
if (f && anchor) m_ts << "_";
if (anchor) m_ts << anchor;
m_ts << "}{";
m_ts << "}";
}
else
{
m_ts << "{\\bf ";
m_ts << "}";
}
}
void TextGeneratorLatex::writeString ( const char *  s,
bool  keepSpaces 
) const
inlinevirtual

Implements TextGeneratorIntf.

Definition at line 3786 of file context.cpp.

References convertToLaTeX(), and m_ts.

{
if (s==0) return;
m_ts << convertToLaTeX(s,FALSE,keepSpaces);
}

Member Data Documentation

FTextStream& TextGeneratorLatex::m_ts
private

Definition at line 3823 of file context.cpp.

Referenced by writeBreak(), writeLink(), and writeString().


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