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

#include <rtfgen.h>

Inheritance diagram for RTFGenerator:
OutputGenerator BaseOutputDocInterface CodeOutputInterface

Public Member Functions

 RTFGenerator ()
 
 ~RTFGenerator ()
 
void enable ()
 
void disable ()
 
void enableIf (OutputType o)
 
void disableIf (OutputType o)
 
void disableIfNot (OutputType o)
 
bool isEnabled (OutputType o)
 
OutputGeneratorget (OutputType o)
 
void writeDoc (DocNode *, Definition *, MemberDef *)
 
void startFile (const char *name, const char *manName, const char *title)
 
void writeSearchInfo ()
 
void writeFooter (const char *)
 
void endFile ()
 
void clearBuffer ()
 
void startIndexSection (IndexSections)
 
void endIndexSection (IndexSections)
 
void writePageLink (const char *, bool)
 
void startProjectNumber ()
 
void endProjectNumber ()
 
void writeStyleInfo (int part)
 
void startTitleHead (const char *)
 
void startTitle ()
 
void endTitleHead (const char *, const char *name)
 
void endTitle ()
 
void newParagraph ()
 
void startParagraph ()
 
void endParagraph ()
 
void writeString (const char *text)
 
void startIndexListItem ()
 
void endIndexListItem ()
 
void startIndexList ()
 
void endIndexList ()
 
void startIndexKey ()
 
void endIndexKey ()
 
void startIndexValue (bool)
 
void endIndexValue (const char *, bool)
 
void startItemList ()
 
void endItemList ()
 
void startIndexItem (const char *ref, const char *file)
 
void endIndexItem (const char *ref, const char *file)
 
void docify (const char *text)
 
void codify (const char *text)
 
void writeObjectLink (const char *ref, const char *file, const char *anchor, const char *name)
 
void writeCodeLink (const char *ref, const char *file, const char *anchor, const char *name, const char *tooltip)
 
void writeTooltip (const char *, const DocLinkInfo &, const char *, const char *, const SourceLinkInfo &, const SourceLinkInfo &)
 
void startTextLink (const char *f, const char *anchor)
 
void endTextLink ()
 
void startHtmlLink (const char *url)
 
void endHtmlLink ()
 
void startTypewriter ()
 
void endTypewriter ()
 
void startGroupHeader (int)
 
void endGroupHeader (int)
 
void startItemListItem ()
 
void endItemListItem ()
 
void startMemberSections ()
 
void endMemberSections ()
 
void startHeaderSection ()
 
void endHeaderSection ()
 
void startMemberHeader (const char *)
 
void endMemberHeader ()
 
void startMemberSubtitle ()
 
void endMemberSubtitle ()
 
void startMemberDocList ()
 
void endMemberDocList ()
 
void startMemberList ()
 
void endMemberList ()
 
void startInlineHeader ()
 
void endInlineHeader ()
 
void startAnonTypeScope (int)
 
void endAnonTypeScope (int)
 
void startMemberItem (const char *, int, const char *)
 
void endMemberItem ()
 
void startMemberTemplateParams ()
 
void endMemberTemplateParams (const char *, const char *)
 
void insertMemberAlign (bool)
 
void writeRuler ()
 
void writeAnchor (const char *fileName, const char *name)
 
void startCodeFragment ()
 
void endCodeFragment ()
 
void writeLineNumber (const char *, const char *, const char *, int l)
 
void startCodeLine (bool)
 
void endCodeLine ()
 
void startEmphasis ()
 
void endEmphasis ()
 
void startBold ()
 
void endBold ()
 
void startDescription ()
 
void endDescription ()
 
void startDescItem ()
 
void endDescItem ()
 
void lineBreak (const char *style=0)
 
void startMemberDoc (const char *, const char *, const char *, const char *, bool)
 
void endMemberDoc (bool)
 
void startDoxyAnchor (const char *, const char *, const char *, const char *, const char *)
 
void endDoxyAnchor (const char *, const char *)
 
void writeChar (char c)
 
void writeLatexSpacing ()
 
void writeStartAnnoItem (const char *type, const char *file, const char *path, const char *name)
 
void writeEndAnnoItem (const char *name)
 
void startSubsection ()
 
void endSubsection ()
 
void startSubsubsection ()
 
void endSubsubsection ()
 
void startCenter ()
 
void endCenter ()
 
void startSmall ()
 
void endSmall ()
 
void startMemberDescription (const char *, const char *)
 
void endMemberDescription ()
 
void startMemberDeclaration ()
 
void endMemberDeclaration (const char *, const char *)
 
void writeInheritedSectionTitle (const char *, const char *, const char *, const char *, const char *, const char *)
 
void startDescList (SectionTypes)
 
void startSimpleSect (SectionTypes, const char *, const char *, const char *)
 
void endSimpleSect ()
 
void startParamList (ParamListTypes, const char *)
 
void endParamList ()
 
void startDescForItem ()
 
void endDescForItem ()
 
void startSection (const char *, const char *, SectionInfo::SectionType)
 
void endSection (const char *, SectionInfo::SectionType)
 
void addIndexItem (const char *, const char *)
 
void startIndent ()
 
void endIndent ()
 
void writeSynopsis ()
 
void startClassDiagram ()
 
void endClassDiagram (const ClassDiagram &, const char *filename, const char *name)
 
void startPageRef ()
 
void endPageRef (const char *, const char *)
 
void startQuickIndices ()
 
void endQuickIndices ()
 
void writeSplitBar (const char *)
 
void writeNavigationPath (const char *)
 
void writeLogo ()
 
void writeQuickLinks (bool, HighlightedItem, const char *)
 
void writeSummaryLink (const char *, const char *, const char *, bool)
 
void startContents ()
 
void endContents ()
 
void writeNonBreakableSpace (int)
 
void startDescTable (const char *title)
 
void endDescTable ()
 
void startDescTableTitle ()
 
void endDescTableTitle ()
 
void startDescTableData ()
 
void endDescTableData ()
 
void startDotGraph ()
 
void endDotGraph (const DotClassGraph &)
 
void startInclDepGraph ()
 
void endInclDepGraph (const DotInclDepGraph &)
 
void startGroupCollaboration ()
 
void endGroupCollaboration (const DotGroupCollaboration &g)
 
void startCallGraph ()
 
void endCallGraph (const DotCallGraph &)
 
void startDirDepGraph ()
 
void endDirDepGraph (const DotDirDeps &g)
 
void writeGraphicalHierarchy (const DotGfxHierarchyTable &)
 
void startMemberGroupHeader (bool)
 
void endMemberGroupHeader ()
 
void startMemberGroupDocs ()
 
void endMemberGroupDocs ()
 
void startMemberGroup ()
 
void endMemberGroup (bool)
 
void startTextBlock (bool dense)
 
void endTextBlock (bool)
 
void lastIndexPage ()
 
void startMemberDocPrefixItem ()
 
void endMemberDocPrefixItem ()
 
void startMemberDocName (bool)
 
void endMemberDocName ()
 
void startParameterType (bool, const char *)
 
void endParameterType ()
 
void startParameterName (bool)
 
void endParameterName (bool, bool, bool)
 
void startParameterList (bool)
 
void endParameterList ()
 
void exceptionEntry (const char *, bool)
 
void startConstraintList (const char *)
 
void startConstraintParam ()
 
void endConstraintParam ()
 
void startConstraintType ()
 
void endConstraintType ()
 
void startConstraintDocs ()
 
void endConstraintDocs ()
 
void endConstraintList ()
 
void startMemberDocSimple ()
 
void endMemberDocSimple ()
 
void startInlineMemberType ()
 
void endInlineMemberType ()
 
void startInlineMemberName ()
 
void endInlineMemberName ()
 
void startInlineMemberDoc ()
 
void endInlineMemberDoc ()
 
void startLabels ()
 
void writeLabel (const char *l, bool isLast)
 
void endLabels ()
 
void startFontClass (const char *)
 
void endFontClass ()
 
void writeCodeAnchor (const char *)
 
void setCurrentDoc (Definition *, const char *, bool)
 
void addWord (const char *, bool)
 
- Public Member Functions inherited from OutputGenerator
 OutputGenerator ()
 
virtual ~OutputGenerator ()
 
void startPlainFile (const char *name)
 
void endPlainFile ()
 
bool isEnabled () const
 
void pushGeneratorState ()
 
void popGeneratorState ()
 
- Public Member Functions inherited from BaseOutputDocInterface
virtual ~BaseOutputDocInterface ()
 
virtual bool parseText (const QCString &s)
 
- Public Member Functions inherited from CodeOutputInterface
virtual ~CodeOutputInterface ()
 

Static Public Member Functions

static void init ()
 
static void writeStyleSheetFile (QFile &f)
 
static void writeExtensionsFile (QFile &file)
 
static bool preProcessFileInplace (const char *path, const char *name)
 

Private Member Functions

 RTFGenerator (const RTFGenerator &)
 
RTFGeneratoroperator= (const RTFGenerator &)
 
const char * rtf_BList_DepthStyle ()
 
const char * rtf_CList_DepthStyle ()
 
const char * rtf_EList_DepthStyle ()
 
const char * rtf_LCList_DepthStyle ()
 
const char * rtf_DList_DepthStyle ()
 
const char * rtf_Code_DepthStyle ()
 
void incrementIndentLevel ()
 
void decrementIndentLevel ()
 
void beginRTFDocument ()
 
void beginRTFChapter ()
 
void beginRTFSection ()
 
void rtfwriteRuler_doubleline ()
 
void rtfwriteRuler_emboss ()
 
void rtfwriteRuler_thick ()
 
void rtfwriteRuler_thin ()
 
void writeRTFReference (const char *label)
 

Private Attributes

int col
 
bool m_prettyCode
 
bool m_bstartedBody
 
int m_listLevel
 
bool m_omitParagraph
 
int m_numCols
 
QCString relPath
 

Additional Inherited Members

- Public Types inherited from OutputGenerator
enum  OutputType {
  Html, Latex, Man, RTF,
  XML, DEF, Perl
}
 
- Public Types inherited from BaseOutputDocInterface
enum  ParamListTypes { Param, RetVal, Exception }
 
enum  SectionTypes { EnumValues, Examples }
 
- Protected Attributes inherited from OutputGenerator
FTextStream t
 
QFilefile
 
QCString fileName
 
QCString dir
 
bool active
 
QStack< bool > * genStack
 

Detailed Description

Generator for RTF output.

Definition at line 26 of file rtfgen.h.

Constructor & Destructor Documentation

RTFGenerator::RTFGenerator ( )

Definition at line 60 of file rtfgen.cpp.

60  : OutputGenerator()
61 {
62  dir=Config_getString("RTF_OUTPUT");
63  col=0;
64  //insideTabbing=FALSE;
65  m_listLevel = 0;
68  m_numCols = 0;
69  m_prettyCode=Config_getBool("RTF_SOURCE_CODE");
70 }
const bool FALSE
Definition: qglobal.h:370
int m_numCols
Definition: rtfgen.h:285
int m_listLevel
Definition: rtfgen.h:283
#define Config_getString(val)
Definition: config.cpp:660
#define Config_getBool(val)
Definition: config.cpp:664
bool m_omitParagraph
Definition: rtfgen.h:284
QCString dir
Definition: outputgen.h:489
bool m_prettyCode
Definition: rtfgen.h:280
bool m_bstartedBody
Definition: rtfgen.h:282
RTFGenerator::~RTFGenerator ( )

Definition at line 72 of file rtfgen.cpp.

73 {
74 }
RTFGenerator::RTFGenerator ( const RTFGenerator )
private

Member Function Documentation

void RTFGenerator::addIndexItem ( const char *  s1,
const char *  s2 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1548 of file rtfgen.cpp.

1549 {
1550  if (s1)
1551  {
1552  t << "{\\xe \\v ";
1553  docify(s1);
1554  if (s2)
1555  {
1556  t << "\\:";
1557  docify(s2);
1558  }
1559  t << "}" << endl;
1560  }
1561 }
void docify(const char *text)
Definition: rtfgen.cpp:1742
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::addWord ( const char *  ,
bool   
)
inlinevirtual

Implements CodeOutputInterface.

Definition at line 263 of file rtfgen.h.

263 {}
void RTFGenerator::beginRTFChapter ( )
private

Definition at line 292 of file rtfgen.cpp.

293 {
294  t <<"\n";
295  DBG_RTF(t << "{\\comment BeginRTFChapter}\n")
296  t << rtf_Style_Reset;
297 
298  // if we are compact, no extra page breaks...
299  if (Config_getBool("COMPACT_RTF"))
300  {
301  // t <<"\\sect\\sectd\\sbknone\n";
302  t <<"\\sect\\sbknone\n";
304  }
305  else
306  t <<"\\sect\\sbkpage\n";
307  //t <<"\\sect\\sectd\\sbkpage\n";
308 
309  t << rtf_Style["Heading1"]->reference << "\n";
310 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QDict< StyleData > rtf_Style
void rtfwriteRuler_thick()
Definition: rtfgen.cpp:2776
#define Config_getBool(val)
Definition: config.cpp:664
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
void RTFGenerator::beginRTFDocument ( )
private

Definition at line 212 of file rtfgen.cpp.

213 {
214  /* all the included RTF files should begin with the
215  * same header
216  */
217  t <<"{\\rtf1\\ansi\\ansicpg" << theTranslator->trRTFansicp();
218  t <<"\\uc1 \\deff0\\deflang1033\\deflangfe1033\n";
219 
220  DBG_RTF(t <<"{\\comment Beginning font list}\n")
221  t <<"{\\fonttbl ";
222  t <<"{\\f0\\froman\\fcharset" << theTranslator->trRTFCharSet();
223  t <<"\\fprq2{\\*\\panose 02020603050405020304}Times New Roman;}\n";
224  t <<"{\\f1\\fswiss\\fcharset" << theTranslator->trRTFCharSet();
225  t <<"\\fprq2{\\*\\panose 020b0604020202020204}Arial;}\n";
226  t <<"{\\f2\\fmodern\\fcharset" << theTranslator->trRTFCharSet();
227  t <<"\\fprq1{\\*\\panose 02070309020205020404}Courier New;}\n";
228  t <<"{\\f3\\froman\\fcharset2\\fprq2{\\*\\panose 05050102010706020507}Symbol;}\n";
229  t <<"}\n";
230  DBG_RTF(t <<"{\\comment begin colors}\n")
231  t <<"{\\colortbl;";
232  t <<"\\red0\\green0\\blue0;";
233  t <<"\\red0\\green0\\blue255;";
234  t <<"\\red0\\green255\\blue255;";
235  t <<"\\red0\\green255\\blue0;";
236  t <<"\\red255\\green0\\blue255;";
237  t <<"\\red255\\green0\\blue0;";
238  t <<"\\red255\\green255\\blue0;";
239  t <<"\\red255\\green255\\blue255;";
240  t <<"\\red0\\green0\\blue128;";
241  t <<"\\red0\\green128\\blue128;";
242  t <<"\\red0\\green128\\blue0;";
243  t <<"\\red128\\green0\\blue128;";
244  t <<"\\red128\\green0\\blue0;";
245  t <<"\\red128\\green128\\blue0;";
246  t <<"\\red128\\green128\\blue128;";
247  t <<"\\red192\\green192\\blue192;}" << endl;
248 
249  DBG_RTF(t <<"{\\comment Beginning style list}\n")
250  t <<"{\\stylesheet\n";
251  t <<"{\\widctlpar\\adjustright \\fs20\\cgrid \\snext0 Normal;}\n";
252 
253  // sort styles ascending by \s-number via an intermediate QArray
254  QArray<const StyleData*> array(128);
255  array.fill(0);
256  QDictIterator<StyleData> iter(rtf_Style);
257  const StyleData* style;
258  for(; (style = iter.current()); ++iter)
259  {
260  unsigned index = style->index;
261  unsigned size = array.size();
262  if (index >= size)
263  {
264  // +1 to add at least one element, then align up to multiple of 8
265  array.resize((index + 1 + 7) & ~7);
266  array.fill(0, size);
267  ASSERT(index < array.size());
268  }
269  if (array.at(index) != 0)
270  {
271  QCString key(iter.currentKey());
272  msg("Style '%s' redefines \\s%d.\n", key.data(), index);
273  }
274  array.at(index) = style;
275  }
276 
277  // write array elements
278  unsigned size = array.size();
279  for(unsigned i = 0; i < size; i++)
280  {
281  const StyleData* style = array.at(i);
282  if (style != 0)
283  t <<"{" << style->reference << style->definition << ";}\n";
284  }
285 
286  t <<"}" << endl;
287  // this comment is needed for postprocessing!
288  t <<"{\\comment begin body}" << endl;
289 
290 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
int comment
Definition: types.h:29
std::void_t< T > n
virtual QCString trRTFansicp()=0
FTextStream t
Definition: outputgen.h:486
Translator * theTranslator
Definition: language.cpp:157
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:72
static QCString * s
Definition: config.cpp:1042
void RTFGenerator::beginRTFSection ( )
private

Definition at line 312 of file rtfgen.cpp.

313 {
314  t <<"\n";
315  DBG_RTF(t << "{\\comment BeginRTFSection}\n")
316  t << rtf_Style_Reset;
317 
318  // if we are compact, no extra page breaks...
319  if (Config_getBool("COMPACT_RTF"))
320  {
321  // t <<"\\sect\\sectd\\sbknone\n";
322  t <<"\\sect\\sbknone\n";
324  }
325  else
326  t <<"\\sect\\sbkpage\n";
327  //t <<"\\sect\\sectd\\sbkpage\n";
328 
329  t << rtf_Style["Heading2"]->reference << "\n";
330 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QDict< StyleData > rtf_Style
#define Config_getBool(val)
Definition: config.cpp:664
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
void rtfwriteRuler_emboss()
Definition: rtfgen.cpp:2770
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
void RTFGenerator::clearBuffer ( )
void RTFGenerator::codify ( const char *  s)
virtual

Writes an code fragment to the output. This function should keep spaces visible, should break lines at a newline and should convert tabs to the right number of spaces.

Implements CodeOutputInterface.

Definition at line 1787 of file rtfgen.cpp.

1788 {
1789  // note that RTF does not have a "verbatim", so "\n" means
1790  // nothing... add a "newParagraph()";
1791  //static char spaces[]=" ";
1792  if (str)
1793  {
1794  const unsigned char *p=(const unsigned char *)str;
1795  unsigned char c;
1796  int spacesToNextTabStop;
1797 
1798  while (*p)
1799  {
1800  //static bool MultiByte = FALSE;
1801 
1802  c=*p++;
1803 
1804  switch(c)
1805  {
1806  case '\t': spacesToNextTabStop = Config_getInt("TAB_SIZE") - (col%Config_getInt("TAB_SIZE"));
1807  t << Doxygen::spaces.left(spacesToNextTabStop);
1808  col+=spacesToNextTabStop;
1809  break;
1810  case '\n': newParagraph();
1811  t << '\n'; col=0;
1812  break;
1813  case '{': t << "\\{"; col++; break;
1814  case '}': t << "\\}"; col++; break;
1815  case '\\': t << "\\\\"; col++; break;
1816  default: p=(const unsigned char *)writeUtf8Char(t,(const char *)p-1); col++; break;
1817  }
1818  }
1819  }
1820 }
QCString left(uint len) const
Definition: qcstring.cpp:213
#define Config_getInt(val)
Definition: config.cpp:661
const char * writeUtf8Char(FTextStream &t, const char *s)
Definition: util.cpp:7165
p
Definition: test.py:223
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
static QCString spaces
Definition: doxygen.h:151
static QCString str
void RTFGenerator::decrementIndentLevel ( )
private

Definition at line 2045 of file rtfgen.cpp.

2046 {
2047  m_listLevel--;
2048  if (m_listLevel<0)
2049  {
2050  err("Negative indent level while generating RTF output!\n");
2051  m_listLevel=0;
2052  }
2053 }
int m_listLevel
Definition: rtfgen.h:283
void err(const char *fmt,...)
Definition: message.cpp:226
void RTFGenerator::disable ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 37 of file rtfgen.h.

37 { active=FALSE; }
const bool FALSE
Definition: qglobal.h:370
void RTFGenerator::disableIf ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 39 of file rtfgen.h.

39 { if (o==RTF) disable(); }
void disable()
Definition: rtfgen.h:37
void RTFGenerator::disableIfNot ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 40 of file rtfgen.h.

40 { if (o!=RTF) disable(); }
void disable()
Definition: rtfgen.h:37
void RTFGenerator::docify ( const char *  s)
virtual

Writes an ASCII string to the output. Converts characters that have A special meaning, like & in html.

Implements BaseOutputDocInterface.

Definition at line 1742 of file rtfgen.cpp.

1743 {
1744  if (str)
1745  {
1746  const unsigned char *p=(const unsigned char *)str;
1747  unsigned char c;
1748  //unsigned char pc='\0';
1749  while (*p)
1750  {
1751  //static bool MultiByte = FALSE;
1752  c=*p++;
1753 
1754 #if 0
1755  if ( MultiByte )
1756  {
1757  t << getMultiByte( c );
1758  MultiByte = FALSE;
1759  continue;
1760  }
1761  if ( c >= 0x80 )
1762  {
1763  MultiByte = TRUE;
1764  t << getMultiByte( c );
1765  continue;
1766  }
1767 #endif
1768 
1769  switch (c)
1770  {
1771  case '{': t << "\\{"; break;
1772  case '}': t << "\\}"; break;
1773  case '\\': t << "\\\\"; break;
1774  default:
1775  {
1776  // see if we can insert an hyphenation hint
1777  //if (isupper(c) && islower(pc) && !insideTabbing) t << "\\-";
1778  t << (char)c;
1779  }
1780  }
1781  //pc = c;
1783  }
1784  }
1785 }
const bool FALSE
Definition: qglobal.h:370
p
Definition: test.py:223
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
static QCString str
void RTFGenerator::enable ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 35 of file rtfgen.h.

36  { if (genStack->top()) active=*genStack->top(); else active=TRUE; }
QStack< bool > * genStack
Definition: outputgen.h:491
const bool TRUE
Definition: qglobal.h:371
type * top() const
Definition: qstack.h:63
void RTFGenerator::enableIf ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 38 of file rtfgen.h.

38 { if (o==RTF) enable(); }
void enable()
Definition: rtfgen.h:35
void RTFGenerator::endAnonTypeScope ( int  )
inlinevirtual

Implements OutputGenerator.

Definition at line 117 of file rtfgen.h.

117 {}
void RTFGenerator::endBold ( )
inlinevirtual

End a section of text displayed in bold face.

Implements BaseOutputDocInterface.

Definition at line 135 of file rtfgen.h.

135 { t << "}"; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::endCallGraph ( const DotCallGraph g)
virtual

Implements OutputGenerator.

Definition at line 2498 of file rtfgen.cpp.

2499 {
2500  newParagraph();
2501 
2504 
2505  // display the file
2506  t << "{" << endl;
2507  t << rtf_Style_Reset << endl;
2508  t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2509  QCString imgExt = getDotImageExtension();
2510  t << fn << "." << imgExt;
2511  t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par" << endl;
2512  t << "}" << endl;
2513  DBG_RTF(t << "{\\comment (endCallGraph)}" << endl)
2514 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
QCString relPath
Definition: rtfgen.h:286
QAsciiDict< Entry > fn
#define Config_getString(val)
Definition: config.cpp:660
QCString getDotImageExtension(void)
Definition: util.cpp:8562
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
QCString fileName
Definition: outputgen.h:488
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3824
FTextStream t
Definition: outputgen.h:486
Definition: dot.h:43
void newParagraph()
Definition: rtfgen.cpp:2118
Definition: dot.h:42
QTextStream & endl(QTextStream &s)
void RTFGenerator::endCenter ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 155 of file rtfgen.h.

155 { t << "}"; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::endClassDiagram ( const ClassDiagram d,
const char *  filename,
const char *  name 
)
virtual

Implements OutputGenerator.

Definition at line 1835 of file rtfgen.cpp.

1837 {
1838  newParagraph();
1839 
1840  // create a png file
1842 
1843  // display the file
1844  t << "{" << endl;
1845  t << rtf_Style_Reset << endl;
1846  t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
1847  t << fileName << ".png\"";
1848  t << " \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par" << endl;
1849  t << "}" << endl;
1850 }
const bool FALSE
Definition: qglobal.h:370
QCString relPath
Definition: rtfgen.h:286
void writeImage(FTextStream &t, const char *path, const char *relPath, const char *file, bool generateMap=TRUE) const
Definition: diagram.cpp:1353
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
QCString fileName
Definition: outputgen.h:488
QCString dir
Definition: outputgen.h:489
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endCodeFragment ( )
virtual

Ends a source code fragment

Implements BaseOutputDocInterface.

Definition at line 1906 of file rtfgen.cpp.

1907 {
1908  //newParagraph();
1909  //styleStack.pop();
1910  //printf("RTFGenerator::endCodeFrament() top=%s\n",styleStack.top());
1911  //t << rtf_Style_Reset << styleStack.top() << endl;
1912  DBG_RTF(t << "{\\comment (endCodeFragment) }" << endl)
1913  t << "}" << endl;
1915 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endCodeLine ( )
inlinevirtual

Ends a line of code started with startCodeLine()

Implements CodeOutputInterface.

Definition at line 131 of file rtfgen.h.

131 { lineBreak(); }
void lineBreak(const char *style=0)
Definition: rtfgen.cpp:943
void RTFGenerator::endConstraintDocs ( )
virtual

Implements OutputGenerator.

Definition at line 2865 of file rtfgen.cpp.

2866 {
2867  DBG_RTF(t << "{\\comment (endConstraintDocs)}" << endl)
2868  newParagraph();
2869 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endConstraintList ( )
virtual

Implements OutputGenerator.

Definition at line 2871 of file rtfgen.cpp.

2872 {
2873  DBG_RTF(t << "{\\comment (endConstraintList)}" << endl)
2874  newParagraph();
2877  t << "}";
2878 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void decrementIndentLevel()
Definition: rtfgen.cpp:2045
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endConstraintParam ( )
virtual

Implements OutputGenerator.

Definition at line 2840 of file rtfgen.cpp.

2841 {
2842  DBG_RTF(t << "{\\comment (endConstraintParam)}" << endl)
2843  endEmphasis();
2844  t << " : ";
2845 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void endEmphasis()
Definition: rtfgen.h:133
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endConstraintType ( )
virtual

Implements OutputGenerator.

Definition at line 2853 of file rtfgen.cpp.

2854 {
2855  DBG_RTF(t << "{\\comment (endConstraintType)}" << endl)
2856  endEmphasis();
2857  t << " ";
2858 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void endEmphasis()
Definition: rtfgen.h:133
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endContents ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 191 of file rtfgen.h.

191 {}
void RTFGenerator::endDescForItem ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1650 of file rtfgen.cpp.

1651 {
1652  DBG_RTF(t << "{\\comment (endDescForItem) }" << endl)
1653 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endDescItem ( )
virtual

Ends an item of a description list and starts the description itself: e.g. </dt> in HTML.

Implements BaseOutputDocInterface.

Definition at line 1599 of file rtfgen.cpp.

1600 {
1601  DBG_RTF(t << "{\\comment (endDescItem)}" << endl)
1602  t << "}" << endl;
1603  newParagraph();
1604 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endDescription ( )
virtual

Ends a description list: e.g. </dl> in HTML

Implements BaseOutputDocInterface.

Definition at line 1585 of file rtfgen.cpp.

1586 {
1587  DBG_RTF(t << "{\\comment (endDescription)}" << endl)
1588  newParagraph();
1589  t << "}";
1590 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endDescTable ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1994 of file rtfgen.cpp.

1995 {
1996  //decrementIndentLevel();
1997  DBG_RTF(t << "{\\comment (endDescTable)}" << endl)
1998  endDescForItem();
1999  endSimpleSect();
2000  //t << "}" << endl;
2001  //t << rtf_Style_Reset << styleStack.top();
2002 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void endDescForItem()
Definition: rtfgen.cpp:1650
void endSimpleSect()
Definition: rtfgen.cpp:2697
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endDescTableData ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 2026 of file rtfgen.cpp.

2027 {
2028  DBG_RTF(t << "{\\comment (endDescTableData) }" << endl)
2029  newParagraph();
2031 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endDescTableTitle ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 2012 of file rtfgen.cpp.

2013 {
2014  DBG_RTF(t << "{\\comment (endDescTableTitle) }" << endl)
2015  endEmphasis();
2016  endBold();
2017  t << " ";
2018 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void endBold()
Definition: rtfgen.h:135
void endEmphasis()
Definition: rtfgen.h:133
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endDirDepGraph ( const DotDirDeps g)
virtual

Implements OutputGenerator.

Definition at line 2521 of file rtfgen.cpp.

2522 {
2523  newParagraph();
2524 
2527 
2528  // display the file
2529  t << "{" << endl;
2530  t << rtf_Style_Reset << endl;
2531  t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2532  QCString imgExt = getDotImageExtension();
2533  t << fn << "." << imgExt;
2534  t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par" << endl;
2535  t << "}" << endl;
2536  DBG_RTF(t << "{\\comment (endDirDepGraph)}" << endl)
2537 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
QCString relPath
Definition: rtfgen.h:286
QAsciiDict< Entry > fn
#define Config_getString(val)
Definition: config.cpp:660
QCString getDotImageExtension(void)
Definition: util.cpp:8562
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
Definition: dot.h:43
void newParagraph()
Definition: rtfgen.cpp:2118
QCString writeGraph(FTextStream &out, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1, bool linkRelations=TRUE) const
Definition: dot.cpp:3977
Definition: dot.h:42
QTextStream & endl(QTextStream &s)
void RTFGenerator::endDotGraph ( const DotClassGraph g)
virtual

Implements OutputGenerator.

Definition at line 2443 of file rtfgen.cpp.

2444 {
2445  newParagraph();
2446 
2447  QCString fn =
2449 
2450  // display the file
2451  t << "{" << endl;
2452  t << rtf_Style_Reset << endl;
2453  t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2454  QCString imgExt = getDotImageExtension();
2455  t << fn << "." << imgExt;
2456  t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par" << endl;
2457  t << "}" << endl;
2458  newParagraph();
2459  DBG_RTF(t << "{\\comment (endDotGraph)}" << endl)
2460 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
QCString relPath
Definition: rtfgen.h:286
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool TBRank=TRUE, bool imageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3133
QAsciiDict< Entry > fn
#define Config_getString(val)
Definition: config.cpp:660
QCString getDotImageExtension(void)
Definition: util.cpp:8562
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
Definition: dot.h:43
void newParagraph()
Definition: rtfgen.cpp:2118
Definition: dot.h:42
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endDoxyAnchor ( const char *  fName,
const char *  anchor 
)
virtual

Implements OutputGenerator.

Definition at line 1520 of file rtfgen.cpp.

1521 {
1522  QCString ref;
1523  if (fName)
1524  {
1525  ref+=fName;
1526  }
1527  if (anchor)
1528  {
1529  ref+='_';
1530  ref+=anchor;
1531  }
1532 
1533  DBG_RTF(t << "{\\comment endDoxyAnchor}" << endl)
1534  t << "{\\bkmkstart ";
1535  t << rtfFormatBmkStr(ref);
1536  t << "}" << endl;
1537  t << "{\\bkmkend ";
1538  t << rtfFormatBmkStr(ref);
1539  t << "}" << endl;
1540 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endEmphasis ( )
inlinevirtual

Ends a section of text displayed in italic.

Implements BaseOutputDocInterface.

Definition at line 133 of file rtfgen.h.

133 { t << "}"; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::endFile ( )
virtual

Implements OutputGenerator.

Definition at line 343 of file rtfgen.cpp.

344 {
345  DBG_RTF(t << "{\\comment endFile}\n")
346  t << "}";
347 
348  endPlainFile();
349 }
void endPlainFile()
Definition: outputgen.cpp:55
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::endFontClass ( )
inlinevirtual

Ends a block started with startFontClass()

Implements CodeOutputInterface.

Definition at line 259 of file rtfgen.h.

259 {}
void RTFGenerator::endGroupCollaboration ( const DotGroupCollaboration g)
virtual

Implements OutputGenerator.

Definition at line 2489 of file rtfgen.cpp.

2490 {
2491 }
void RTFGenerator::endGroupHeader ( int  )
virtual

Implements OutputGenerator.

Definition at line 1474 of file rtfgen.cpp.

1475 {
1476  DBG_RTF(t <<"{\\comment endGroupHeader}" << endl)
1477  t << "\\par" << endl;
1478  t << rtf_Style_Reset << endl;
1479 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endHeaderSection ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 105 of file rtfgen.h.

105 {}
void RTFGenerator::endHtmlLink ( )
virtual

Ends a link started by startHtmlLink().

Implements BaseOutputDocInterface.

Definition at line 1091 of file rtfgen.cpp.

1092 {
1093  if (Config_getBool("RTF_HYPERLINKS"))
1094  {
1095  t << "}}}" << endl;
1096  }
1097  else
1098  {
1099  endTypewriter();
1100  }
1101 }
#define Config_getBool(val)
Definition: config.cpp:664
void endTypewriter()
Definition: rtfgen.h:95
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endInclDepGraph ( const DotInclDepGraph g)
virtual

Implements OutputGenerator.

Definition at line 2467 of file rtfgen.cpp.

2468 {
2469  newParagraph();
2470 
2473 
2474  // display the file
2475  t << "{" << endl;
2476  t << rtf_Style_Reset << endl;
2477  t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2478  QCString imgExt = getDotImageExtension();
2479  t << fn << "." << imgExt;
2480  t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par" << endl;
2481  t << "}" << endl;
2482  DBG_RTF(t << "{\\comment (endInclDepGraph)}" << endl)
2483 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
QCString relPath
Definition: rtfgen.h:286
QAsciiDict< Entry > fn
#define Config_getString(val)
Definition: config.cpp:660
QCString getDotImageExtension(void)
Definition: util.cpp:8562
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
Definition: dot.h:43
void newParagraph()
Definition: rtfgen.cpp:2118
QCString writeGraph(FTextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const char *path, const char *fileName, const char *relPath, bool writeImageMap=TRUE, int graphId=-1) const
Definition: dot.cpp:3503
Definition: dot.h:42
QTextStream & endl(QTextStream &s)
void RTFGenerator::endIndent ( )
virtual

Implements OutputGenerator.

Definition at line 1571 of file rtfgen.cpp.

1572 {
1573  t << "}" << endl;
1575 }
void decrementIndentLevel()
Definition: rtfgen.cpp:2045
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endIndexItem ( const char *  ref,
const char *  file 
)
virtual

Implements OutputGenerator.

Definition at line 1052 of file rtfgen.cpp.

1053 {
1054  DBG_RTF(t << "{\\comment (endIndexItem)}" << endl)
1055  if (!ref && fn)
1056  {
1057  t << "\\tab ";
1058  writeRTFReference(fn);
1059  t << endl;
1060  }
1061  else
1062  {
1063  t << endl;
1064  }
1066 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QAsciiDict< Entry > fn
void writeRTFReference(const char *label)
Definition: rtfgen.cpp:1890
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endIndexKey ( )
virtual

Implements OutputGenerator.

Definition at line 1156 of file rtfgen.cpp.

1157 {
1158  DBG_RTF(t << "{\\comment (endIndexKey)}" << endl)
1159 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endIndexList ( )
virtual

Implements OutputGenerator.

Definition at line 965 of file rtfgen.cpp.

966 {
967  DBG_RTF(t << "{\\comment (endIndexList)}" << endl)
969  {
970  t << "\\par";
971  m_omitParagraph = TRUE;
972  }
973  t << "}";
975 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void decrementIndentLevel()
Definition: rtfgen.cpp:2045
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endIndexListItem ( )
virtual

Implements OutputGenerator.

Definition at line 2885 of file rtfgen.cpp.

2886 {
2887  DBG_RTF(t << "{\\comment (endIndexListItem)}" << endl)
2888  t << "\\par" << endl;
2889 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endIndexSection ( IndexSections  is)
virtual

Implements OutputGenerator.

Definition at line 539 of file rtfgen.cpp.

540 {
541  bool fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN");
542  bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL");
543  static bool sourceBrowser = Config_getBool("SOURCE_BROWSER");
544  static QCString projectName = Config_getString("PROJECT_NAME");
545 
546  switch (is)
547  {
548  case isTitlePageStart:
549  if (rtf_title)
550  // User has overridden document title in extensions file
551  t << "}" << rtf_title;
552  else
553  t << "}" << projectName;
554  break;
555  case isTitlePageAuthor:
556  {
557  t << "Doxgyen. }\n";
558  t << "{\\creatim " << dateToRTFDateString() << "}\n}";
559  DBG_RTF(t << "{\\comment end of infoblock}\n");
560  // setup for this section
561  t << rtf_Style_Reset <<"\n";
562  t <<"\\sectd\\pgnlcrm\n";
563  t <<"{\\footer "<<rtf_Style["Footer"]->reference << "{\\chpgn}}\n";
564  // the title entry
565  DBG_RTF(t << "{\\comment begin title page}\n")
566 
567 
568  t << rtf_Style_Reset << rtf_Style["SubTitle"]->reference << endl; // set to title style
569 
570  t << "\\vertalc\\qc\\par\\par\\par\\par\\par\\par\\par\n";
572  {
573  t << "{\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"" << rtf_logoFilename;
574  t << "\" \\\\d \\\\*MERGEFORMAT} {\\fldrslt IMAGE }}\\par\\par\n";
575  }
576  if (rtf_company)
577  {
578  t << rtf_company << "\\par\\par\n";
579  }
580 
581  t << rtf_Style_Reset << rtf_Style["Title"]->reference << endl; // set to title style
582  if (rtf_title)
583  // User has overridden document title in extensions file
584  t << "{\\field\\fldedit {\\*\\fldinst " << rtf_title << " \\\\*MERGEFORMAT}{\\fldrslt " << rtf_title << "}}\\par" << endl;
585  else
586  {
587  DocText *root = validatingParseText(projectName);
588  t << "{\\field\\fldedit {\\*\\fldinst TITLE \\\\*MERGEFORMAT}{\\fldrslt ";
589  writeDoc(root,0,0);
590  t << "}}\\par" << endl;
591 
592  }
593 
594  t << rtf_Style_Reset << rtf_Style["SubTitle"]->reference << endl; // set to title style
595  t << "\\par\n";
596  if (rtf_documentType)
597  {
598  t << rtf_documentType << "\\par\n";
599  }
600  if (rtf_documentId)
601  {
602  t << rtf_documentId << "\\par\n";
603  }
604  t << "\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\n";
605 
606  t << rtf_Style_Reset << rtf_Style["SubTitle"]->reference << endl; // set to subtitle style
607  if (rtf_author)
608  t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt "<< rtf_author << " }}\\par" << endl;
609  else
610  t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt AUTHOR}}\\par" << endl;
611 
612  t << theTranslator->trVersion() << " " << Config_getString("PROJECT_NUMBER") << "\\par";
613  t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}"
614  "{\\fldrslt "<< dateToString(FALSE) << " }}\\par"<<endl;
615  t << "\\page\\page";
616  DBG_RTF(t << "{\\comment End title page}" << endl)
617 
618  // table of contents section
619  DBG_RTF(t << "{\\comment Table of contents}\n")
620  t << "\\vertalt\n";
621  t << rtf_Style_Reset << endl;
622  t << rtf_Style["Heading1"]->reference;
623  t << theTranslator->trRTFTableOfContents() << "\\par"<< endl;
624  t << rtf_Style_Reset << "\\par" << endl;
625  t << "{\\field\\fldedit {\\*\\fldinst TOC \\\\f \\\\*MERGEFORMAT}{\\fldrslt Table of contents}}\\par\n";
626  t << rtf_Style_Reset << endl;
627  }
628  break;
629  case isMainPage:
630  t << "\\par " << rtf_Style_Reset << endl;
631  if (!Doxygen::mainPage || Doxygen::mainPage->title().isEmpty())
632  {
633  t << "{\\tc \\v " << theTranslator->trMainPage() << "}"<< endl;
634  }
635  else
636  {
637  t << "{\\tc \\v " << substitute(Doxygen::mainPage->title(),"%","") << "}"<< endl;
638  }
639  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
640  //if (Config_getBool("GENERATE_TREEVIEW")) t << "main"; else t << "index";
641  t << "index";
642  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
643  break;
644  //case isPackageIndex:
645  // t << "\\par " << rtf_Style_Reset << endl;
646  // t << "{\\tc \\v " << theTranslator->trPackageList() << "}"<< endl;
647  // t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"packages.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
648  // break;
649  case isModuleIndex:
650  t << "\\par " << rtf_Style_Reset << endl;
651  t << "{\\tc \\v " << theTranslator->trModuleIndex() << "}"<< endl;
652  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"modules.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
653  break;
654  case isDirIndex:
655  t << "\\par " << rtf_Style_Reset << endl;
656  t << "{\\tc \\v " << theTranslator->trDirIndex() << "}"<< endl;
657  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"dirs.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
658  break;
659  case isNamespaceIndex:
660  t << "\\par " << rtf_Style_Reset << endl;
661  if (fortranOpt)
662  {
663  t << "{\\tc \\v " << theTranslator->trModulesIndex() << "}" << endl;
664  }
665  else
666  {
667  t << "{\\tc \\v " << theTranslator->trNamespaceIndex() << "}" << endl;
668  }
669 
670  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"namespaces.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
671  break;
673  t << "\\par " << rtf_Style_Reset << endl;
674  t << "{\\tc \\v " << theTranslator->trHierarchicalIndex() << "}"<< endl;
675  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"hierarchy.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
676  break;
677  case isCompoundIndex:
678  t << "\\par " << rtf_Style_Reset << endl;
679  if (fortranOpt)
680  {
681  t << "{\\tc \\v " << theTranslator->trCompoundIndexFortran() << "}"<< endl;
682  }
683  else if (vhdlOpt)
684  {
685  t << "{\\tc \\v " << VhdlDocGen::trDesignUnitIndex() << "}"<< endl;
686  }
687  else
688  {
689  t << "{\\tc \\v " << theTranslator->trCompoundIndex() << "}"<< endl;
690  }
691  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"annotated.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
692  break;
693  case isFileIndex:
694  t << "\\par " << rtf_Style_Reset << endl;
695  t << "{\\tc \\v " << theTranslator->trFileIndex() << "}"<< endl;
696  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"files.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
697  break;
698  case isPageIndex:
699  t << "\\par " << rtf_Style_Reset << endl;
700  t << "{\\tc \\v " << theTranslator->trPageIndex() << "}"<< endl;
701  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"pages.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
702  break;
704  {
706  GroupDef *gd;
707  t << "{\\tc \\v " << theTranslator->trModuleDocumentation() << "}"<< endl;
708  for (gli.toFirst();(gd=gli.current());++gli)
709  {
710  if (!gd->isReference())
711  {
712  t << "\\par " << rtf_Style_Reset << endl;
713  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
714  t << gd->getOutputFileBase();
715  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
716  }
717  }
718  }
719  break;
720  case isDirDocumentation:
721  {
723  DirDef *dd;
724  t << "{\\tc \\v " << theTranslator->trDirDocumentation() << "}"<< endl;
725  for (dli.toFirst();(dd=dli.current());++dli)
726  {
727  if (dd->isLinkableInProject())
728  {
729  t << "\\par " << rtf_Style_Reset << endl;
730  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
731  t << dd->getOutputFileBase();
732  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
733  }
734  }
735  }
736  break;
738  {
740  NamespaceDef *nd;
741  bool found=FALSE;
742  for (nli.toFirst();(nd=nli.current()) && !found;++nli)
743  {
744  if (nd->isLinkableInProject())
745  {
746  t << "\\par " << rtf_Style_Reset << endl;
747  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
748  t << nd->getOutputFileBase();
749  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
750  found=TRUE;
751  }
752  }
753  while ((nd=nli.current()))
754  {
755  if (nd->isLinkableInProject())
756  {
757  t << "\\par " << rtf_Style_Reset << endl;
758  beginRTFSection();
759  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
760  t << nd->getOutputFileBase();
761  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
762  }
763  ++nli;
764  }
765  }
766  break;
768  {
770  ClassDef *cd=0;
771  bool found=FALSE;
772  if (fortranOpt)
773  {
774  t << "{\\tc \\v " << theTranslator->trTypeDocumentation() << "}"<< endl;
775  }
776  else
777  {
778  t << "{\\tc \\v " << theTranslator->trClassDocumentation() << "}"<< endl;
779  }
780  for (cli.toFirst();(cd=cli.current()) && !found;++cli)
781  {
782  if (cd->isLinkableInProject() &&
783  cd->templateMaster()==0 &&
785  )
786  {
787  t << "\\par " << rtf_Style_Reset << endl;
788  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
789  t << cd->getOutputFileBase();
790  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
791  found=TRUE;
792  }
793  }
794  for (;(cd=cli.current());++cli)
795  {
796  if (cd->isLinkableInProject() &&
797  cd->templateMaster()==0 &&
799  )
800  {
801  t << "\\par " << rtf_Style_Reset << endl;
802  beginRTFSection();
803  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
804  t << cd->getOutputFileBase();
805  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
806  }
807  }
808  }
809  break;
810  case isFileDocumentation:
811  {
812  bool isFirst=TRUE;
813 
814  t << "{\\tc \\v " << theTranslator->trFileDocumentation() << "}"<< endl;
816  FileName *fn;
817  for (fnli.toFirst();(fn=fnli.current());++fnli)
818  {
819  FileNameIterator fni(*fn);
820  FileDef *fd;
821  for (;(fd=fni.current());++fni)
822  {
823  if (fd->isLinkableInProject())
824  {
825  if (isFirst)
826  {
827  t << "\\par " << rtf_Style_Reset << endl;
828  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
829  t << fd->getOutputFileBase();
830  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
831  if (sourceBrowser && m_prettyCode && fd->generateSourceFile())
832  {
833  t << "\\par " << rtf_Style_Reset << endl;
834  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"" << fd->getSourceFileBase() << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
835  }
836  isFirst=FALSE;
837  }
838  else
839  {
840  t << "\\par " << rtf_Style_Reset << endl;
841  beginRTFSection();
842  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
843  t << fd->getOutputFileBase();
844  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
845  if (sourceBrowser && m_prettyCode && fd->generateSourceFile())
846  {
847  t << "\\par " << rtf_Style_Reset << endl;
848  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"" << fd->getSourceFileBase() << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
849  }
850  }
851  }
852  }
853  }
854  }
855  break;
857  {
858  //t << "}\n";
859  t << "{\\tc \\v " << theTranslator->trExampleDocumentation() << "}"<< endl;
861  PageDef *pd=pdi.toFirst();
862  if (pd)
863  {
864  t << "\\par " << rtf_Style_Reset << endl;
865  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
866  t << pd->getOutputFileBase();
867  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
868  }
869  for (++pdi;(pd=pdi.current());++pdi)
870  {
871  t << "\\par " << rtf_Style_Reset << endl;
872  beginRTFSection();
873  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
874  t << pd->getOutputFileBase();
875  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
876  }
877  }
878  break;
879  case isPageDocumentation:
880  {
881 //#error "fix me in the same way as the latex index..."
882  //t << "{\\tc \\v " << theTranslator->trPageDocumentation() << "}"<< endl;
883  //t << "}"<< endl;
884  //PageSDict::Iterator pdi(*Doxygen::pageSDict);
885  //PageDef *pd=pdi.toFirst();
886  //bool first=TRUE;
887  //for (pdi.toFirst();(pd=pdi.current());++pdi)
888  //{
889  // if (!pd->getGroupDef() && !pd->isReference())
890  // {
891  // if (first) t << "\\par " << rtf_Style_Reset << endl;
892  // t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
893  // t << pd->getOutputFileBase();
894  // t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
895  // first=FALSE;
896  // }
897  //}
898  }
899  break;
901  {
902  t << "}";
903  t << "\\par " << rtf_Style_Reset << endl;
904  }
905  break;
906  case isEndIndex:
907  beginRTFChapter();
908  t << rtf_Style["Heading1"]->reference;
909  t << theTranslator->trRTFGeneralIndex() << "\\par "<< endl;
910  t << rtf_Style_Reset << endl;
911  t << "{\\tc \\v " << theTranslator->trRTFGeneralIndex() << "}" << endl;
912  t << "{\\field\\fldedit {\\*\\fldinst INDEX \\\\c2 \\\\*MERGEFORMAT}{\\fldrslt INDEX}}\n";
913 
914  break;
915  }
916 }
static GroupSDict * groupSDict
Definition: doxygen.h:119
static QCString dateToRTFDateString()
Definition: rtfgen.cpp:50
virtual QCString trHierarchicalIndex()=0
bool isLinkableInProject() const
Definition: classdef.cpp:2707
static PageSDict * exampleSDict
Definition: doxygen.h:101
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
bool generateSourceFile() const
Definition: filedef.cpp:1396
QCString getOutputFileBase() const
virtual QCString trModuleIndex()=0
QCString rtf_documentId
Definition: rtfstyle.cpp:38
QDict< StyleData > rtf_Style
QCString rtf_documentType
Definition: rtfstyle.cpp:37
virtual QCString trCompoundIndexFortran()=0
void beginRTFChapter()
Definition: rtfgen.cpp:292
virtual QCString trCompoundIndex()=0
DocText * validatingParseText(const char *input)
Definition: docparser.cpp:7381
const bool FALSE
Definition: qglobal.h:370
static FileNameList * inputNameList
Definition: doxygen.h:109
virtual bool isReference() const
static QCString trDesignUnitIndex()
virtual QCString trModuleDocumentation()=0
void writeDoc(DocNode *, Definition *, MemberDef *)
Definition: rtfgen.cpp:2756
int comment
virtual QCString trPageIndex()=0
static NamespaceSDict * namespaceSDict
Definition: doxygen.h:120
ClassDef * templateMaster() const
Definition: classdef.cpp:4439
def cli(ctx)
Definition: main.py:7
Definition: sortdict.h:73
QAsciiDict< Entry > fn
virtual QCString trFileDocumentation()=0
bool isLinkableInProject() const
Definition: filedef.cpp:1877
virtual QCString trDirDocumentation()=0
virtual QCString trDirIndex()=0
QCString getSourceFileBase() const
Definition: filedef.cpp:1771
std::void_t< T > n
static DirSDict * directories
Definition: doxygen.h:139
QCString rtf_logoFilename
Definition: rtfstyle.cpp:34
QCString rtf_author
Definition: rtfstyle.cpp:35
virtual QCString trClassDocumentation()=0
virtual QCString trFileIndex()=0
bool isEmbeddedInOuterScope() const
Definition: classdef.cpp:4630
Definition: dirdef.h:44
QCString dateToString(bool includeTime)
Definition: util.cpp:2473
#define Config_getString(val)
Definition: config.cpp:660
virtual QCString trVersion()=0
#define Config_getBool(val)
Definition: config.cpp:664
bool isLinkableInProject() const
Definition: dirdef.cpp:58
void beginRTFSection()
Definition: rtfgen.cpp:312
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
QCString getOutputFileBase() const
Definition: filedef.h:83
virtual QCString trExampleDocumentation()=0
QCString getOutputFileBase() const
Definition: classdef.cpp:3533
QCString getOutputFileBase() const
Definition: dirdef.cpp:113
FTextStream t
Definition: outputgen.h:486
virtual QCString trNamespaceIndex()=0
A model of a page symbol.
Definition: pagedef.h:29
QCString rtf_title
Definition: rtfstyle.cpp:30
Translator * theTranslator
Definition: language.cpp:157
friend class Iterator
Definition: sortdict.h:289
bool isLinkableInProject() const
QCString getOutputFileBase() const
Definition: groupdef.cpp:1512
if(!yymsg) yymsg
static ClassSDict * classSDict
Definition: doxygen.h:99
QCString getOutputFileBase() const
Definition: pagedef.cpp:58
bool m_prettyCode
Definition: rtfgen.h:280
QCString rtf_company
Definition: rtfstyle.cpp:33
virtual QCString trRTFGeneralIndex()=0
const bool TRUE
Definition: qglobal.h:371
virtual QCString trTypeDocumentation()=0
QTextStream & endl(QTextStream &s)
virtual QCString trModulesIndex()=0
void RTFGenerator::endIndexValue ( const char *  name,
bool  hasBrief 
)
virtual

Implements OutputGenerator.

Definition at line 1168 of file rtfgen.cpp.

1169 {
1170  DBG_RTF(t << "{\\comment (endIndexValue)}" << endl)
1171  if (hasBrief) t << ")";
1172  t << "} ";
1173  if (name)
1174  {
1175  t << "\\tab ";
1176  writeRTFReference(name);
1177  t << endl;
1178  }
1179  else
1180  {
1181  t << endl;
1182  }
1184  newParagraph();
1185 }
static QCString name
Definition: declinfo.cpp:673
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
void writeRTFReference(const char *label)
Definition: rtfgen.cpp:1890
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::endInlineHeader ( )
virtual

Implements OutputGenerator.

Definition at line 2899 of file rtfgen.cpp.

2900 {
2901  DBG_RTF(t << "{\\comment (endInlineHeader)}" << endl)
2902  endBold();
2903  t << "\\par";
2904  t << "}" << endl;
2905 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void endBold()
Definition: rtfgen.h:135
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endInlineMemberDoc ( )
virtual

Implements OutputGenerator.

Definition at line 2970 of file rtfgen.cpp.

2971 {
2972  DBG_RTF(t << "{\\comment (endInlineMemberDoc)}" << endl)
2973  t << "\\cell }{\\row }" << endl;
2974 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endInlineMemberName ( )
virtual

Implements OutputGenerator.

Definition at line 2958 of file rtfgen.cpp.

2959 {
2960  DBG_RTF(t << "{\\comment (endInlineMemberName)}" << endl)
2961  t << "\\cell }";
2962 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endInlineMemberType ( )
virtual

Implements OutputGenerator.

Definition at line 2946 of file rtfgen.cpp.

2947 {
2948  DBG_RTF(t << "{\\comment (endInlineMemberType)}" << endl)
2949  t << "\\cell }";
2950 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endItemList ( )
virtual

end bullet list

Implements BaseOutputDocInterface.

Definition at line 988 of file rtfgen.cpp.

989 {
990  newParagraph();
991  DBG_RTF(t << "{\\comment (endItemList level=" << m_listLevel << ")}" << endl)
992  t << "}";
995 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void decrementIndentLevel()
Definition: rtfgen.cpp:2045
int m_listLevel
Definition: rtfgen.h:283
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endItemListItem ( )
virtual

Writes a list item for a bullet or enumerated list: e.g. </li> in html

Implements BaseOutputDocInterface.

Definition at line 1036 of file rtfgen.cpp.

1037 {
1038  DBG_RTF(t << "{\\comment (endItemListItem)}" << endl)
1039 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endLabels ( )
virtual

Implements OutputGenerator.

Definition at line 2986 of file rtfgen.cpp.

2987 {
2988 }
void RTFGenerator::endMemberDeclaration ( const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 162 of file rtfgen.h.

162 {}
void RTFGenerator::endMemberDescription ( )
virtual

Implements OutputGenerator.

Definition at line 1615 of file rtfgen.cpp.

1616 {
1617  DBG_RTF(t << "{\\comment (endMemberDescription)}" << endl)
1618  endEmphasis();
1619  newParagraph();
1621  //t << "\\par";
1622  t << "}" << endl;
1623  //m_omitParagraph = TRUE;
1624 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void decrementIndentLevel()
Definition: rtfgen.cpp:2045
void endEmphasis()
Definition: rtfgen.h:133
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberDoc ( bool  )
virtual

Implements OutputGenerator.

Definition at line 1501 of file rtfgen.cpp.

1502 {
1503  DBG_RTF(t << "{\\comment endMemberDoc}" << endl)
1504  //const char *style = styleStack.pop();
1505  //printf("RTFGenerator::endMemberDoc() `%s'\n",style);
1506  //ASSERT(style==rtf_Style["Heading4"]->reference);
1507  endBold();
1508  t << "}" << endl;
1509  newParagraph();
1510 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void endBold()
Definition: rtfgen.h:135
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberDocList ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 111 of file rtfgen.h.

111 {}
void RTFGenerator::endMemberDocName ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 227 of file rtfgen.h.

227 {}
void RTFGenerator::endMemberDocPrefixItem ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 225 of file rtfgen.h.

225 {}
void RTFGenerator::endMemberDocSimple ( )
virtual

Implements OutputGenerator.

Definition at line 2934 of file rtfgen.cpp.

2935 {
2936  DBG_RTF(t << "{\\comment (endMemberDocSimple)}" << endl)
2937  t << "}" << endl;
2938 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberGroup ( bool  hasHeader)
virtual

Implements OutputGenerator.

Definition at line 2668 of file rtfgen.cpp.

2669 {
2670  DBG_RTF(t << "{\\comment endMemberGroup}" << endl)
2671  if (hasHeader) decrementIndentLevel();
2672  t << "}";
2673 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void decrementIndentLevel()
Definition: rtfgen.cpp:2045
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberGroupDocs ( )
virtual

Implements OutputGenerator.

Definition at line 2655 of file rtfgen.cpp.

2656 {
2657  DBG_RTF(t << "{\\comment endMemberGroupDocs}" << endl)
2658  endEmphasis();
2659  newParagraph();
2660 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void endEmphasis()
Definition: rtfgen.h:133
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberGroupHeader ( )
virtual

Implements OutputGenerator.

Definition at line 2642 of file rtfgen.cpp.

2643 {
2644  DBG_RTF(t << "{\\comment endMemberGroupHeader}" << endl)
2645  newParagraph();
2647 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const char * rtf_CList_DepthStyle()
Definition: rtfgen.cpp:2056
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberHeader ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 107 of file rtfgen.h.

107 { endGroupHeader(FALSE); }
const bool FALSE
Definition: qglobal.h:370
void endGroupHeader(int)
Definition: rtfgen.cpp:1474
void RTFGenerator::endMemberItem ( )
virtual

Implements OutputGenerator.

Definition at line 1863 of file rtfgen.cpp.

1864 {
1865  DBG_RTF(t <<"{\\comment endMemberItem }" << endl)
1866  newParagraph();
1867 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberList ( )
virtual

Implements OutputGenerator.

Definition at line 1934 of file rtfgen.cpp.

1935 {
1936  DBG_RTF(t << "{\\comment (endMemberList) }" << endl)
1937  t << "}" << endl;
1938 #ifdef DELETEDCODE
1939  if (!insideTabbing)
1940  t << "\\end{CompactItemize}" << endl;
1941 #endif
1942 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberSections ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 103 of file rtfgen.h.

103 {}
void RTFGenerator::endMemberSubtitle ( )
virtual

Implements OutputGenerator.

Definition at line 2149 of file rtfgen.cpp.

2150 {
2151  DBG_RTF(t << "{\\comment endMemberSubtitle}" << endl)
2152  newParagraph();
2153  t << "}" << endl;
2154 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endMemberTemplateParams ( const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 121 of file rtfgen.h.

121 {}
void RTFGenerator::endPageRef ( const char *  clname,
const char *  anchor 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1362 of file rtfgen.cpp.

1363 {
1364  QCString ref;
1365  if (clname)
1366  {
1367  ref+=clname;
1368  }
1369  if (anchor)
1370  {
1371  ref+='_';
1372  ref+=anchor;
1373  }
1374  writeRTFReference(ref);
1375  endEmphasis();
1376  t << ")";
1377 }
void writeRTFReference(const char *label)
Definition: rtfgen.cpp:1890
void endEmphasis()
Definition: rtfgen.h:133
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::endParagraph ( )
virtual

Ends a paragraph

Implements BaseOutputDocInterface.

Definition at line 2135 of file rtfgen.cpp.

2136 {
2137  DBG_RTF(t << "{\\comment endParagraph}" << endl)
2138  t << "}\\par" << endl;
2140 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endParameterList ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 233 of file rtfgen.h.

233 {}
void RTFGenerator::endParameterName ( bool  ,
bool  ,
bool   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 231 of file rtfgen.h.

231 {}
void RTFGenerator::endParameterType ( )
virtual

Implements OutputGenerator.

Definition at line 2740 of file rtfgen.cpp.

2741 {
2742  DBG_RTF(t << "{\\comment (endParameterType)}" << endl)
2743  t << " ";
2744 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endParamList ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 2722 of file rtfgen.cpp.

2723 {
2724  DBG_RTF(t << "{\\comment (endParamList)}" << endl)
2725  newParagraph();
2728  t << "}";
2729 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void decrementIndentLevel()
Definition: rtfgen.cpp:2045
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endProjectNumber ( )
virtual

Implements OutputGenerator.

Definition at line 357 of file rtfgen.cpp.

358 {
359  DBG_RTF(t <<"{\\comment endProjectNumber }" << endl)
360 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endQuickIndices ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 184 of file rtfgen.h.

184 {}
void RTFGenerator::endSection ( const char *  lab,
SectionInfo::SectionType   
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1690 of file rtfgen.cpp.

1691 {
1692  DBG_RTF(t << "{\\comment (endSection)}" << endl)
1693  // make bookmark
1695  newParagraph();
1696  writeAnchor(0,lab);
1697  t << "}";
1698 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
void writeAnchor(const char *fileName, const char *name)
Definition: rtfgen.cpp:1869
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endSimpleSect ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 2697 of file rtfgen.cpp.

2698 {
2699  DBG_RTF(t << "{\\comment (endSimpleSect)}" << endl)
2701  newParagraph();
2704  t << "}";
2705 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
void decrementIndentLevel()
Definition: rtfgen.cpp:2045
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::endSmall ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 157 of file rtfgen.h.

157 { t << "}"; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::endSubsection ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1196 of file rtfgen.cpp.

1197 {
1198  newParagraph();
1199  t << rtf_Style_Reset << endl;
1200 }
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endSubsubsection ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1211 of file rtfgen.cpp.

1212 {
1213  newParagraph();
1214  t << "}" << endl;
1215 }
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endTextBlock ( bool  )
virtual

Implements OutputGenerator.

Definition at line 2110 of file rtfgen.cpp.

2111 {
2112  newParagraph();
2113  DBG_RTF(t << "{\\comment endTextBlock}" << endl)
2114  t << "}" << endl;
2115  //m_omitParagraph = TRUE;
2116 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::endTextLink ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1315 of file rtfgen.cpp.

1316 {
1317  if (Config_getBool("RTF_HYPERLINKS"))
1318  {
1319  t << "}}}" << endl;
1320  }
1321 }
#define Config_getBool(val)
Definition: config.cpp:664
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::endTitle ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 62 of file rtfgen.h.

62 {}
void RTFGenerator::endTitleHead ( const char *  fileName,
const char *  name 
)
virtual

Implements OutputGenerator.

Definition at line 1419 of file rtfgen.cpp.

1420 {
1421  DBG_RTF(t <<"{\\comment endTitleHead}" << endl)
1422  t << "\\par " << rtf_Style_Reset << endl;
1423  if (name)
1424  {
1425  // make table of contents entry
1426  t << "{\\tc\\tcl2 \\v ";
1427  docify(name);
1428  t << "}" << endl;
1429 
1430  // make an index entry
1431  addIndexItem(name,0);
1432 
1433  //if (name)
1434  //{
1435  // writeAnchor(0,name);
1436  //}
1437  //
1438  //if (Config_getBool("RTF_HYPERLINKS") && fileName)
1439  //{
1440  writeAnchor(fileName,0);
1441  //}
1442  }
1443 }
static QCString name
Definition: declinfo.cpp:673
void docify(const char *text)
Definition: rtfgen.cpp:1742
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void writeAnchor(const char *fileName, const char *name)
Definition: rtfgen.cpp:1869
void addIndexItem(const char *, const char *)
Definition: rtfgen.cpp:1548
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::endTypewriter ( )
inlinevirtual

End a section of text displayed in typewriter style.

Implements BaseOutputDocInterface.

Definition at line 95 of file rtfgen.h.

95 { t << "}"; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::exceptionEntry ( const char *  prefix,
bool  closeBracket 
)
virtual

Implements OutputGenerator.

Definition at line 2746 of file rtfgen.cpp.

2747 {
2748  DBG_RTF(t << "{\\comment (exceptionEntry)}" << endl)
2749  if (prefix)
2750  t << " " << prefix;
2751  else if (closeBracket)
2752  t << ")";
2753  t << " ";
2754 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
OutputGenerator* RTFGenerator::get ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 42 of file rtfgen.h.

42 { return (o==RTF) ? this : 0; }
void RTFGenerator::incrementIndentLevel ( )
private

Definition at line 2035 of file rtfgen.cpp.

2036 {
2037  m_listLevel++;
2039  {
2040  err("Maximum indent level (%d) exceeded while generating RTF output!\n",rtf_maxIndentLevels);
2042  }
2043 }
int m_listLevel
Definition: rtfgen.h:283
void err(const char *fmt,...)
Definition: message.cpp:226
const int rtf_maxIndentLevels
Definition: rtfstyle.h:45
void RTFGenerator::init ( )
static

Definition at line 166 of file rtfgen.cpp.

167 {
168  QCString dir=Config_getString("RTF_OUTPUT");
169  QDir d(dir);
170  if (!d.exists() && !d.mkdir(dir))
171  {
172  err("Could not create output directory %s\n",dir.data());
173  exit(1);
174  }
175  rtf_Style.setAutoDelete(TRUE);
176 
177  // first duplicate strings of rtf_Style_Default
178  const struct Rtf_Style_Default* def = rtf_Style_Default;
179  while(def->reference != 0)
180  {
181  if (def->definition == 0)
182  err("Internal: rtf_Style_Default[%s] has no definition.\n", def->name);
183  StyleData* styleData = new StyleData(def->reference, def->definition);
184  rtf_Style.insert(def->name, styleData);
185  def++;
186  }
187 
188  // overwrite some (or all) definitions from file
189  QCString &rtfStyleSheetFile = Config_getString("RTF_STYLESHEET_FILE");
190  if (!rtfStyleSheetFile.isEmpty())
191  {
192  loadStylesheet(rtfStyleSheetFile, rtf_Style);
193  }
194 
195  // If user has defined an extension file, load its contents.
196  QCString &rtfExtensionsFile = Config_getString("RTF_EXTENSIONS_FILE");
197  if (!rtfExtensionsFile.isEmpty())
198  {
199  loadExtensions(rtfExtensionsFile);
200  }
201 
202  createSubDirs(d);
203 }
Traverses directory structures and contents in a platform-independent way.
Definition: qdir.h:52
bool isEmpty() const
Definition: qcstring.h:189
QDict< StyleData > rtf_Style
const char * name
Definition: rtfstyle.h:51
void loadStylesheet(const char *name, QDict< StyleData > &dict)
Definition: rtfstyle.cpp:428
const char * definition
Definition: rtfstyle.h:53
const char * data() const
Definition: qcstring.h:207
#define Config_getString(val)
Definition: config.cpp:660
void err(const char *fmt,...)
Definition: message.cpp:226
QCString dir
Definition: outputgen.h:489
Rtf_Style_Default rtf_Style_Default[]
Definition: rtfstyle.cpp:43
const char * reference
Definition: rtfstyle.h:52
void createSubDirs(QDir &d)
Definition: util.cpp:5458
void loadExtensions(const char *name)
Definition: rtfstyle.cpp:475
const bool TRUE
Definition: qglobal.h:371
void RTFGenerator::insertMemberAlign ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 122 of file rtfgen.h.

122 {}
bool RTFGenerator::isEnabled ( OutputType  o)
inlinevirtual

Implements OutputGenerator.

Definition at line 41 of file rtfgen.h.

41 { return (o==RTF && active); }
void RTFGenerator::lastIndexPage ( )
virtual

Implements OutputGenerator.

Definition at line 926 of file rtfgen.cpp.

927 {
928  DBG_RTF(t <<"{\\comment Beginning Body of RTF Document}\n")
929  // end page and setup for rest of document
930  t <<"\\sect \\sbkpage \\pgndec \\pgnrestart\n";
931  t <<"\\sect \\sectd \\sbknone\n";
932 
933  // set new footer with arabic numbers
934  t <<"{\\footer "<< rtf_Style["Footer"]->reference << "{\\chpgn}}\n";
935  //t << rtf_Style["Heading1"]->reference << "\n";
936 
937 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
std::void_t< T > n
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::lineBreak ( const char *  style = 0)
virtual

Implements BaseOutputDocInterface.

Definition at line 943 of file rtfgen.cpp.

944 {
945  DBG_RTF(t << "{\\comment (lineBreak)}" << endl)
946  t << "\\par" << endl;
948 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::newParagraph ( )

Definition at line 2118 of file rtfgen.cpp.

2119 {
2120  if (!m_omitParagraph)
2121  {
2122  DBG_RTF(t << "{\\comment (newParagraph)}" << endl)
2123  t << "\\par" << endl;
2124  }
2126 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
RTFGenerator& RTFGenerator::operator= ( const RTFGenerator )
private
bool RTFGenerator::preProcessFileInplace ( const char *  path,
const char *  name 
)
static

This is an API to a VERY brittle RTF preprocessor that combines nested RTF files. This version replaces the infile with the new file

Definition at line 2587 of file rtfgen.cpp.

2588 {
2589  QDir d(path);
2590  // store the original directory
2591  if (!d.exists())
2592  {
2593  err("Output dir %s does not exist!\n",path);
2594  return FALSE;
2595  }
2596  QCString oldDir = QDir::currentDirPath().utf8();
2597 
2598  // go to the html output directory (i.e. path)
2599  QDir::setCurrent(d.absPath());
2600  QDir thisDir;
2601 
2602  QCString combinedName = (QCString)path+"/combined.rtf";
2603  QCString mainRTFName = (QCString)path+"/"+name;
2604 
2605  QFile outf(combinedName);
2606  if (!outf.open(IO_WriteOnly))
2607  {
2608  err("Failed to open %s for writing!\n",combinedName.data());
2609  QDir::setCurrent(oldDir);
2610  return FALSE;
2611  }
2612  FTextStream outt(&outf);
2613 
2614  if (!preProcessFile(thisDir,mainRTFName,outt))
2615  {
2616  // it failed, remove the temp file
2617  outf.close();
2618  thisDir.remove(combinedName);
2619  QDir::setCurrent(oldDir);
2620  return FALSE;
2621  }
2622 
2623  // everything worked, move the files
2624  outf.close();
2625  thisDir.remove(mainRTFName);
2626  thisDir.rename(combinedName,mainRTFName);
2627 
2628  testRTFOutput(mainRTFName);
2629 
2630  QDir::setCurrent(oldDir);
2631  return TRUE;
2632 }
static QCString name
Definition: declinfo.cpp:673
Traverses directory structures and contents in a platform-independent way.
Definition: qdir.h:52
void testRTFOutput(const char *name)
Definition: rtfgen.cpp:2542
#define IO_WriteOnly
Definition: qiodevice.h:62
const bool FALSE
Definition: qglobal.h:370
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
static QString currentDirPath()
Definition: qdir_unix.cpp:141
const char * data() const
Definition: qcstring.h:207
void err(const char *fmt,...)
Definition: message.cpp:226
The QFile class is an I/O device that operates on files.
Definition: qfile.h:50
static bool preProcessFile(QDir &d, QCString &infName, FTextStream &t, bool bIncludeHeader=TRUE)
Definition: rtfgen.cpp:2364
QCString utf8() const
Definition: qstring.cpp:14507
const bool TRUE
Definition: qglobal.h:371
static bool setCurrent(const QString &path)
Definition: qdir_unix.cpp:134
const char * RTFGenerator::rtf_BList_DepthStyle ( )
private

Definition at line 2070 of file rtfgen.cpp.

2071 {
2072  QCString n=makeIndexName("ListBullet",m_listLevel);
2073  return rtf_Style[n]->reference;
2074 }
QDict< StyleData > rtf_Style
std::void_t< T > n
int m_listLevel
Definition: rtfgen.h:283
static QCString makeIndexName(const char *s, int i)
Definition: rtfgen.cpp:205
const char * RTFGenerator::rtf_CList_DepthStyle ( )
private

Definition at line 2056 of file rtfgen.cpp.

2057 {
2058  QCString n=makeIndexName("ListContinue",m_listLevel);
2059  return rtf_Style[n]->reference;
2060 }
QDict< StyleData > rtf_Style
std::void_t< T > n
int m_listLevel
Definition: rtfgen.h:283
static QCString makeIndexName(const char *s, int i)
Definition: rtfgen.cpp:205
const char * RTFGenerator::rtf_Code_DepthStyle ( )
private

Definition at line 2089 of file rtfgen.cpp.

2090 {
2091  QCString n=makeIndexName("CodeExample",m_listLevel);
2092  return rtf_Style[n]->reference;
2093 }
QDict< StyleData > rtf_Style
std::void_t< T > n
int m_listLevel
Definition: rtfgen.h:283
static QCString makeIndexName(const char *s, int i)
Definition: rtfgen.cpp:205
const char * RTFGenerator::rtf_DList_DepthStyle ( )
private

Definition at line 2083 of file rtfgen.cpp.

2084 {
2085  QCString n=makeIndexName("DescContinue",m_listLevel);
2086  return rtf_Style[n]->reference;
2087 }
QDict< StyleData > rtf_Style
std::void_t< T > n
int m_listLevel
Definition: rtfgen.h:283
static QCString makeIndexName(const char *s, int i)
Definition: rtfgen.cpp:205
const char * RTFGenerator::rtf_EList_DepthStyle ( )
private

Definition at line 2077 of file rtfgen.cpp.

2078 {
2079  QCString n=makeIndexName("ListEnum",m_listLevel);
2080  return rtf_Style[n]->reference;
2081 }
QDict< StyleData > rtf_Style
std::void_t< T > n
int m_listLevel
Definition: rtfgen.h:283
static QCString makeIndexName(const char *s, int i)
Definition: rtfgen.cpp:205
const char * RTFGenerator::rtf_LCList_DepthStyle ( )
private

Definition at line 2063 of file rtfgen.cpp.

2064 {
2065  QCString n=makeIndexName("LatexTOC",m_listLevel);
2066  return rtf_Style[n]->reference;
2067 }
QDict< StyleData > rtf_Style
std::void_t< T > n
int m_listLevel
Definition: rtfgen.h:283
static QCString makeIndexName(const char *s, int i)
Definition: rtfgen.cpp:205
void RTFGenerator::rtfwriteRuler_doubleline ( )
private

Definition at line 2764 of file rtfgen.cpp.

2765 {
2766  DBG_RTF(t << "{\\comment (rtfwriteRuler_doubleline)}" << endl)
2767  t << "{\\pard\\widctlpar\\brdrb\\brdrdb\\brdrw15\\brsp20 \\adjustright \\par}" << endl;
2768 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::rtfwriteRuler_emboss ( )
private

Definition at line 2770 of file rtfgen.cpp.

2771 {
2772  DBG_RTF(t << "{\\comment (rtfwriteRuler_emboss)}" << endl)
2773  t << "{\\pard\\widctlpar\\brdrb\\brdremboss\\brdrw15\\brsp20 \\adjustright \\par}" << endl;
2774 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::rtfwriteRuler_thick ( )
private

Definition at line 2776 of file rtfgen.cpp.

2777 {
2778  DBG_RTF(t << "{\\comment (rtfwriteRuler_thick)}" << endl)
2779  t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw75\\brsp20 \\adjustright \\par}" << endl;
2780 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::rtfwriteRuler_thin ( )
private

Definition at line 2782 of file rtfgen.cpp.

2783 {
2784  DBG_RTF(t << "{\\comment (rtfwriteRuler_thin)}" << endl)
2785  t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw5\\brsp20 \\adjustright \\par}" << endl;
2786 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::setCurrentDoc ( Definition ,
const char *  ,
bool   
)
inlinevirtual

Implements CodeOutputInterface.

Definition at line 262 of file rtfgen.h.

262 {}
void RTFGenerator::startAnonTypeScope ( int  )
inlinevirtual

Implements OutputGenerator.

Definition at line 116 of file rtfgen.h.

116 {}
void RTFGenerator::startBold ( )
inlinevirtual

Changes the text font to bold face. The bold section ends with endBold()

Implements BaseOutputDocInterface.

Definition at line 134 of file rtfgen.h.

134 { t << "{\\b "; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::startCallGraph ( )
virtual

Implements OutputGenerator.

Definition at line 2493 of file rtfgen.cpp.

2494 {
2495  DBG_RTF(t << "{\\comment (startCallGraph)}" << endl)
2496 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startCenter ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 154 of file rtfgen.h.

154 { t << "{\\qc" << endl; }
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startClassDiagram ( )
virtual

Implements OutputGenerator.

Definition at line 1830 of file rtfgen.cpp.

1831 {
1832  DBG_RTF(t <<"{\\comment startClassDiagram }" << endl)
1833 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startCodeFragment ( )
virtual

Starts a source code fragment. The fragment will be fed to the code parser (see code.h) for syntax highlighting and cross-referencing. The fragment ends by a call to endCodeFragment()

Implements BaseOutputDocInterface.

Definition at line 1897 of file rtfgen.cpp.

1898 {
1899  DBG_RTF(t << "{\\comment (startCodeFragment) }" << endl)
1900  t << "{" << endl;
1901  //newParagraph();
1902  t << rtf_Style_Reset << rtf_Code_DepthStyle();
1903  //styleStack.push(rtf_Style_CodeExample);
1904 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startCodeLine ( bool  )
inlinevirtual

Implements CodeOutputInterface.

Definition at line 130 of file rtfgen.h.

130 { col=0; }
void RTFGenerator::startConstraintDocs ( )
virtual

Implements OutputGenerator.

Definition at line 2860 of file rtfgen.cpp.

2861 {
2862  DBG_RTF(t << "{\\comment (startConstraintDocs)}" << endl)
2863 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startConstraintList ( const char *  header)
virtual

Implements OutputGenerator.

Definition at line 2819 of file rtfgen.cpp.

2820 {
2821  DBG_RTF(t << "{\\comment (startConstraintList)}" << endl)
2822  t << "{"; // ends at endConstraintList
2823  t << "{";
2824  startBold();
2825  newParagraph();
2826  docify(header);
2827  endBold();
2828  t << "}";
2829  newParagraph();
2830  incrementIndentLevel();
2831  t << rtf_Style_Reset << rtf_DList_DepthStyle();
2832 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startConstraintParam ( )
virtual

Implements OutputGenerator.

Definition at line 2834 of file rtfgen.cpp.

2835 {
2836  DBG_RTF(t << "{\\comment (startConstraintParam)}" << endl)
2837  startEmphasis();
2838 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void startEmphasis()
Definition: rtfgen.h:132
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startConstraintType ( )
virtual

Implements OutputGenerator.

Definition at line 2847 of file rtfgen.cpp.

2848 {
2849  DBG_RTF(t << "{\\comment (startConstraintType)}" << endl)
2850  startEmphasis();
2851 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void startEmphasis()
Definition: rtfgen.h:132
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startContents ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 190 of file rtfgen.h.

190 {}
void RTFGenerator::startDescForItem ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1645 of file rtfgen.cpp.

1646 {
1647  DBG_RTF(t << "{\\comment (startDescForItem) }" << endl)
1648 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDescItem ( )
virtual

Starts an item of a description list: e.g. <dt> in HTML.

Implements BaseOutputDocInterface.

Definition at line 1592 of file rtfgen.cpp.

1593 {
1594  newParagraph();
1595  DBG_RTF(t << "{\\comment (startDescItem)}" << endl)
1596  t << "{\\b ";
1597 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
static bool * b
Definition: config.cpp:1043
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDescList ( SectionTypes  )

Definition at line 1626 of file rtfgen.cpp.

1627 {
1628  DBG_RTF(t << "{\\comment (startDescList)}" << endl)
1629  t << "{"; // ends at endDescList
1630  t << "{"; // ends at endDescTitle
1631  startBold();
1632  newParagraph();
1633 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDescription ( )
virtual

Starts a description list: e.g. <dl> in HTML Items are surrounded by startDescItem() and endDescItem()

Implements BaseOutputDocInterface.

Definition at line 1578 of file rtfgen.cpp.

1579 {
1580  DBG_RTF(t << "{\\comment (startDescription)}" << endl)
1581  t << "{" << endl;
1582  t << rtf_Style_Reset << rtf_DList_DepthStyle();
1583 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDescTable ( const char *  title)
virtual

Implements BaseOutputDocInterface.

Definition at line 1984 of file rtfgen.cpp.

1985 {
1986  DBG_RTF(t << "{\\comment (startDescTable) }" << endl)
1988  startDescForItem();
1989  //t << "{" << endl;
1990  //incrementIndentLevel();
1991  //t << rtf_Style_Reset << rtf_CList_DepthStyle();
1992 }
void startDescForItem()
Definition: rtfgen.cpp:1645
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void startSimpleSect(SectionTypes, const char *, const char *, const char *)
Definition: rtfgen.cpp:2675
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDescTableData ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 2020 of file rtfgen.cpp.

2021 {
2022  DBG_RTF(t << "{\\comment (startDescTableData) }" << endl)
2024 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const bool FALSE
Definition: qglobal.h:370
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDescTableTitle ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 2004 of file rtfgen.cpp.

2005 {
2006  //t << rtf_BList_DepthStyle() << endl;
2007  DBG_RTF(t << "{\\comment (startDescTableTitle) }" << endl)
2008  startBold();
2009  startEmphasis();
2010 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void startEmphasis()
Definition: rtfgen.h:132
void startBold()
Definition: rtfgen.h:134
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDirDepGraph ( )
virtual

Implements OutputGenerator.

Definition at line 2516 of file rtfgen.cpp.

2517 {
2518  DBG_RTF(t << "{\\comment (startDirDepGraph)}" << endl)
2519 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDotGraph ( )
virtual

Implements OutputGenerator.

Definition at line 2438 of file rtfgen.cpp.

2439 {
2440  DBG_RTF(t << "{\\comment (startDotGraph)}" << endl)
2441 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startDoxyAnchor ( const char *  ,
const char *  ,
const char *  ,
const char *  ,
const char *   
)
virtual

Implements OutputGenerator.

Definition at line 1512 of file rtfgen.cpp.

1516 {
1517  DBG_RTF(t << "{\\comment startDoxyAnchor}" << endl)
1518 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startEmphasis ( )
inlinevirtual

Changes the text font to italic. The italic section ends with endEmphasis()

Implements BaseOutputDocInterface.

Definition at line 132 of file rtfgen.h.

132 { t << "{\\i "; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::startFile ( const char *  name,
const char *  manName,
const char *  title 
)
virtual

Implements OutputGenerator.

Definition at line 332 of file rtfgen.cpp.

333 {
334  //setEncoding(QCString().sprintf("CP%s",theTranslator->trRTFansicp()));
336  relPath = relativePathToRoot(fileName);
337 
338  if (fileName.right(4)!=".rtf" ) fileName+=".rtf";
339  startPlainFile(fileName);
341 }
static QCString name
Definition: declinfo.cpp:673
void beginRTFDocument()
Definition: rtfgen.cpp:212
QCString relativePathToRoot(const char *name)
Definition: util.cpp:5436
QCString relPath
Definition: rtfgen.h:286
void startPlainFile(const char *name)
Definition: outputgen.cpp:42
QCString right(uint len) const
Definition: qcstring.cpp:231
QCString fileName
Definition: outputgen.h:488
void RTFGenerator::startFontClass ( const char *  clsName)
inlinevirtual

Starts a block with a certain meaning. Used for syntax highlighting, which elements of the same type are rendered using the same 'font class'.

Parameters
clsNameThe category name.

Implements CodeOutputInterface.

Definition at line 258 of file rtfgen.h.

258 {}
void RTFGenerator::startGroupCollaboration ( )
virtual

Implements OutputGenerator.

Definition at line 2485 of file rtfgen.cpp.

2486 {
2487 }
void RTFGenerator::startGroupHeader ( int  extraIndent)
virtual

Implements OutputGenerator.

Definition at line 1454 of file rtfgen.cpp.

1455 {
1456  DBG_RTF(t <<"{\\comment startGroupHeader}" << endl)
1457  //newParagraph();
1458  t << rtf_Style_Reset;
1459  if (extraIndent==2)
1460  {
1461  t << rtf_Style["Heading5"]->reference;
1462  }
1463  else if (extraIndent==1)
1464  {
1465  t << rtf_Style["Heading4"]->reference;
1466  }
1467  else // extraIndent==0
1468  {
1469  t << rtf_Style["Heading3"]->reference;
1470  }
1471  t << endl;
1472 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QDict< StyleData > rtf_Style
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::startHeaderSection ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 104 of file rtfgen.h.

104 {}
void RTFGenerator::startHtmlLink ( const char *  url)
virtual

Starts a (link to an) URL found in the documentation.

Parameters
urlThe URL to link to.

Implements BaseOutputDocInterface.

Definition at line 1075 of file rtfgen.cpp.

1076 {
1077 
1078  if (Config_getBool("RTF_HYPERLINKS"))
1079  {
1080  t << "{\\field {\\*\\fldinst { HYPERLINK \"";
1081  t << url;
1082  t << "\" }{}";
1083  t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1084  }
1085  else
1086  {
1087  startTypewriter();
1088  }
1089 }
void startTypewriter()
Definition: rtfgen.h:94
#define Config_getBool(val)
Definition: config.cpp:664
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::startInclDepGraph ( )
virtual

Implements OutputGenerator.

Definition at line 2462 of file rtfgen.cpp.

2463 {
2464  DBG_RTF(t << "{\\comment (startInclDepGraph)}" << endl)
2465 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startIndent ( )
virtual

Implements OutputGenerator.

Definition at line 1563 of file rtfgen.cpp.

1564 {
1566  DBG_RTF(t << "{\\comment (startIndent) }" << endl)
1567  t << "{" << endl;
1568  t << rtf_Style_Reset << rtf_CList_DepthStyle() << endl;
1569 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void incrementIndentLevel()
Definition: rtfgen.cpp:2035
QTextStream & endl(QTextStream &s)
void RTFGenerator::startIndexItem ( const char *  ref,
const char *  file 
)
virtual

Implements OutputGenerator.

Definition at line 1041 of file rtfgen.cpp.

1042 {
1043  DBG_RTF(t << "{\\comment (startIndexItem)}" << endl)
1044 
1045  if (!m_omitParagraph)
1046  {
1047  t << "\\par" << endl;
1048  m_omitParagraph = TRUE;
1049  }
1050 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::startIndexKey ( )
virtual

Implements OutputGenerator.

Definition at line 1150 of file rtfgen.cpp.

1151 {
1152  DBG_RTF(t << "{\\comment (startIndexKey)}" << endl)
1153  t << "{\\b ";
1154 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
static bool * b
Definition: config.cpp:1043
QTextStream & endl(QTextStream &s)
void RTFGenerator::startIndexList ( )
virtual

Implements OutputGenerator.

Definition at line 955 of file rtfgen.cpp.

956 {
957  DBG_RTF(t << "{\\comment (startIndexList)}" << endl)
958  t << "{" << endl;
959  t << "\\par" << endl;
960  incrementIndentLevel();
961  t << rtf_Style_Reset << rtf_LCList_DepthStyle() << endl;
962  m_omitParagraph = TRUE;
963 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startIndexListItem ( )
virtual

Implements OutputGenerator.

Definition at line 2880 of file rtfgen.cpp.

2881 {
2882  DBG_RTF(t << "{\\comment (startIndexListItem)}" << endl)
2883 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startIndexSection ( IndexSections  is)
virtual

Implements OutputGenerator.

Definition at line 362 of file rtfgen.cpp.

363 {
364  //QCString paperName;
365 
366  m_listLevel = 0;
367 
368  switch (is)
369  {
370  case isTitlePageStart:
371  // basic RTFstart
372  // get readyfor author etc
373 
374  t << "{\\info \n";
375  t << "{\\title {\\comment ";
376  break;
377  case isTitlePageAuthor:
378  t << "}\n";
379  if (rtf_subject) t << "{\\subject " << rtf_subject << "}\n";
380  if (rtf_comments) t << "{\\comment " << rtf_comments << "}\n";
381  if (rtf_company) t << "{\\company " << rtf_company << "}\n";
382  if (rtf_author) t << "{\\author " << rtf_author << "}\n";
383  if (rtf_manager) t << "{\\manager " << rtf_manager << "}\n";
384  if (rtf_documentType) t << "{\\category " << rtf_documentType << "}\n";
385  if (rtf_keywords) t << "{\\keywords " << rtf_keywords << "}\n";
386  t << "{\\comment ";
387  break;
388  case isMainPage:
389  //Introduction
390  beginRTFChapter();
391  break;
392  //case isPackageIndex:
393  // //Package Index
394  // beginRTFChapter();
395  // break;
396  case isModuleIndex:
397  //Module Index
398  beginRTFChapter();
399  break;
400  case isDirIndex:
401  //Directory Index
402  beginRTFChapter();
403  break;
404  case isNamespaceIndex:
405  //Namespace Index
406  beginRTFChapter();
407  break;
409  //Hierarchical Index
410  DBG_RTF(t << "{\\comment start classhierarchy}\n")
411  beginRTFChapter();
412  break;
413  case isCompoundIndex:
414  //Annotated Compound Index
415  beginRTFChapter();
416  break;
417  case isFileIndex:
418  //Annotated File Index
419  beginRTFChapter();
420  break;
421  case isPageIndex:
422  //Related Page Index
423  beginRTFChapter();
424  break;
426  {
427  //Module Documentation
429  GroupDef *gd;
430  bool found=FALSE;
431  for (gli.toFirst();(gd=gli.current()) && !found;++gli)
432  {
433  if (!gd->isReference())
434  {
435  beginRTFChapter();
436  found=TRUE;
437  }
438  }
439  }
440  break;
441  case isDirDocumentation:
442  {
443  //Directory Documentation
445  DirDef *dd;
446  bool found=FALSE;
447  for (dli.toFirst();(dd=dli.current()) && !found;++dli)
448  {
449  if (dd->isLinkableInProject())
450  {
451  beginRTFChapter();
452  found=TRUE;
453  }
454  }
455  }
456  break;
458  {
459  // Namespace Documentation
461  NamespaceDef *nd;
462  bool found=FALSE;
463  for (nli.toFirst();(nd=nli.current()) && !found;++nli)
464  {
465  if (nd->isLinkableInProject())
466  {
467  beginRTFChapter();
468  found=TRUE;
469  }
470  }
471  }
472  break;
474  {
475  //Compound Documentation
477  ClassDef *cd=0;
478  bool found=FALSE;
479  for (cli.toFirst();(cd=cli.current()) && !found;++cli)
480  {
481  if (cd->isLinkableInProject() &&
482  cd->templateMaster()==0 &&
484  )
485  {
486  beginRTFChapter();
487  found=TRUE;
488  }
489  }
490  }
491  break;
492  case isFileDocumentation:
493  {
494  //File Documentation
495  bool isFirst=TRUE;
497  FileName *fn;
498  for (fnli.toFirst();(fn=fnli.current());++fnli)
499  {
500  FileNameIterator fni(*fn);
501  FileDef *fd;
502  for (;(fd=fni.current());++fni)
503  {
504  if (fd->isLinkableInProject())
505  {
506  if (isFirst)
507  {
508  beginRTFChapter();
509  isFirst=FALSE;
510  break;
511  }
512  }
513  }
514  }
515  }
516  break;
518  {
519  //Example Documentation
520  beginRTFChapter();
521  }
522  break;
523  case isPageDocumentation:
524  {
525  //Page Documentation
526  beginRTFChapter();
527  }
528  break;
530  {
531  t << "{\\tc \\v ";
532  }
533  break;
534  case isEndIndex:
535  break;
536  }
537 }
static GroupSDict * groupSDict
Definition: doxygen.h:119
QCString rtf_comments
Definition: rtfstyle.cpp:32
bool isLinkableInProject() const
Definition: classdef.cpp:2707
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QCString rtf_documentType
Definition: rtfstyle.cpp:37
void beginRTFChapter()
Definition: rtfgen.cpp:292
const bool FALSE
Definition: qglobal.h:370
static FileNameList * inputNameList
Definition: doxygen.h:109
QCString rtf_manager
Definition: rtfstyle.cpp:36
QCString rtf_subject
Definition: rtfstyle.cpp:31
virtual bool isReference() const
static NamespaceSDict * namespaceSDict
Definition: doxygen.h:120
ClassDef * templateMaster() const
Definition: classdef.cpp:4439
def cli(ctx)
Definition: main.py:7
Definition: sortdict.h:73
QAsciiDict< Entry > fn
bool isLinkableInProject() const
Definition: filedef.cpp:1877
static DirSDict * directories
Definition: doxygen.h:139
QCString rtf_author
Definition: rtfstyle.cpp:35
int m_listLevel
Definition: rtfgen.h:283
bool isEmbeddedInOuterScope() const
Definition: classdef.cpp:4630
Definition: dirdef.h:44
bool isLinkableInProject() const
Definition: dirdef.cpp:58
QCString rtf_keywords
Definition: rtfstyle.cpp:39
FTextStream t
Definition: outputgen.h:486
friend class Iterator
Definition: sortdict.h:289
bool isLinkableInProject() const
static ClassSDict * classSDict
Definition: doxygen.h:99
QCString rtf_company
Definition: rtfstyle.cpp:33
const bool TRUE
Definition: qglobal.h:371
void RTFGenerator::startIndexValue ( bool  hasBrief)
virtual

Implements OutputGenerator.

Definition at line 1161 of file rtfgen.cpp.

1162 {
1163  DBG_RTF(t << "{\\comment (startIndexValue)}" << endl)
1164  t << " ";
1165  if (hasBrief) t << "(";
1166 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::startInlineHeader ( )
virtual

Implements OutputGenerator.

Definition at line 2891 of file rtfgen.cpp.

2892 {
2893  DBG_RTF(t << "{\\comment (startInlineHeader)}" << endl)
2894  t << "{" << endl;
2895  t << rtf_Style_Reset << rtf_Style["Heading5"]->reference;
2896  startBold();
2897 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startInlineMemberDoc ( )
virtual

Implements OutputGenerator.

Definition at line 2964 of file rtfgen.cpp.

2965 {
2966  DBG_RTF(t << "{\\comment (startInlineMemberDoc)}" << endl)
2967  t << "{";
2968 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startInlineMemberName ( )
virtual

Implements OutputGenerator.

Definition at line 2952 of file rtfgen.cpp.

2953 {
2954  DBG_RTF(t << "{\\comment (startInlineMemberName)}" << endl)
2955  t << "{";
2956 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startInlineMemberType ( )
virtual

Implements OutputGenerator.

Definition at line 2940 of file rtfgen.cpp.

2941 {
2942  DBG_RTF(t << "{\\comment (startInlineMemberType)}" << endl)
2943  t << "{\\qr ";
2944 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startItemList ( )
virtual

start bullet list

Implements BaseOutputDocInterface.

Definition at line 978 of file rtfgen.cpp.

979 {
980  newParagraph();
981  DBG_RTF(t << "{\\comment (startItemList level=" << m_listLevel << ") }" << endl)
982  t << "{";
983  incrementIndentLevel();
984  rtf_listItemInfo[m_listLevel].isEnum = FALSE;
985 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
int m_listLevel
Definition: rtfgen.h:283
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::startItemListItem ( )
virtual

start enumeration list

end enumeration list

write bullet or enum item

Implements BaseOutputDocInterface.

Definition at line 1018 of file rtfgen.cpp.

1019 {
1020  DBG_RTF(t << "{\\comment (startItemListItem)}" << endl)
1021  newParagraph();
1022  t << rtf_Style_Reset;
1023  if (rtf_listItemInfo[m_listLevel].isEnum)
1024  {
1025  t << rtf_EList_DepthStyle() << endl;
1026  t << rtf_listItemInfo[m_listLevel].number << ".\\tab ";
1028  }
1029  else
1030  {
1031  t << rtf_BList_DepthStyle() << endl;
1032  }
1034 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const char * rtf_EList_DepthStyle()
Definition: rtfgen.cpp:2077
const char * rtf_BList_DepthStyle()
Definition: rtfgen.cpp:2070
RTFListItemInfo rtf_listItemInfo[rtf_maxIndentLevels]
Definition: rtfstyle.cpp:28
int m_listLevel
Definition: rtfgen.h:283
bool m_omitParagraph
Definition: rtfgen.h:284
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
if(!yymsg) yymsg
const bool TRUE
Definition: qglobal.h:371
QTextStream & endl(QTextStream &s)
void RTFGenerator::startLabels ( )
virtual

Implements OutputGenerator.

Definition at line 2976 of file rtfgen.cpp.

2977 {
2978 }
void RTFGenerator::startMemberDeclaration ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 161 of file rtfgen.h.

161 {}
void RTFGenerator::startMemberDescription ( const char *  ,
const char *   
)
virtual

Implements OutputGenerator.

Definition at line 1606 of file rtfgen.cpp.

1607 {
1608  DBG_RTF(t << "{\\comment (startMemberDescription)}" << endl)
1609  t << "{" << endl;
1610  incrementIndentLevel();
1611  t << rtf_Style_Reset << rtf_CList_DepthStyle();
1612  startEmphasis();
1613 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberDoc ( const char *  clname,
const char *  memname,
const char *  ,
const char *  ,
bool  showInline 
)
virtual

Implements OutputGenerator.

Definition at line 1481 of file rtfgen.cpp.

1486 {
1487  DBG_RTF(t << "{\\comment startMemberDoc}" << endl)
1488  if (memname && memname[0]!='@')
1489  {
1490  addIndexItem(memname,clname);
1491  addIndexItem(clname,memname);
1492  }
1493  t << rtf_Style_Reset << rtf_Style[showInline ? "Heading5" : "Heading4"]->reference;
1494  //styleStack.push(rtf_Style_Heading4);
1495  t << "{" << endl;
1496  //printf("RTFGenerator::startMemberDoc() `%s'\n",rtf_Style["Heading4"]->reference);
1497  startBold();
1498  t << endl;
1499 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QDict< StyleData > rtf_Style
void addIndexItem(const char *, const char *)
Definition: rtfgen.cpp:1548
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
void startBold()
Definition: rtfgen.h:134
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberDocList ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 110 of file rtfgen.h.

110 {}
void RTFGenerator::startMemberDocName ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 226 of file rtfgen.h.

226 {}
void RTFGenerator::startMemberDocPrefixItem ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 224 of file rtfgen.h.

224 {}
void RTFGenerator::startMemberDocSimple ( )
virtual

Implements OutputGenerator.

Definition at line 2907 of file rtfgen.cpp.

2908 {
2909  DBG_RTF(t << "{\\comment (startMemberDocSimple)}" << endl)
2910  t << "{\\par" << endl;
2911  t << "{" << rtf_Style["Heading5"]->reference << endl;
2912  t << theTranslator->trCompoundMembers() << ":\\par}" << endl;
2913  t << rtf_Style_Reset << rtf_DList_DepthStyle();
2914  t << "\\trowd \\trgaph108\\trleft426\\tblind426"
2915  "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
2916  "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
2917  "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
2918  "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
2919  "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
2920  "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 "<< endl;
2921  int i,columnPos[3] = { 25, 50, 100 };
2922  for (i=0;i<3;i++)
2923  {
2924  t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
2925  "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
2926  "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
2927  "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
2928  "\\cltxlrtb "
2929  "\\cellx" << (rtf_pageWidth*columnPos[i]/100) << endl;
2930  }
2931  t << "\\pard \\widctlpar\\intbl\\adjustright" << endl;
2932 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberGroup ( )
virtual

Implements OutputGenerator.

Definition at line 2662 of file rtfgen.cpp.

2663 {
2664  DBG_RTF(t << "{\\comment startMemberGroup}" << endl)
2666 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const char * rtf_BList_DepthStyle()
Definition: rtfgen.cpp:2070
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberGroupDocs ( )
virtual

Implements OutputGenerator.

Definition at line 2649 of file rtfgen.cpp.

2650 {
2651  DBG_RTF(t << "{\\comment startMemberGroupDocs}" << endl)
2652  startEmphasis();
2653 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void startEmphasis()
Definition: rtfgen.h:132
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberGroupHeader ( bool  hasHeader)
virtual

Implements OutputGenerator.

Definition at line 2634 of file rtfgen.cpp.

2635 {
2636  DBG_RTF(t << "{\\comment startMemberGroupHeader}" << endl)
2637  t << "{" << endl;
2638  if (hasHeader) incrementIndentLevel();
2639  t << rtf_Style_Reset << rtf_Style["GroupHeader"]->reference;
2640 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberHeader ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 106 of file rtfgen.h.

void startGroupHeader(int)
Definition: rtfgen.cpp:1454
const bool FALSE
Definition: qglobal.h:370
void RTFGenerator::startMemberItem ( const char *  ,
int  ,
const char *   
)
virtual

Implements OutputGenerator.

Definition at line 1857 of file rtfgen.cpp.

1858 {
1859  DBG_RTF(t <<"{\\comment startMemberItem }" << endl)
1860  t << rtf_Style_Reset << rtf_BList_DepthStyle() << endl; // set style to appropriate depth
1861 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
const char * rtf_BList_DepthStyle()
Definition: rtfgen.cpp:2070
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberList ( )
virtual

Implements OutputGenerator.

Definition at line 1923 of file rtfgen.cpp.

1924 {
1925  t << endl;
1926  DBG_RTF(t << "{\\comment (startMemberList) }" << endl)
1927  t << "{" << endl;
1928 #ifdef DELETEDCODE
1929  if (!insideTabbing)
1930  t << "\\begin{CompactItemize}" << endl;
1931 #endif
1932 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
decltype(auto) constexpr begin(T &&obj)
ADL-aware version of std::begin.
Definition: StdUtils.h:72
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberSections ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 102 of file rtfgen.h.

102 {}
void RTFGenerator::startMemberSubtitle ( )
virtual

Implements OutputGenerator.

Definition at line 2142 of file rtfgen.cpp.

2143 {
2144  DBG_RTF(t << "{\\comment startMemberSubtitle}" << endl)
2145  t << "{" << endl;
2146  t << rtf_Style_Reset << rtf_CList_DepthStyle() << endl;
2147 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startMemberTemplateParams ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 120 of file rtfgen.h.

120 {}
void RTFGenerator::startPageRef ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1356 of file rtfgen.cpp.

1357 {
1358  t << " (";
1359  startEmphasis();
1360 }
void startEmphasis()
Definition: rtfgen.h:132
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::startParagraph ( )
virtual

Starts a new paragraph

Starts a new paragraph

Implements BaseOutputDocInterface.

Definition at line 2128 of file rtfgen.cpp.

2129 {
2130  DBG_RTF(t << "{\\comment startParagraph}" << endl)
2131  newParagraph();
2132  t << "{" << endl;
2133 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
QTextStream & endl(QTextStream &s)
void RTFGenerator::startParameterList ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 232 of file rtfgen.h.

232 {}
void RTFGenerator::startParameterName ( bool  )
inlinevirtual

Implements OutputGenerator.

Definition at line 230 of file rtfgen.h.

230 {}
void RTFGenerator::startParameterType ( bool  first,
const char *  key 
)
virtual

Implements OutputGenerator.

Definition at line 2731 of file rtfgen.cpp.

2732 {
2733  DBG_RTF(t << "{\\comment (startParameterType)}" << endl)
2734  if (!first && key)
2735  {
2736  t << " " << key << " ";
2737  }
2738 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
def key(type, name=None)
Definition: graph.py:13
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::startParamList ( ParamListTypes  ,
const char *  title 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 2707 of file rtfgen.cpp.

2708 {
2709  DBG_RTF(t << "{\\comment (startParamList)}" << endl)
2710  t << "{"; // ends at endParamList
2711  t << "{"; // ends at endDescTitle
2712  startBold();
2713  newParagraph();
2714  docify(title);
2715  endBold();
2716  t << "}";
2717  newParagraph();
2718  incrementIndentLevel();
2719  t << rtf_Style_Reset << rtf_DList_DepthStyle();
2720 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startProjectNumber ( )
virtual

Implements OutputGenerator.

Definition at line 351 of file rtfgen.cpp.

352 {
353  DBG_RTF(t <<"{\\comment startProjectNumber }" << endl)
354  t << " ";
355 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startQuickIndices ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 183 of file rtfgen.h.

183 {}
void RTFGenerator::startSection ( const char *  ,
const char *  title,
SectionInfo::SectionType  type 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1665 of file rtfgen.cpp.

1666 {
1667  DBG_RTF(t << "{\\comment (startSection)}" << endl)
1668  t << "{";
1669  t<< rtf_Style_Reset;
1670  int num=4;
1671  switch(type)
1672  {
1673  case SectionInfo::Page: num=2; break;
1674  case SectionInfo::Section: num=3; break;
1675  case SectionInfo::Subsection: num=4; break;
1676  case SectionInfo::Subsubsection: num=4; break;
1677  case SectionInfo::Paragraph: num=4; break;
1678  default: ASSERT(0); break;
1679  }
1680  QCString heading;
1681  heading.sprintf("Heading%d",num);
1682  // set style
1683  t << rtf_Style[heading]->reference;
1684  // make table of contents entry
1685  t << "{\\tc\\tcl" << num << " \\v ";
1686  docify(title);
1687  t << "}" << endl;
1688 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
static struct @2 tcl
QTextStream & endl(QTextStream &s)
void RTFGenerator::startSimpleSect ( SectionTypes  ,
const char *  file,
const char *  anchor,
const char *  title 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 2675 of file rtfgen.cpp.

2676 {
2677  DBG_RTF(t << "{\\comment (startSimpleSect)}" << endl)
2678  t << "{"; // ends at endDescList
2679  t << "{"; // ends at endDescTitle
2680  startBold();
2681  newParagraph();
2682  if (file)
2683  {
2684  writeObjectLink(0,file,anchor,title);
2685  }
2686  else
2687  {
2688  docify(title);
2689  }
2690  endBold();
2691  t << "}";
2692  newParagraph();
2693  incrementIndentLevel();
2694  t << rtf_Style_Reset << rtf_DList_DepthStyle();
2695 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startSmall ( )
inlinevirtual

Implements BaseOutputDocInterface.

Definition at line 156 of file rtfgen.h.

156 { t << "{\\sub "; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::startSubsection ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1187 of file rtfgen.cpp.

1188 {
1189  //beginRTFSubSection();
1190  t <<"\n";
1191  DBG_RTF(t << "{\\comment Begin SubSection}\n")
1192  t << rtf_Style_Reset;
1193  t << rtf_Style["Heading3"]->reference << "\n";
1194 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QDict< StyleData > rtf_Style
std::void_t< T > n
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
const char * reference
Definition: rtfstyle.h:52
void RTFGenerator::startSubsubsection ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1202 of file rtfgen.cpp.

1203 {
1204  //beginRTFSubSubSection();
1205  t << "\n";
1206  DBG_RTF(t << "{\\comment Begin SubSubSection}\n")
1207  t << "{" << endl;
1208  t << rtf_Style_Reset << rtf_Style["Heading4"]->reference << "\n";
1209 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
std::void_t< T > n
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::startTextBlock ( bool  dense)
virtual

Implements OutputGenerator.

Definition at line 2095 of file rtfgen.cpp.

2096 {
2097  DBG_RTF(t << "{\\comment startTextBlock}" << endl)
2098  t << "{" << endl;
2099  t << rtf_Style_Reset;
2100  if (dense) // no spacing between "paragraphs"
2101  {
2102  t << rtf_Style["DenseText"]->reference;
2103  }
2104  else // some spacing
2105  {
2106  t << rtf_Style["BodyText"]->reference;
2107  }
2108 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::startTextLink ( const char *  f,
const char *  anchor 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1293 of file rtfgen.cpp.

1294 {
1295  if (Config_getBool("RTF_HYPERLINKS"))
1296  {
1297  QCString ref;
1298  if (f)
1299  {
1300  ref+=f;
1301  }
1302  if (anchor)
1303  {
1304  ref+='_';
1305  ref+=anchor;
1306  }
1307 
1308  t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1309  t << rtfFormatBmkStr(ref);
1310  t << "\" }{}";
1311  t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1312  }
1313 }
#define Config_getBool(val)
Definition: config.cpp:664
FTextStream t
Definition: outputgen.h:486
QCString rtfFormatBmkStr(const char *name)
Definition: util.cpp:6744
void RTFGenerator::startTitle ( )
virtual

Implements BaseOutputDocInterface.

Definition at line 1445 of file rtfgen.cpp.

1446 {
1447  DBG_RTF(t <<"{\\comment startTitle}" << endl)
1448  if (Config_getBool("COMPACT_RTF"))
1449  beginRTFSection();
1450  else
1451  beginRTFChapter();
1452 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void beginRTFChapter()
Definition: rtfgen.cpp:292
#define Config_getBool(val)
Definition: config.cpp:664
void beginRTFSection()
Definition: rtfgen.cpp:312
FTextStream t
Definition: outputgen.h:486
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::startTitleHead ( const char *  )
virtual

Implements OutputGenerator.

Definition at line 1411 of file rtfgen.cpp.

1412 {
1413  DBG_RTF(t <<"{\\comment startTitleHead}" << endl)
1414 
1415  // beginRTFSection();
1416  t << rtf_Style_Reset << rtf_Style["Heading2"]->reference << endl;
1417 }
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QDict< StyleData > rtf_Style
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
const char * reference
Definition: rtfstyle.h:52
QTextStream & endl(QTextStream &s)
void RTFGenerator::startTypewriter ( )
inlinevirtual

Changes the text font to fixed size. The section ends with endTypewriter()

Implements BaseOutputDocInterface.

Definition at line 94 of file rtfgen.h.

94 { t << "{\\f2 "; }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::writeAnchor ( const char *  fileName,
const char *  name 
)
virtual

Implements BaseOutputDocInterface.

Definition at line 1869 of file rtfgen.cpp.

1870 {
1871  QCString anchor;
1872  if (fileName)
1873  {
1874  anchor+=fileName;
1875  }
1876  if (fileName && name)
1877  {
1878  anchor+='_';
1879  }
1880  if (name)
1881  {
1882  anchor+=name;
1883  }
1884 
1885  DBG_RTF(t <<"{\\comment writeAnchor (" << anchor << ")}" << endl)
1886  t << "{\\bkmkstart " << rtfFormatBmkStr(anchor) << "}" << endl;
1887  t << "{\\bkmkend " << rtfFormatBmkStr(anchor) << "}" << endl;
1888 }
static QCString name
Definition: declinfo.cpp:673
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
QCString fileName
Definition: outputgen.h:488
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::writeChar ( char  c)
virtual

Writes a single ASCII character to the output. Converts characters that have a special meaning.

Implements BaseOutputDocInterface.

Definition at line 1822 of file rtfgen.cpp.

1823 {
1824  char cs[2];
1825  cs[0]=c;
1826  cs[1]=0;
1827  docify(cs);
1828 }
void docify(const char *text)
Definition: rtfgen.cpp:1742
const char * cs
void RTFGenerator::writeCodeAnchor ( const char *  name)
inlinevirtual

Write an anchor to a source listing.

Parameters
nameThe name of the anchor.

Implements CodeOutputInterface.

Definition at line 261 of file rtfgen.h.

261 {}
void RTFGenerator::writeCodeLink ( const char *  ref,
const char *  file,
const char *  anchor,
const char *  name,
const char *  tooltip 
)
virtual

Writes a link to an object in a code fragment.

Parameters
refIf this is non-zero, the object is to be found in an external documentation file.
fileThe file in which the object is located.
anchorThe anchor uniquely identifying the object within the file.
nameThe text to display as a placeholder for the link.
tooltipThe tooltip to display when the mouse is on the link.

Implements CodeOutputInterface.

Definition at line 1379 of file rtfgen.cpp.

1382 {
1383  if (!ref && Config_getBool("RTF_HYPERLINKS"))
1384  {
1385  QCString refName;
1386  if (f)
1387  {
1388  refName+=f;
1389  }
1390  if (anchor)
1391  {
1392  refName+='_';
1393  refName+=anchor;
1394  }
1395 
1396  t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1397  t << rtfFormatBmkStr(refName);
1398  t << "\" }{}";
1399  t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1400 
1401  codify(name);
1402 
1403  t << "}}}" << endl;
1404  }
1405  else
1406  {
1407  codify(name);
1408  }
1409 }
static QCString name
Definition: declinfo.cpp:673
#define Config_getBool(val)
Definition: config.cpp:664
FTextStream t
Definition: outputgen.h:486
void codify(const char *text)
Definition: rtfgen.cpp:1787
QCString rtfFormatBmkStr(const char *name)
Definition: util.cpp:6744
QTextStream & endl(QTextStream &s)
void RTFGenerator::writeDoc ( DocNode n,
Definition ctx,
MemberDef  
)
virtual

Implements OutputGenerator.

Definition at line 2756 of file rtfgen.cpp.

2757 {
2758  RTFDocVisitor *visitor = new RTFDocVisitor(t,*this,ctx?ctx->getDefFileExtension():QCString(""));
2759  n->accept(visitor);
2760  delete visitor;
2762 }
QCString getDefFileExtension() const
Concrete visitor implementation for RTF output.
Definition: rtfdocvisitor.h:30
bool m_omitParagraph
Definition: rtfgen.h:284
FTextStream t
Definition: outputgen.h:486
virtual void accept(DocVisitor *v)=0
const bool TRUE
Definition: qglobal.h:371
void RTFGenerator::writeEndAnnoItem ( const char *  name)
virtual

Implements OutputGenerator.

Definition at line 1134 of file rtfgen.cpp.

1135 {
1136  DBG_RTF(t << "{\\comment (writeEndAnnoItem)}" << endl)
1137  if (name)
1138  {
1139  t << "\\tab ";
1140  writeRTFReference(name);
1141  t << endl;
1142  }
1143  else
1144  {
1145  t << endl;
1146  }
1147  newParagraph();
1148 }
static QCString name
Definition: declinfo.cpp:673
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
void writeRTFReference(const char *label)
Definition: rtfgen.cpp:1890
FTextStream t
Definition: outputgen.h:486
void newParagraph()
Definition: rtfgen.cpp:2118
if(!yymsg) yymsg
QTextStream & endl(QTextStream &s)
void RTFGenerator::writeExtensionsFile ( QFile file)
static

Definition at line 113 of file rtfgen.cpp.

114 {
115  FTextStream t(&file);
116  t << "# Generated by doxygen " << versionString << "\n\n";
117  t << "# This file describes extensions used for generating RTF output.\n";
118  t << "# All text after a hash (#) is considered a comment and will be ignored.\n";
119  t << "# Remove a hash to activate a line.\n\n";
120 
121  t << "# Overrides the project title.\n";
122 
123  t << "#Title = \n\n";
124 
125  t << "# Name of the company that produced this document.\n";
126  t << "#Company = \n\n";
127 
128  t << "# Filename of a company or project logo.\n";
129  t << "#LogoFilename = \n\n";
130 
131  t << "# Author of the document.\n";
132  t << "#Author = \n\n";
133 
134  t << "# Type of document (e.g. Design Specification, User Manual, etc.).\n";
135  t << "#DocumentType = \n\n";
136 
137  t << "# Document tracking number.\n";
138  t << "#DocumentId = \n\n";
139 
140  t << "# Name of the author's manager.\n";
141  t << "# This field is not displayed in the document itself, but it is \n";
142  t << "# available in the information block of the rtf file. In Microsoft \n";
143  t << "# Word, it is available under File:Properties.\n";
144  t << "#Manager = \n\n";
145 
146  t << "# Subject of the document.\n";
147  t << "# This field is not displayed in the document itself, but it is \n";
148  t << "# available in the information block of the rtf file. In Microsoft \n";
149  t << "# Word, it is available under File:Properties.\n";
150  t << "#Subject = \n\n";
151 
152  t << "# Comments regarding the document.\n";
153  t << "# This field is not displayed in the document itself, but it is \n";
154  t << "# available in the information block of the rtf file. In Microsoft \n";
155  t << "# Word, it is available under File:Properties.\n";
156  t << "#Comments = \n\n";
157 
158  t << "# Keywords associated with the document.\n";
159  t << "# This field is not displayed in the document itself, but it is \n";
160  t << "# available in the information block of the rtf file. In Microsoft \n";
161  t << "# Word, it is available under File:Properties.\n";
162  t << "#Keywords = \n\n";
163 }
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
char versionString[]
Definition: version.cpp:1
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::writeFooter ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 48 of file rtfgen.h.

48 {}
void RTFGenerator::writeGraphicalHierarchy ( const DotGfxHierarchyTable )
inlinevirtual

Implements OutputGenerator.

Definition at line 211 of file rtfgen.h.

211 {}
void RTFGenerator::writeInheritedSectionTitle ( const char *  ,
const char *  ,
const char *  ,
const char *  ,
const char *  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 163 of file rtfgen.h.

164  {}
void RTFGenerator::writeLabel ( const char *  l,
bool  isLast 
)
virtual

Implements OutputGenerator.

Definition at line 2980 of file rtfgen.cpp.

2981 {
2982  t << "{\\f2 [" << l << "]}";
2983  if (!isLast) t << ", ";
2984 }
static QStrList * l
Definition: config.cpp:1044
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::writeLatexSpacing ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 146 of file rtfgen.h.

146 {};//{ t << "\\hspace{0.3cm}"; }
void RTFGenerator::writeLineNumber ( const char *  ref,
const char *  file,
const char *  anchor,
int  lineNumber 
)
inlinevirtual

Writes the line number of a source listing

Parameters
refExternal reference (when imported from a tag file)
fileThe file part of the URL pointing to the docs.
anchorThe anchor part of the URL pointing to the docs.
lineNumberThe line number to write

Implements CodeOutputInterface.

Definition at line 129 of file rtfgen.h.

129 { t << QString("%1").arg(l,5) << " "; }
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition: qstring.h:350
static QStrList * l
Definition: config.cpp:1044
QString arg(long a, int fieldwidth=0, int base=10) const
Definition: qstring.cpp:12593
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::writeLogo ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 187 of file rtfgen.h.

187 {}
void RTFGenerator::writeNavigationPath ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 186 of file rtfgen.h.

186 {}
void RTFGenerator::writeNonBreakableSpace ( int  )
virtual

Implements BaseOutputDocInterface.

Definition at line 1917 of file rtfgen.cpp.

1918 {
1919  t << "\\~ ";
1920 }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::writeObjectLink ( const char *  ref,
const char *  file,
const char *  anchor,
const char *  name 
)
virtual

Writes a link to an object in the documentation.

Parameters
refIf this is non-zero, the object is to be found in an external documentation file.
fileThe file in which the object is located.
anchorThe anchor uniquely identifying the object within the file.
nameThe text to display as a placeholder for the link.

Implements BaseOutputDocInterface.

Definition at line 1323 of file rtfgen.cpp.

1325 {
1326  if (!ref && Config_getBool("RTF_HYPERLINKS"))
1327  {
1328  QCString refName;
1329  if (f)
1330  {
1331  refName+=f;
1332  }
1333  if (anchor)
1334  {
1335  refName+='_';
1336  refName+=anchor;
1337  }
1338 
1339  t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1340  t << rtfFormatBmkStr(refName);
1341  t << "\" }{}";
1342  t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1343 
1344  docify(text);
1345 
1346  t << "}}}" << endl;
1347  }
1348  else
1349  {
1350  startBold();
1351  docify(text);
1352  endBold();
1353  }
1354 }
void docify(const char *text)
Definition: rtfgen.cpp:1742
void endBold()
Definition: rtfgen.h:135
#define Config_getBool(val)
Definition: config.cpp:664
void startBold()
Definition: rtfgen.h:134
FTextStream t
Definition: outputgen.h:486
QCString rtfFormatBmkStr(const char *name)
Definition: util.cpp:6744
QTextStream & endl(QTextStream &s)
void RTFGenerator::writePageLink ( const char *  name,
bool  first 
)
virtual

Implements OutputGenerator.

Definition at line 918 of file rtfgen.cpp.

919 {
920  if (first) t << "\\par " << rtf_Style_Reset << endl;
921  t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
922  t << name;
923  t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
924 }
static QCString name
Definition: declinfo.cpp:673
char rtf_Style_Reset[]
Definition: rtfstyle.cpp:41
FTextStream t
Definition: outputgen.h:486
QTextStream & endl(QTextStream &s)
void RTFGenerator::writeQuickLinks ( bool  ,
HighlightedItem  ,
const char *   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 188 of file rtfgen.h.

188 {}
void RTFGenerator::writeRTFReference ( const char *  label)
private

Definition at line 1890 of file rtfgen.cpp.

1891 {
1892  t << "{\\field\\fldedit {\\*\\fldinst PAGEREF ";
1893  t << rtfFormatBmkStr(label);
1894  t << " \\\\*MERGEFORMAT}{\\fldrslt pagenum}}";
1895 }
FTextStream t
Definition: outputgen.h:486
QCString rtfFormatBmkStr(const char *name)
Definition: util.cpp:6744
void RTFGenerator::writeRuler ( )
inlinevirtual

Writes a horizontal ruler to the output

Implements BaseOutputDocInterface.

Definition at line 124 of file rtfgen.h.

124 { rtfwriteRuler_thin(); }
void rtfwriteRuler_thin()
Definition: rtfgen.cpp:2782
void RTFGenerator::writeSearchInfo ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 47 of file rtfgen.h.

47 {}
void RTFGenerator::writeSplitBar ( const char *  )
inlinevirtual

Implements OutputGenerator.

Definition at line 185 of file rtfgen.h.

185 {}
void RTFGenerator::writeStartAnnoItem ( const char *  type,
const char *  file,
const char *  path,
const char *  name 
)
virtual

Implements OutputGenerator.

Definition at line 1110 of file rtfgen.cpp.

1112 {
1113  DBG_RTF(t << "{\\comment (writeStartAnnoItem)}" << endl)
1114  t << "{\\b ";
1115  if (path) docify(path);
1116  if (f && Config_getBool("RTF_HYPERLINKS"))
1117  {
1118  t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1119  t << rtfFormatBmkStr(f);
1120  t << "\" }{}";
1121  t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1122 
1123  docify(name);
1124 
1125  t << "}}}" << endl;
1126  }
1127  else
1128  {
1129  docify(name);
1130  }
1131  t << "} ";
1132 }
static QCString name
Definition: declinfo.cpp:673
void docify(const char *text)
Definition: rtfgen.cpp:1742
#define DBG_RTF(x)
Definition: rtfgen.cpp:48
static QStrList * l
Definition: config.cpp:1044
FTextStream t
Definition: outputgen.h:486
static bool * b
Definition: config.cpp:1043
QCString rtfFormatBmkStr(const char *name)
Definition: util.cpp:6744
QTextStream & endl(QTextStream &s)
void RTFGenerator::writeString ( const char *  text)
virtual

Writes an ASCII string to the output, without converting special characters.

Implements BaseOutputDocInterface.

Definition at line 950 of file rtfgen.cpp.

951 {
952  t << text;
953 }
FTextStream t
Definition: outputgen.h:486
void RTFGenerator::writeStyleInfo ( int  part)
virtual

Implements OutputGenerator.

Definition at line 939 of file rtfgen.cpp.

940 {
941 }
void RTFGenerator::writeStyleSheetFile ( QFile f)
static

Definition at line 96 of file rtfgen.cpp.

97 {
98  FTextStream t(&file);
99  t << "# Generated by doxygen " << versionString << "\n\n";
100  t << "# This file describes styles used for generating RTF output.\n";
101  t << "# All text after a hash (#) is considered a comment and will be ignored.\n";
102  t << "# Remove a hash to activate a line.\n\n";
103 
104  int i;
105  for ( i=0 ; rtf_Style_Default[i].reference!=0 ; i++ )
106  {
107  t << "# " << rtf_Style_Default[i].name << " = "
110  }
111 }
const char * name
Definition: rtfstyle.h:51
Simplified and optimized version of QTextStream.
Definition: ftextstream.h:11
char versionString[]
Definition: version.cpp:1
const char * definition
Definition: rtfstyle.h:53
QFile * file
Definition: outputgen.h:487
FTextStream t
Definition: outputgen.h:486
Rtf_Style_Default rtf_Style_Default[]
Definition: rtfstyle.cpp:43
const char * reference
Definition: rtfstyle.h:52
QTextStream & endl(QTextStream &s)
void RTFGenerator::writeSummaryLink ( const char *  ,
const char *  ,
const char *  ,
bool   
)
inlinevirtual

Implements OutputGenerator.

Definition at line 189 of file rtfgen.h.

189 {}
void RTFGenerator::writeSynopsis ( )
inlinevirtual

Implements OutputGenerator.

Definition at line 178 of file rtfgen.h.

178 {}
void RTFGenerator::writeTooltip ( const char *  id,
const DocLinkInfo docInfo,
const char *  decl,
const char *  desc,
const SourceLinkInfo defInfo,
const SourceLinkInfo declInfo 
)
inlinevirtual

Writes a tool tip definition

Parameters
idunique identifier for the tooltip
docInfoInfo about the symbol's documentation.
declfull declaration of the symbol (for functions)
descbrief description for the symbol
defInfoInfo about the symbol's definition in the source code
declInfoInfo about the symbol's declaration in the source code

Implements CodeOutputInterface.

Definition at line 87 of file rtfgen.h.

89  {}

Member Data Documentation

int RTFGenerator::col
private

Definition at line 279 of file rtfgen.h.

bool RTFGenerator::m_bstartedBody
private

Definition at line 282 of file rtfgen.h.

int RTFGenerator::m_listLevel
private

Definition at line 283 of file rtfgen.h.

int RTFGenerator::m_numCols
private

Definition at line 285 of file rtfgen.h.

bool RTFGenerator::m_omitParagraph
private

Definition at line 284 of file rtfgen.h.

bool RTFGenerator::m_prettyCode
private

Definition at line 280 of file rtfgen.h.

QCString RTFGenerator::relPath
private

Definition at line 286 of file rtfgen.h.


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