Doxygen
Loading...
Searching...
No Matches
RTFGenerator Class Reference

Generator for RTF output. More...

#include <src/rtfgen.h>

+ Inheritance diagram for RTFGenerator:
+ Collaboration diagram for RTFGenerator:

Classes

struct  RTFListItemInfo
 

Public Member Functions

 RTFGenerator ()
 
 RTFGenerator (const RTFGenerator &)
 
RTFGeneratoroperator= (const RTFGenerator &)
 
 RTFGenerator (RTFGenerator &&)=delete
 
RTFGeneratoroperator= (RTFGenerator &&)=delete
 
 ~RTFGenerator ()
 
void setRelativePath (const QCString &path)
 
void setSourceFileName (const QCString &sourceFileName)
 
void clearBuffer ()
 
OutputType type () const override
 
std::unique_ptr< OutputGenIntfclone () override
 
void addCodeGen (OutputCodeList &list) override
 
void cleanup () override
 
void writeDoc (const IDocNodeAST *ast, const Definition *, const MemberDef *, int) override
 
void startFile (const QCString &name, const QCString &manName, const QCString &title, int id, int hierarchyLevel) override
 
void endFile () override
 
void writeSearchInfo () override
 
void writeFooter (const QCString &) override
 
void startPageDoc (const QCString &) override
 
void endPageDoc () override
 
void startIndexSection (IndexSection) override
 
void endIndexSection (IndexSection) override
 
void writePageLink (const QCString &, bool) override
 
void startProjectNumber () override
 
void endProjectNumber () override
 
void writeStyleInfo (int part) override
 
void startTitleHead (const QCString &) override
 
void endTitleHead (const QCString &, const QCString &name) override
 
void startParagraph (const QCString &classDef) override
 
void endParagraph () override
 
void writeString (const QCString &text) override
 
void startIndexListItem () override
 
void endIndexListItem () override
 
void startIndexList () override
 
void endIndexList () override
 
void startIndexKey () override
 
void endIndexKey () override
 
void startIndexValue (bool) override
 
void endIndexValue (const QCString &, bool) override
 
void startItemList () override
 
void endItemList () override
 
void startIndexItem (const QCString &ref, const QCString &file) override
 
void endIndexItem (const QCString &ref, const QCString &file) override
 
void docify (const QCString &text) override
 
void writeObjectLink (const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name) override
 
void startTextLink (const QCString &f, const QCString &anchor) override
 
void endTextLink () override
 
void startTypewriter () override
 
void endTypewriter () override
 
void startGroupHeader (int) override
 
void endGroupHeader (int) override
 
void startItemListItem () override
 
void endItemListItem () override
 
void startMemberSections () override
 
void endMemberSections () override
 
void startHeaderSection () override
 
void endHeaderSection () override
 
void startMemberHeader (const QCString &, int) override
 
void endMemberHeader () override
 
void startMemberSubtitle () override
 
void endMemberSubtitle () override
 
void startMemberDocList () override
 
void endMemberDocList () override
 
void startMemberList () override
 
void endMemberList () override
 
void startInlineHeader () override
 
void endInlineHeader () override
 
void startAnonTypeScope (int) override
 
void endAnonTypeScope (int) override
 
void startMemberItem (const QCString &, MemberItemType, const QCString &) override
 
void endMemberItem (MemberItemType) override
 
void startMemberTemplateParams () override
 
void endMemberTemplateParams (const QCString &, const QCString &) override
 
void startCompoundTemplateParams () override
 
void endCompoundTemplateParams () override
 
void insertMemberAlign (bool) override
 
void insertMemberAlignLeft (MemberItemType, bool) override
 
void writeRuler () override
 
void writeAnchor (const QCString &fileName, const QCString &name) override
 
void startEmphasis () override
 
void endEmphasis () override
 
void startBold () override
 
void endBold () override
 
void lineBreak (const QCString &style=QCString()) override
 
void startMemberDoc (const QCString &, const QCString &, const QCString &, const QCString &, int, int, bool) override
 
void endMemberDoc (bool) override
 
void startDoxyAnchor (const QCString &, const QCString &, const QCString &, const QCString &, const QCString &) override
 
void endDoxyAnchor (const QCString &, const QCString &) override
 
void addLabel (const QCString &, const QCString &) override
 
void writeChar (char c) override
 
void writeLatexSpacing () override
 
void writeStartAnnoItem (const QCString &type, const QCString &file, const QCString &path, const QCString &name) override
 
void startCenter () override
 
void endCenter () override
 
void startSmall () override
 
void endSmall () override
 
void startMemberDescription (const QCString &, const QCString &, bool) override
 
void endMemberDescription () override
 
void startMemberDeclaration () override
 
void endMemberDeclaration (const QCString &, const QCString &) override
 
void writeInheritedSectionTitle (const QCString &, const QCString &, const QCString &, const QCString &, const QCString &, const QCString &) override
 
void startExamples () override
 
void endExamples () override
 
void startDescForItem () override
 
void endDescForItem () override
 
void startSection (const QCString &, const QCString &, SectionType) override
 
void endSection (const QCString &, SectionType) override
 
void addIndexItem (const QCString &, const QCString &) override
 
void startIndent () override
 
void endIndent () override
 
void writeSynopsis () override
 
void startClassDiagram () override
 
void endClassDiagram (const ClassDiagram &, const QCString &filename, const QCString &name) override
 
void startPageRef () override
 
void endPageRef (const QCString &, const QCString &) override
 
void startQuickIndices () override
 
void endQuickIndices () override
 
void writeSplitBar (const QCString &) override
 
void writeNavigationPath (const QCString &) override
 
void writeLogo () override
 
void writeQuickLinks (HighlightedItem, const QCString &) override
 
void writeSummaryLink (const QCString &, const QCString &, const QCString &, bool) override
 
void startContents () override
 
void endContents () override
 
void writeNonBreakableSpace (int) override
 
void startDescTable (const QCString &title) override
 
void endDescTable () override
 
void startDescTableRow () override
 
void endDescTableRow () override
 
void startDescTableTitle () override
 
void endDescTableTitle () override
 
void startDescTableData () override
 
void endDescTableData () override
 
void startDotGraph () override
 
void endDotGraph (DotClassGraph &) override
 
void startInclDepGraph () override
 
void endInclDepGraph (DotInclDepGraph &) override
 
void startGroupCollaboration () override
 
void endGroupCollaboration (DotGroupCollaboration &g) override
 
void startCallGraph () override
 
void endCallGraph (DotCallGraph &) override
 
void startDirDepGraph () override
 
void endDirDepGraph (DotDirDeps &g) override
 
void writeGraphicalHierarchy (DotGfxHierarchyTable &) override
 
void startMemberGroupHeader (bool) override
 
void endMemberGroupHeader () override
 
void startMemberGroupDocs () override
 
void endMemberGroupDocs () override
 
void startMemberGroup () override
 
void endMemberGroup (bool) override
 
void startTextBlock (bool dense) override
 
void endTextBlock (bool) override
 
void lastIndexPage () override
 
void startMemberDocPrefixItem () override
 
void endMemberDocPrefixItem () override
 
void startMemberDocName (bool) override
 
void endMemberDocName () override
 
void startParameterType (bool, const QCString &) override
 
void endParameterType () override
 
void startParameterName (bool) override
 
void endParameterName () override
 
void startParameterExtra () override
 
void endParameterExtra (bool, bool, bool) override
 
void startParameterDefVal (const char *s) override
 
void endParameterDefVal () override
 
void startParameterList (bool) override
 
void endParameterList () override
 
void exceptionEntry (const QCString &, bool) override
 
void startConstraintList (const QCString &) override
 
void startConstraintParam () override
 
void endConstraintParam () override
 
void startConstraintType () override
 
void endConstraintType () override
 
void startConstraintDocs () override
 
void endConstraintDocs () override
 
void endConstraintList () override
 
void startMemberDocSimple (bool) override
 
void endMemberDocSimple (bool) override
 
void startInlineMemberType () override
 
void endInlineMemberType () override
 
void startInlineMemberName () override
 
void endInlineMemberName () override
 
void startInlineMemberDoc () override
 
void endInlineMemberDoc () override
 
void startLabels () override
 
void writeLabel (const QCString &l, bool isLast) override
 
void endLabels () override
 
void writeLocalToc (const SectionRefs &, const LocalToc &) override
 
void startPlainFile (const QCString &name) override
 
void endPlainFile () override
 
- Public Member Functions inherited from OutputGenerator
 OutputGenerator ()
 
 OutputGenerator (const QCString &dir)
 
virtual ~OutputGenerator ()=default
 
QCString dir () const
 
QCString fileName () const
 
void startPlainFile (const QCString &name)
 
void endPlainFile ()
 

Static Public Member Functions

static void init ()
 
static void writeStyleSheetFile (TextStream &t)
 
static void writeExtensionsFile (TextStream &t)
 
static bool preProcessFileInplace (const QCString &path, const QCString &name)
 This is an API to a VERY brittle RTF preprocessor that combines nested RTF files.
 

Private Member Functions

QCString rtf_BList_DepthStyle ()
 
QCString rtf_CList_DepthStyle ()
 
QCString rtf_EList_DepthStyle ()
 
QCString rtf_LCList_DepthStyle ()
 
QCString rtf_DList_DepthStyle ()
 
void beginRTFDocument ()
 
void beginRTFChapter ()
 
void beginRTFSection ()
 
void rtfwriteRuler_doubleline ()
 
void rtfwriteRuler_emboss ()
 
void rtfwriteRuler_thick ()
 
void rtfwriteRuler_thin ()
 
void writeRTFReference (const QCString &label)
 
void newParagraph ()
 
int indentLevel () const
 
void incIndentLevel ()
 
void decIndentLevel ()
 

Private Attributes

bool m_bstartedBody = false
 
bool m_omitParagraph = false
 
int m_numCols = 0
 
QCString m_relPath
 
int m_hierarchyLevel = 0
 
int m_indentLevel = 0
 
std::array< RTFListItemInfo, maxIndentLevelsm_listItemInfo
 
std::unique_ptr< OutputCodeListm_codeList
 
RTFCodeGeneratorm_codeGen
 

Static Private Attributes

static const int maxIndentLevels = 13
 

Additional Inherited Members

- Public Types inherited from OutputGenerator
enum class  ParamListTypes { Param , RetVal , Exception }
 
enum class  MemberItemType { Normal , AnonymousStart , AnonymousEnd , Templated }
 
- Protected Attributes inherited from OutputGenerator
TextStream m_t
 
QCString m_dir
 

Detailed Description

Generator for RTF output.

Definition at line 72 of file rtfgen.h.

Constructor & Destructor Documentation

◆ RTFGenerator() [1/3]

RTFGenerator::RTFGenerator ( )

Definition at line 293 of file rtfgen.cpp.

294 : OutputGenerator(Config_getString(RTF_OUTPUT))
295 , m_codeList(std::make_unique<OutputCodeList>())
296{
298}
TextStream m_t
Definition outputgen.h:112
Generator for RTF code fragments.
Definition rtfgen.h:28
RTFCodeGenerator * m_codeGen
Definition rtfgen.h:333
std::unique_ptr< OutputCodeList > m_codeList
Definition rtfgen.h:332
#define Config_getString(name)
Definition config.h:32

References m_codeGen, m_codeList, and OutputGenerator::m_t.

◆ RTFGenerator() [2/3]

RTFGenerator::RTFGenerator ( const RTFGenerator & og)

Definition at line 300 of file rtfgen.cpp.

301{
302 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
307 m_numCols = og.m_numCols;
308 m_relPath = og.m_relPath;
311}
Abstract interface for output generators.
Definition outputgen.h:123
QCString m_dir
Definition outputgen.h:113
void setTextStream(TextStream *t)
Definition rtfgen.h:31
int m_indentLevel
Definition rtfgen.h:324
int m_numCols
Definition rtfgen.h:318
std::array< RTFListItemInfo, maxIndentLevels > m_listItemInfo
Definition rtfgen.h:331
bool m_bstartedBody
Definition rtfgen.h:316
QCString m_relPath
Definition rtfgen.h:319
bool m_omitParagraph
Definition rtfgen.h:317

References m_bstartedBody, m_codeGen, m_codeList, m_indentLevel, m_listItemInfo, m_numCols, m_omitParagraph, m_relPath, OutputGenerator::m_t, RTF, and RTFCodeGenerator::setTextStream().

◆ RTFGenerator() [3/3]

RTFGenerator::RTFGenerator ( RTFGenerator && )
delete

◆ ~RTFGenerator()

RTFGenerator::~RTFGenerator ( )
default

Member Function Documentation

◆ addCodeGen()

void RTFGenerator::addCodeGen ( OutputCodeList & list)
overridevirtual

Implements OutputGenIntf.

Definition at line 333 of file rtfgen.cpp.

334{
336}
Helper template class which defers all methods of OutputCodeIntf to an existing object of the templat...
Definition outputlist.h:46
void add(OutputCodeIntfPtr &&p)
Definition outputlist.h:183

References OutputCodeList::add(), and m_codeGen.

◆ addIndexItem()

void RTFGenerator::addIndexItem ( const QCString & s1,
const QCString & s2 )
overridevirtual

Implements OutputGenIntf.

Definition at line 1701 of file rtfgen.cpp.

1702{
1703 if (!s1.isEmpty())
1704 {
1705 m_t << "{\\xe \\v ";
1706 docify(s1);
1707 if (!s2.isEmpty())
1708 {
1709 m_t << "\\:";
1710 docify(s2);
1711 }
1712 m_t << "}\n";
1713 }
1714}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:143
void docify(const QCString &text) override
Definition rtfgen.cpp:1798

References docify(), QCString::isEmpty(), and OutputGenerator::m_t.

Referenced by endTitleHead(), and startMemberDoc().

◆ addLabel()

void RTFGenerator::addLabel ( const QCString & ,
const QCString &  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1695 of file rtfgen.cpp.

1696{
1697 DBG_RTF(m_t << "{\\comment addLabel}\n")
1698}
#define DBG_RTF(x)

References DBG_RTF, and OutputGenerator::m_t.

◆ beginRTFChapter()

void RTFGenerator::beginRTFChapter ( )
private

Definition at line 617 of file rtfgen.cpp.

618{
619 m_t << "\n";
620 DBG_RTF(m_t << "{\\comment BeginRTFChapter}\n")
622
623 // if we are compact, no extra page breaks...
624 if (Config_getBool(COMPACT_RTF))
625 {
626 // m_t << "\\sect\\sectd\\sbknone\n";
627 m_t << "\\sect\\sbknone\n";
629 }
630 else
631 m_t << "\\sect\\sbkpage\n";
632 //m_t << "\\sect\\sectd\\sbkpage\n";
633
634 m_t << rtf_Style["Heading1"].reference() << "\n";
635}
void rtfwriteRuler_thick()
Definition rtfgen.cpp:2581
#define Config_getBool(name)
Definition config.h:33
StyleDataMap rtf_Style
Definition rtfstyle.cpp:362
char rtf_Style_Reset[]
Definition rtfstyle.cpp:49
if(strLen >35 &&floatingIndex >30 &&autoBreak)
Definition util.cpp:948

References Config_getBool, DBG_RTF, OutputGenerator::m_t, rtf_Style, rtf_Style_Reset, and rtfwriteRuler_thick().

Referenced by endIndexSection(), and startIndexSection().

◆ beginRTFDocument()

void RTFGenerator::beginRTFDocument ( )
private

Definition at line 480 of file rtfgen.cpp.

481{
482 /* all the included RTF files should begin with the
483 * same header
484 */
485 m_t << "{\\rtf1\\ansi\\ansicpg" << theTranslator->trRTFansicp();
486 m_t << "\\uc1 \\deff0\\deflang1033\\deflangfe1033\n";
487
488 DBG_RTF(m_t << "{\\comment Beginning font list}\n")
489 m_t << "{\\fonttbl ";
490 m_t << "{\\f0\\froman\\fcharset" << theTranslator->trRTFCharSet();
491 m_t << "\\fprq2{\\*\\panose 02020603050405020304}Times New Roman;}\n";
492 m_t << "{\\f1\\fswiss\\fcharset" << theTranslator->trRTFCharSet();
493 m_t << "\\fprq2{\\*\\panose 020b0604020202020204}Arial;}\n";
494 m_t << "{\\f2\\fmodern\\fcharset" << theTranslator->trRTFCharSet();
495 m_t << "\\fprq1{\\*\\panose 02070309020205020404}Courier New;}\n";
496 m_t << "{\\f3\\froman\\fcharset2\\fprq2{\\*\\panose 05050102010706020507}Symbol;}\n";
497 m_t << "}\n";
498 DBG_RTF(m_t << "{\\comment begin colors}\n")
499 m_t << "{\\colortbl;";
500 m_t << "\\red0\\green0\\blue0;";
501 m_t << "\\red0\\green0\\blue255;";
502 m_t << "\\red0\\green255\\blue255;";
503 m_t << "\\red0\\green255\\blue0;";
504 m_t << "\\red255\\green0\\blue255;";
505 m_t << "\\red255\\green0\\blue0;";
506 m_t << "\\red255\\green255\\blue0;";
507 m_t << "\\red255\\green255\\blue255;";
508 m_t << "\\red0\\green0\\blue128;";
509 m_t << "\\red0\\green128\\blue128;";
510 m_t << "\\red0\\green128\\blue0;";
511 m_t << "\\red128\\green0\\blue128;";
512 m_t << "\\red128\\green0\\blue0;";
513 m_t << "\\red128\\green128\\blue0;";
514 m_t << "\\red128\\green128\\blue128;";
515 m_t << "\\red192\\green192\\blue192;";
516
517 // code highlighting colors. Note order is important see also RTFGenerator::startFontClass
518 m_t << "\\red0\\green128\\blue0;"; // keyword = index 17
519 m_t << "\\red96\\green64\\blue32;"; // keywordtype
520 m_t << "\\rede0\\green128\\blue0;"; // keywordflow
521 m_t << "\\red128\\green0\\blue0;"; // comment
522 m_t << "\\red128\\green96\\blue32;"; // preprocessor
523 m_t << "\\red0\\green32\\blue128;"; // stringliteral
524 m_t << "\\red0\\green128\\blue128;"; // charliteral
525 m_t << "\\red255\\green0\\blue255;"; // vhdldigit
526 m_t << "\\red0\\green0\\blue0;"; // vhdlchar
527 m_t << "\\red112\\green0\\blue112;"; // vhdlkeyword
528 m_t << "\\red255\\green0\\blue0;"; // vhdllogic
529
530 m_t << "}\n";
531
532 DBG_RTF(m_t << "{\\comment Beginning style list}\n")
533 m_t << "{\\stylesheet\n";
534 m_t << "{\\widctlpar\\adjustright \\fs20\\cgrid \\snext0 Normal;}\n";
535
536 // set the paper dimensions according to PAPER_TYPE
537 auto paperType = Config_getEnum(PAPER_TYPE);
538 m_t << "{";
539 switch (paperType)
540 {
541 // width & height values are inches * 1440
542 case PAPER_TYPE_t::a4: m_t << "\\paperw11900\\paperh16840"; break;
543 case PAPER_TYPE_t::letter: m_t << "\\paperw12240\\paperh15840"; break;
544 case PAPER_TYPE_t::legal: m_t << "\\paperw12240\\paperh20160"; break;
545 case PAPER_TYPE_t::executive: m_t << "\\paperw10440\\paperh15120"; break;
546 }
547 m_t << "\\margl1800\\margr1800\\margt1440\\margb1440\\gutter0\\ltrsect}\n";
548
549 // sort styles ascending by \s-number via an intermediate QArray
550 unsigned maxIndex = 0;
551 for (const auto &[name,data] : rtf_Style)
552 {
553 uint32_t index = data.index();
554 if (index > maxIndex) maxIndex = index;
555 }
556 std::vector<const StyleData*> array(maxIndex + 1, nullptr);
557 ASSERT(maxIndex < array.size());
558
559 for (const auto &[name,data] : rtf_Style)
560 {
561 uint32_t index = data.index();
562 if (array[index] != nullptr)
563 {
564 msg("Style '%s' redefines \\s%d.\n", name.c_str(), index);
565 }
566 array[index] = &data;
567 }
568
569 // write array elements
570 size_t size = array.size();
571 for(size_t i = 0; i < size; i++)
572 {
573 const StyleData *pStyle = array[i];
574 if (pStyle)
575 {
576 m_t << "{" << pStyle->reference() << pStyle->definition() << ";}\n";
577 }
578 }
579
580 m_t << "}\n";
581
582 // place to write rtf_Table_Default
583 int id = -1;
584 m_t << "{\\*\\listtable" << "\n";
585 for (int i=0 ; rtf_Table_Default[i].definition ; i++ )
586 {
587 if (id != rtf_Table_Default[i].id)
588 {
589 if (id != -1)
590 {
591 m_t << "\\listid" << id << "}" << "\n";
592 }
593 id = rtf_Table_Default[i].id;
594 m_t << "{\\list\\listtemplateid" << rtf_Table_Default[i].id << "\n";
595 }
596 m_t << "{ " << rtf_Table_Default[i].definition << " }" << "\n";
597 }
598 m_t << "\\listid" << id << "}" << "\n";
599 m_t << "}" <<"\n";
600 m_t << "{\\listoverridetable" <<"\n";
601 id = -1;
602 for (int i=0 ; rtf_Table_Default[i].definition ; i++ )
603 {
604 if (id != rtf_Table_Default[i].id)
605 {
606 id = rtf_Table_Default[i].id;
607 m_t << "{\\listoverride\\listid" << id << "\\listoverridecount0\\ls" << id << "}" << "\n";
608 }
609 }
610 m_t << "}" << "\n";
611
612 // this comment is needed for postprocessing!
613 m_t << "{\\comment begin body}\n";
614
615}
virtual QCString trRTFansicp()=0
DirIterator begin(DirIterator it) noexcept
Definition dir.cpp:170
Translator * theTranslator
Definition language.cpp:71
const char * comment

References ASSERT, Config_getEnum, DBG_RTF, Rtf_Table_Default::definition, StyleData::definition(), Rtf_Table_Default::id, OutputGenerator::m_t, msg(), StyleData::reference(), rtf_Style, rtf_Table_Default, theTranslator, Translator::trRTFansicp(), and Translator::trRTFCharSet().

Referenced by startFile().

◆ beginRTFSection()

void RTFGenerator::beginRTFSection ( )
private

Definition at line 637 of file rtfgen.cpp.

638{
639 m_t << "\n";
640 DBG_RTF(m_t << "{\\comment BeginRTFSection}\n")
642
643 // if we are compact, no extra page breaks...
644 if (Config_getBool(COMPACT_RTF))
645 {
646 m_t << "\\sect\\sbknone\n";
648 }
649 else
650 {
651 m_t << "\\sect\\sbkpage\n";
652 }
653 int level = 2 + m_hierarchyLevel;
654
655 m_t << rtf_Style[QCString().sprintf("Heading%d", level).str()].reference() << "\n";
656}
This is an alternative implementation of QCString.
Definition qcstring.h:94
const std::string & str() const
Definition qcstring.h:517
QCString & sprintf(const char *format,...)
Definition qcstring.cpp:29
int m_hierarchyLevel
Definition rtfgen.h:320
void rtfwriteRuler_emboss()
Definition rtfgen.cpp:2575

References Config_getBool, DBG_RTF, m_hierarchyLevel, OutputGenerator::m_t, rtf_Style, rtf_Style_Reset, rtfwriteRuler_emboss(), QCString::sprintf(), and QCString::str().

Referenced by endIndexSection().

◆ cleanup()

void RTFGenerator::cleanup ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 473 of file rtfgen.cpp.

474{
475 QCString dname = Config_getString(RTF_OUTPUT);
476 Dir d(dname.str());
477 clearSubDirs(d);
478}
Class representing a directory in the file system.
Definition dir.h:75
void clearSubDirs(const Dir &d)
Definition util.cpp:3960

References clearSubDirs(), Config_getString, and QCString::str().

◆ clearBuffer()

void RTFGenerator::clearBuffer ( )

◆ clone()

std::unique_ptr< OutputGenIntf > RTFGenerator::clone ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 95 of file rtfgen.h.

95{ return std::make_unique<RTFGenerator>(*this); }

◆ decIndentLevel()

void RTFGenerator::decIndentLevel ( )
private

Definition at line 1987 of file rtfgen.cpp.

1988{
1989 m_indentLevel--;
1990 if (m_indentLevel<0)
1991 {
1992 err("Negative indent level while generating RTF output!\n");
1993 m_indentLevel=0;
1994 }
1996}
void setIndentLevel(int level)
Definition rtfgen.h:61
#define err(fmt,...)
Definition message.h:84

References err, m_codeGen, m_indentLevel, and RTFCodeGenerator::setIndentLevel().

Referenced by endConstraintList(), endExamples(), endIndent(), endIndexList(), endItemList(), endMemberDescription(), and endMemberGroup().

◆ docify()

void RTFGenerator::docify ( const QCString & text)
overridevirtual

Implements OutputGenIntf.

Definition at line 1798 of file rtfgen.cpp.

1799{
1800 if (str.isEmpty()) return;
1801 m_t << docifyToString(str);
1803}
static QCString docifyToString(const QCString &str)
Definition mangen.cpp:79
#define FALSE
Definition qcstring.h:34

References docifyToString(), FALSE, QCString::isEmpty(), m_omitParagraph, and OutputGenerator::m_t.

Referenced by addIndexItem(), endTitleHead(), startConstraintList(), startDescTable(), startExamples(), startParameterDefVal(), startSection(), writeChar(), and writeStartAnnoItem().

◆ endAnonTypeScope()

void RTFGenerator::endAnonTypeScope ( int )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 158 of file rtfgen.h.

158{}

◆ endBold()

void RTFGenerator::endBold ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 174 of file rtfgen.h.

174{ m_t << "}"; }

References OutputGenerator::m_t.

Referenced by endInlineHeader(), endMemberDoc(), startConstraintList(), and startExamples().

◆ endCallGraph()

void RTFGenerator::endCallGraph ( DotCallGraph & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2311 of file rtfgen.cpp.

2312{
2313 newParagraph();
2314
2316
2317 // display the file
2318 m_t << "{\n";
2319 m_t << rtf_Style_Reset << "\n";
2320 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2321 QCString imgExt = getDotImageExtension();
2322 m_t << fn << "." << imgExt;
2323 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2324 m_t << "}\n";
2325 DBG_RTF(m_t << "{\\comment (endCallGraph)}\n")
2326}
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)
QCString dir() const
Definition outputgen.cpp:52
QCString fileName() const
Definition outputgen.cpp:57
void newParagraph()
Definition rtfgen.cpp:2055
@ EOF_Rtf
Definition dotgraph.h:30
@ GOF_BITMAP
Definition dotgraph.h:29
QCString getDotImageExtension()
Definition util.cpp:6639

References DBG_RTF, OutputGenerator::dir(), EOF_Rtf, FALSE, OutputGenerator::fileName(), getDotImageExtension(), GOF_BITMAP, m_relPath, OutputGenerator::m_t, newParagraph(), rtf_Style_Reset, and DotCallGraph::writeGraph().

◆ endCenter()

void RTFGenerator::endCenter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 186 of file rtfgen.h.

186{ m_t << "}"; }

References OutputGenerator::m_t.

◆ endClassDiagram()

void RTFGenerator::endClassDiagram ( const ClassDiagram & d,
const QCString & filename,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 1818 of file rtfgen.cpp.

1820{
1821 newParagraph();
1822
1823 // create a png file
1825
1826 // display the file
1827 m_t << "{\n";
1828 m_t << rtf_Style_Reset << "\n";
1829 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
1830 m_t << fileName << ".png\"";
1831 m_t << " \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
1832 m_t << "}\n";
1833}
void writeImage(TextStream &t, const QCString &path, const QCString &relPath, const QCString &file, bool generateMap=true) const
Definition diagram.cpp:1364

References OutputGenerator::dir(), FALSE, OutputGenerator::fileName(), m_relPath, OutputGenerator::m_t, newParagraph(), rtf_Style_Reset, and ClassDiagram::writeImage().

◆ endCompoundTemplateParams()

void RTFGenerator::endCompoundTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1466 of file rtfgen.cpp.

1467{
1468 newParagraph();
1469 m_t << "}\n";
1470}

References OutputGenerator::m_t, and newParagraph().

◆ endConstraintDocs()

void RTFGenerator::endConstraintDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2639 of file rtfgen.cpp.

2640{
2641 DBG_RTF(m_t << "{\\comment (endConstraintDocs)}\n")
2642 newParagraph();
2643}

References DBG_RTF, OutputGenerator::m_t, and newParagraph().

◆ endConstraintList()

void RTFGenerator::endConstraintList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2645 of file rtfgen.cpp.

2646{
2647 DBG_RTF(m_t << "{\\comment (endConstraintList)}\n")
2648 newParagraph();
2651 m_t << "}";
2652}
void decIndentLevel()
Definition rtfgen.cpp:1987
#define TRUE
Definition qcstring.h:37

References DBG_RTF, decIndentLevel(), m_omitParagraph, OutputGenerator::m_t, newParagraph(), and TRUE.

◆ endConstraintParam()

void RTFGenerator::endConstraintParam ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2614 of file rtfgen.cpp.

2615{
2616 DBG_RTF(m_t << "{\\comment (endConstraintParam)}\n")
2617 endEmphasis();
2618 m_t << " : ";
2619}
void endEmphasis() override
Definition rtfgen.h:172

References DBG_RTF, endEmphasis(), and OutputGenerator::m_t.

◆ endConstraintType()

void RTFGenerator::endConstraintType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2627 of file rtfgen.cpp.

2628{
2629 DBG_RTF(m_t << "{\\comment (endConstraintType)}\n")
2630 endEmphasis();
2631 m_t << " ";
2632}

References DBG_RTF, endEmphasis(), and OutputGenerator::m_t.

◆ endContents()

void RTFGenerator::endContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 218 of file rtfgen.h.

218{}

◆ endDescForItem()

void RTFGenerator::endDescForItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1755 of file rtfgen.cpp.

1756{
1757 DBG_RTF(m_t << "{\\comment (endDescForItem) }\n")
1758}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTable()

void RTFGenerator::endDescTable ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1931 of file rtfgen.cpp.

1932{
1933 DBG_RTF(m_t << "{\\comment (endDescTable)}\n")
1934 m_t << "}\n";
1935}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTableData()

void RTFGenerator::endDescTableData ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1963 of file rtfgen.cpp.

1964{
1965 DBG_RTF(m_t << "{\\comment (endDescTableData) }\n")
1966 m_t << "\\cell }{\\row }\n";
1967}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTableRow()

void RTFGenerator::endDescTableRow ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1941 of file rtfgen.cpp.

1942{
1943}

◆ endDescTableTitle()

void RTFGenerator::endDescTableTitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1951 of file rtfgen.cpp.

1952{
1953 DBG_RTF(m_t << "{\\comment (endDescTableTitle) }\n")
1954 m_t << "\\cell }";
1955}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDirDepGraph()

void RTFGenerator::endDirDepGraph ( DotDirDeps & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2333 of file rtfgen.cpp.

2334{
2335 newParagraph();
2336
2338
2339 // display the file
2340 m_t << "{\n";
2341 m_t << rtf_Style_Reset << "\n";
2342 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2343 QCString imgExt = getDotImageExtension();
2344 m_t << fn << "." << imgExt;
2345 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2346 m_t << "}\n";
2347 DBG_RTF(m_t << "{\\comment (endDirDepGraph)}\n")
2348}
QCString writeGraph(TextStream &out, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1, bool linkRelations=TRUE)

References DBG_RTF, OutputGenerator::dir(), EOF_Rtf, FALSE, OutputGenerator::fileName(), getDotImageExtension(), GOF_BITMAP, m_relPath, OutputGenerator::m_t, newParagraph(), rtf_Style_Reset, and DotDirDeps::writeGraph().

◆ endDotGraph()

void RTFGenerator::endDotGraph ( DotClassGraph & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2258 of file rtfgen.cpp.

2259{
2260 newParagraph();
2261
2263
2264 // display the file
2265 m_t << "{\n";
2266 m_t << rtf_Style_Reset << "\n";
2267 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2268 QCString imgExt = getDotImageExtension();
2269 m_t << fn << "." << imgExt;
2270 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2271 m_t << "}\n";
2272 newParagraph();
2273 DBG_RTF(m_t << "{\\comment (endDotGraph)}\n")
2274}
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool TBRank=TRUE, bool imageMap=TRUE, int graphId=-1)

References DBG_RTF, OutputGenerator::dir(), EOF_Rtf, FALSE, OutputGenerator::fileName(), getDotImageExtension(), GOF_BITMAP, m_relPath, OutputGenerator::m_t, newParagraph(), rtf_Style_Reset, TRUE, and DotClassGraph::writeGraph().

◆ endDoxyAnchor()

void RTFGenerator::endDoxyAnchor ( const QCString & fName,
const QCString & anchor )
overridevirtual

Implements OutputGenIntf.

Definition at line 1673 of file rtfgen.cpp.

1674{
1675 QCString ref;
1676 if (!fName.isEmpty())
1677 {
1678 ref+=stripPath(fName);
1679 }
1680 if (!anchor.isEmpty())
1681 {
1682 ref+='_';
1683 ref+=anchor;
1684 }
1685
1686 DBG_RTF(m_t << "{\\comment endDoxyAnchor}\n")
1687 m_t << "{\\bkmkstart ";
1688 m_t << rtfFormatBmkStr(ref);
1689 m_t << "}\n";
1690 m_t << "{\\bkmkend ";
1691 m_t << rtfFormatBmkStr(ref);
1692 m_t << "}\n";
1693}
QCString stripPath(const QCString &s)
Definition util.cpp:5216

References DBG_RTF, QCString::isEmpty(), OutputGenerator::m_t, rtfFormatBmkStr(), and stripPath().

◆ endEmphasis()

void RTFGenerator::endEmphasis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 172 of file rtfgen.h.

172{ m_t << "}"; }

References OutputGenerator::m_t.

Referenced by endConstraintParam(), endConstraintType(), endMemberDescription(), endMemberGroupDocs(), and endPageRef().

◆ endExamples()

void RTFGenerator::endExamples ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2519 of file rtfgen.cpp.

2520{
2521 DBG_RTF(m_t << "{\\comment (endExamples)}\n")
2523 newParagraph();
2526 m_t << "}";
2527}

References DBG_RTF, decIndentLevel(), FALSE, m_omitParagraph, OutputGenerator::m_t, newParagraph(), and TRUE.

◆ endFile()

void RTFGenerator::endFile ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 672 of file rtfgen.cpp.

673{
674 DBG_RTF(m_t << "{\\comment endFile}\n")
675 m_t << "}";
676
677 endPlainFile();
679}
void endPlainFile() override
Definition rtfgen.h:294
void setSourceFileName(const QCString &sourceFileName)
Definition rtfgen.cpp:343

References DBG_RTF, endPlainFile(), OutputGenerator::m_t, and setSourceFileName().

◆ endGroupCollaboration()

void RTFGenerator::endGroupCollaboration ( DotGroupCollaboration & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2302 of file rtfgen.cpp.

2303{
2304}

◆ endGroupHeader()

void RTFGenerator::endGroupHeader ( int )
overridevirtual

Implements OutputGenIntf.

Definition at line 1617 of file rtfgen.cpp.

1618{
1619 DBG_RTF(m_t << "{\\comment endGroupHeader}\n")
1620 m_t << "\\par\n";
1621 m_t << rtf_Style_Reset << "\n";
1622}

References DBG_RTF, OutputGenerator::m_t, and rtf_Style_Reset.

Referenced by endMemberHeader().

◆ endHeaderSection()

void RTFGenerator::endHeaderSection ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 146 of file rtfgen.h.

146{}

◆ endInclDepGraph()

void RTFGenerator::endInclDepGraph ( DotInclDepGraph & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2281 of file rtfgen.cpp.

2282{
2283 newParagraph();
2284
2286
2287 // display the file
2288 m_t << "{\n";
2289 m_t << rtf_Style_Reset << "\n";
2290 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2291 QCString imgExt = getDotImageExtension();
2292 m_t << fn << "." << imgExt;
2293 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2294 m_t << "}\n";
2295 DBG_RTF(m_t << "{\\comment (endInclDepGraph)}\n")
2296}
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)

References DBG_RTF, OutputGenerator::dir(), EOF_Rtf, FALSE, OutputGenerator::fileName(), getDotImageExtension(), GOF_BITMAP, m_relPath, OutputGenerator::m_t, newParagraph(), rtf_Style_Reset, and DotInclDepGraph::writeGraph().

◆ endIndent()

void RTFGenerator::endIndent ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1724 of file rtfgen.cpp.

1725{
1726 m_t << "}\n";
1728}

References decIndentLevel(), and OutputGenerator::m_t.

◆ endIndexItem()

void RTFGenerator::endIndexItem ( const QCString & ref,
const QCString & file )
overridevirtual

Implements OutputGenIntf.

Definition at line 1379 of file rtfgen.cpp.

1380{
1381 DBG_RTF(m_t << "{\\comment (endIndexItem)}\n")
1382 if (ref.isEmpty() && !fn.isEmpty())
1383 {
1384 m_t << "\\tab ";
1386 m_t << "\n";
1387 }
1388 else
1389 {
1390 m_t << "\n";
1391 }
1393}
void writeRTFReference(const QCString &label)
Definition rtfgen.cpp:1869

References DBG_RTF, QCString::isEmpty(), m_omitParagraph, OutputGenerator::m_t, TRUE, and writeRTFReference().

◆ endIndexKey()

void RTFGenerator::endIndexKey ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1425 of file rtfgen.cpp.

1426{
1427 DBG_RTF(m_t << "{\\comment (endIndexKey)}\n")
1428}

References DBG_RTF, and OutputGenerator::m_t.

◆ endIndexList()

void RTFGenerator::endIndexList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1308 of file rtfgen.cpp.

1309{
1310 DBG_RTF(m_t << "{\\comment (endIndexList)}\n")
1312 {
1313 m_t << "\\par";
1315 }
1316 m_t << "}";
1318}

References DBG_RTF, decIndentLevel(), m_omitParagraph, OutputGenerator::m_t, and TRUE.

◆ endIndexListItem()

void RTFGenerator::endIndexListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2659 of file rtfgen.cpp.

2660{
2661 DBG_RTF(m_t << "{\\comment (endIndexListItem)}\n")
2662 m_t << "\\par\n";
2663}

References DBG_RTF, and OutputGenerator::m_t.

◆ endIndexSection()

void RTFGenerator::endIndexSection ( IndexSection is)
overridevirtual

Implements OutputGenIntf.

Definition at line 881 of file rtfgen.cpp.

882{
883 bool fortranOpt = Config_getBool(OPTIMIZE_FOR_FORTRAN);
884 bool vhdlOpt = Config_getBool(OPTIMIZE_OUTPUT_VHDL);
885 QCString projectName = Config_getString(PROJECT_NAME);
886
887 switch (is)
888 {
890 if (!rtf_title.isEmpty())
891 // User has overridden document title in extensions file
892 m_t << "}" << rtf_title;
893 else
894 m_t << "}" << projectName;
895 break;
897 {
898 m_t << " doxygen " << getDoxygenVersion() << ".}\n";
900 DBG_RTF(m_t << "{\\comment end of infoblock}\n");
901 // setup for this section
902 m_t << "}";
903 m_t << rtf_Style_Reset <<"\n";
904 m_t << "\\sectd\\pgnlcrm\n";
905 m_t << "{\\footer "<<rtf_Style["Footer"].reference() << "{\\chpgn}}\n";
906 // the title entry
907 DBG_RTF(m_t << "{\\comment begin title page}\n")
908
909
910 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to title style
911
912 m_t << "\\vertalc\\qc\\par\\par\\par\\par\\par\\par\\par\n";
913 if (!rtf_logoFilename.isEmpty())
914 {
915 m_t << "{\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"" << rtf_logoFilename;
916 m_t << "\" \\\\d \\\\*MERGEFORMAT} {\\fldrslt IMAGE }}\\par\\par\n";
917 }
918 if (!rtf_company.isEmpty())
919 {
920 m_t << rtf_company << "\\par\\par\n";
921 }
922
923 m_t << rtf_Style_Reset << rtf_Style["Title"].reference() << "\n"; // set to title style
924 if (!rtf_title.isEmpty())
925 {
926 // User has overridden document title in extensions file
927 m_t << "{\\field\\fldedit {\\*\\fldinst TITLE \\\\*MERGEFORMAT}{\\fldrslt " << rtf_title << "}}\\par\n";
928 }
929 else
930 {
931 auto parser { createDocParser() };
932 auto ast { validatingParseText(*parser.get(), projectName) };
933 if (ast)
934 {
935 m_t << "{\\field\\fldedit {\\*\\fldinst TITLE \\\\*MERGEFORMAT}{\\fldrslt ";
936 writeDoc(ast.get(),nullptr,nullptr,0);
937 m_t << "}}\\par\n";
938 }
939 }
940
941 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to title style
942 m_t << "\\par\n";
944 {
945 m_t << rtf_documentType << "\\par\n";
946 }
947 if (!rtf_documentId.isEmpty())
948 {
949 m_t << rtf_documentId << "\\par\n";
950 }
951 m_t << "\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\n";
952
953 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to subtitle style
954 if (!rtf_author.isEmpty())
955 {
956 m_t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt "<< rtf_author << " }}\\par\n";
957 }
958 else
959 {
960 m_t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt AUTHOR}}\\par\n";
961 }
962
963 m_t << theTranslator->trVersion() << " " << Config_getString(PROJECT_NUMBER) << "\\par";
964 switch (Config_getEnum(TIMESTAMP))
965 {
966 case TIMESTAMP_t::YES:
967 case TIMESTAMP_t::DATETIME:
968 m_t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}"
969 "{\\fldrslt "<< dateToString(DateTimeType::DateTime) << " }}\\par\n";
970 break;
971 case TIMESTAMP_t::DATE:
972 m_t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}"
973 "{\\fldrslt "<< dateToString(DateTimeType::Date) << " }}\\par\n";
974 break;
975 case TIMESTAMP_t::NO:
976 break;
977 }
978 m_t << "\\page\\page";
979 DBG_RTF(m_t << "{\\comment End title page}\n")
980
981 // table of contents section
982 DBG_RTF(m_t << "{\\comment Table of contents}\n")
983 m_t << "\\vertalt\n";
984 m_t << rtf_Style_Reset << "\n";
985 m_t << rtf_Style["Heading1"].reference();
986 m_t << theTranslator->trRTFTableOfContents() << "\\par\n";
987 m_t << rtf_Style_Reset << "\\par\n";
988 m_t << "{\\field\\fldedit {\\*\\fldinst TOC \\\\f \\\\*MERGEFORMAT}{\\fldrslt Table of contents}}\\par\n";
989 m_t << rtf_Style_Reset << "\n";
990 }
991 break;
992 case IndexSection::isMainPage:
993 if (Doxygen::mainPage)
994 {
995 writePageLink(Doxygen::mainPage->getOutputFileBase(), TRUE);
996 }
997 break;
998 case IndexSection::isTopicIndex:
999 m_t << "\\par " << rtf_Style_Reset << "\n";
1000 m_t << "{\\tc \\v " << theTranslator->trTopicIndex() << "}\n";
1001 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"topics.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1002 break;
1004 m_t << "\\par " << rtf_Style_Reset << "\n";
1005 m_t << "{\\tc \\v " << theTranslator->trModuleIndex() << "}\n";
1006 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"modules.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1007 break;
1009 m_t << "\\par " << rtf_Style_Reset << "\n";
1010 m_t << "{\\tc \\v " << theTranslator->trDirIndex() << "}\n";
1011 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"dirs.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1012 break;
1014 m_t << "\\par " << rtf_Style_Reset << "\n";
1015 if (fortranOpt)
1016 {
1017 m_t << "{\\tc \\v " << theTranslator->trModulesIndex() << "}\n";
1018 }
1019 else
1020 {
1021 m_t << "{\\tc \\v " << theTranslator->trNamespaceIndex() << "}\n";
1022 }
1023
1024 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"namespaces.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1025 break;
1027 m_t << "\\par " << rtf_Style_Reset << "\n";
1028 m_t << "{\\tc \\v " << theTranslator->trConceptIndex() << "}\n";
1029 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"concepts.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1030 break;
1032 m_t << "\\par " << rtf_Style_Reset << "\n";
1033 m_t << "{\\tc \\v " << theTranslator->trHierarchicalIndex() << "}\n";
1034 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"hierarchy.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1035 break;
1037 m_t << "\\par " << rtf_Style_Reset << "\n";
1038 if (fortranOpt)
1039 {
1040 m_t << "{\\tc \\v " << theTranslator->trCompoundIndexFortran() << "}\n";
1041 }
1042 else if (vhdlOpt)
1043 {
1044 m_t << "{\\tc \\v " << theTranslator->trDesignUnitIndex() << "}\n";
1045 }
1046 else
1047 {
1048 m_t << "{\\tc \\v " << theTranslator->trCompoundIndex() << "}\n";
1049 }
1050 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"annotated.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1051 break;
1053 m_t << "\\par " << rtf_Style_Reset << "\n";
1054 m_t << "{\\tc \\v " << theTranslator->trFileIndex() << "}\n";
1055 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"files.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1056 break;
1058 m_t << "\\par " << rtf_Style_Reset << "\n";
1059 m_t << "{\\tc \\v " << theTranslator->trPageIndex() << "}\n";
1060 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"pages.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1061 break;
1063 {
1064 m_t << "{\\tc \\v " << theTranslator->trTopicDocumentation() << "}\n";
1065 for (const auto &gd : *Doxygen::groupLinkedMap)
1066 {
1067 if (!gd->isReference() && !gd->isASubGroup())
1068 {
1069 writePageLink(gd->getOutputFileBase(), FALSE);
1070 }
1071 }
1072 }
1073 break;
1075 {
1076 m_t << "{\\tc \\v " << theTranslator->trModuleDocumentation() << "}\n";
1077 for (const auto &mod : ModuleManager::instance().modules())
1078 {
1079 if (!mod->isReference() && mod->isPrimaryInterface())
1080 {
1081 writePageLink(mod->getOutputFileBase(), FALSE);
1082 }
1083 }
1084 }
1085 break;
1087 {
1088 bool first=true;
1089 m_t << "{\\tc \\v " << theTranslator->trDirDocumentation() << "}\n";
1090 for (const auto &dd : *Doxygen::dirLinkedMap)
1091 {
1092 if (dd->isLinkableInProject())
1093 {
1094 m_t << "\\par " << rtf_Style_Reset << "\n";
1095 if (!first)
1096 {
1098 }
1099 first=false;
1100 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1101 m_t << dd->getOutputFileBase();
1102 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1103 }
1104 }
1105 }
1106 break;
1108 {
1109 bool first=true;
1110 for (const auto &nd : *Doxygen::namespaceLinkedMap)
1111 {
1112 if (nd->isLinkableInProject() && !nd->isAlias())
1113 {
1114 m_t << "\\par " << rtf_Style_Reset << "\n";
1115 if (!first)
1116 {
1118 }
1119 first=false;
1120 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1121 m_t << nd->getOutputFileBase();
1122 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1123 }
1124 }
1125 }
1126 break;
1128 {
1129 bool first=true;
1130 for (const auto &cd : *Doxygen::conceptLinkedMap)
1131 {
1132 if (cd->isLinkableInProject() && !cd->isAlias())
1133 {
1134 m_t << "\\par " << rtf_Style_Reset << "\n";
1135 if (!first)
1136 {
1138 }
1139 first=false;
1140 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1141 m_t << cd->getOutputFileBase();
1142 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1143 }
1144 }
1145 }
1146 break;
1148 {
1149 bool first=true;
1150 if (fortranOpt)
1151 {
1152 m_t << "{\\tc \\v " << theTranslator->trTypeDocumentation() << "}\n";
1153 }
1154 else
1155 {
1156 m_t << "{\\tc \\v " << theTranslator->trClassDocumentation() << "}\n";
1157 }
1158 for (const auto &cd : *Doxygen::classLinkedMap)
1159 {
1160 if (cd->isLinkableInProject() &&
1161 cd->templateMaster()==nullptr &&
1162 !cd->isEmbeddedInOuterScope() &&
1163 !cd->isAlias()
1164 )
1165 {
1166 m_t << "\\par " << rtf_Style_Reset << "\n";
1167 if (!first)
1168 {
1170 }
1171 first=false;
1172 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1173 m_t << cd->getOutputFileBase();
1174 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1175 }
1176 }
1177 }
1178 break;
1180 {
1181 bool isFirst=TRUE;
1182
1183 m_t << "{\\tc \\v " << theTranslator->trFileDocumentation() << "}\n";
1184 for (const auto &fn : *Doxygen::inputNameLinkedMap)
1185 {
1186 for (const auto &fd : *fn)
1187 {
1188 if (fd->isLinkableInProject())
1189 {
1190 m_t << "\\par " << rtf_Style_Reset << "\n";
1191 if (!isFirst)
1192 {
1194 }
1195 isFirst=FALSE;
1196 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1197 m_t << fd->getOutputFileBase();
1198 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1199 }
1200 if (fd->generateSourceFile())
1201 {
1202 m_t << "\\par " << rtf_Style_Reset << "\n";
1203 if (!isFirst)
1204 {
1206 }
1207 isFirst=FALSE;
1208 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1209 m_t << fd->getSourceFileBase();
1210 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1211 }
1212 }
1213 }
1214 }
1215 break;
1217 {
1218 //m_t << "}\n";
1219 bool isFirst=true;
1220 m_t << "{\\tc \\v " << theTranslator->trExamples() << "}\n";
1221 for (const auto &pd : *Doxygen::exampleLinkedMap)
1222 {
1223 m_t << "\\par " << rtf_Style_Reset << "\n";
1224 if (!isFirst)
1225 {
1227 }
1228 isFirst=false;
1229 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1230 m_t << pd->getOutputFileBase();
1231 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1232 }
1233 }
1234 break;
1236 {
1237 m_t << "\\par " << rtf_Style_Reset << "\n";
1238 for (const auto &pd : *Doxygen::pageLinkedMap)
1239 {
1240 if (!pd->getGroupDef() && !pd->isReference() && !pd->hasParentPage()
1241 && Doxygen::mainPage.get() != pd.get())
1242 {
1243 writePageLink(pd->getOutputFileBase(), FALSE);
1244 }
1245 }
1246 }
1247 break;
1249 break;
1252 m_t << rtf_Style["Heading1"].reference();
1253 m_t << theTranslator->trRTFGeneralIndex() << "\\par \n";
1254 m_t << rtf_Style_Reset << "\n";
1255 m_t << "{\\tc \\v " << theTranslator->trRTFGeneralIndex() << "}\n";
1256 m_t << "{\\field\\fldedit {\\*\\fldinst INDEX \\\\c2 \\\\*MERGEFORMAT}{\\fldrslt INDEX}}\n";
1257
1258 break;
1259 }
1260}
This class serves as a namespace for global variables used by doxygen.
Definition doxygen.h:85
static std::unique_ptr< PageDef > mainPage
Definition doxygen.h:92
void beginRTFChapter()
Definition rtfgen.cpp:617
void writeDoc(const IDocNodeAST *ast, const Definition *, const MemberDef *, int) override
Definition rtfgen.cpp:2558
void writePageLink(const QCString &, bool) override
Definition rtfgen.cpp:1262
void beginRTFSection()
Definition rtfgen.cpp:637
virtual QCString trRTFGeneralIndex()=0
virtual QCString trDirIndex()=0
virtual QCString trConceptIndex()=0
virtual QCString trModuleIndex()=0
virtual QCString trFileIndex()=0
virtual QCString trNamespaceIndex()=0
virtual QCString trHierarchicalIndex()=0
virtual QCString trVersion()=0
virtual QCString trPageIndex()=0
virtual QCString trFileDocumentation()=0
virtual QCString trCompoundIndex()=0
virtual QCString trClassDocumentation()=0
virtual QCString trModuleDocumentation()=0
virtual QCString trTopicDocumentation()=0
virtual QCString trTypeDocumentation()=0
virtual QCString trModulesIndex()=0
virtual QCString trDirDocumentation()=0
virtual QCString trCompoundIndexFortran()=0
virtual QCString trExamples()=0
virtual QCString trDesignUnitIndex()=0
#define Config_getEnum(name)
Definition config.h:35
QCString dateToString(DateTimeType includeTime)
Returns the current date, when includeTime is set also the time is provided.
Definition datetime.cpp:63
IDocNodeASTPtr validatingParseText(IDocParser &parserIntf, const QCString &input)
IDocParserPtr createDocParser()
factory function to create a parser
Definition docparser.cpp:54
@ isExampleDocumentation
@ isConceptDocumentation
@ isNamespaceDocumentation
static QCString dateToRTFDateString()
Definition rtfgen.cpp:58
QCString rtf_company
Definition rtfstyle.cpp:26
QCString rtf_documentType
Definition rtfstyle.cpp:30
QCString rtf_logoFilename
Definition rtfstyle.cpp:27
QCString rtf_title
Definition rtfstyle.cpp:23
QCString rtf_author
Definition rtfstyle.cpp:28
QCString rtf_documentId
Definition rtfstyle.cpp:31

References beginRTFChapter(), beginRTFSection(), Doxygen::classLinkedMap, Doxygen::conceptLinkedMap, Config_getBool, Config_getEnum, Config_getString, createDocParser(), Date, DateTime, dateToRTFDateString(), dateToString(), DBG_RTF, Doxygen::dirLinkedMap, Doxygen::exampleLinkedMap, FALSE, Doxygen::groupLinkedMap, Doxygen::inputNameLinkedMap, ModuleManager::instance(), isClassDocumentation, isClassHierarchyIndex, isCompoundIndex, isConceptDocumentation, isConceptIndex, isDirDocumentation, isDirIndex, QCString::isEmpty(), isEndIndex, isExampleDocumentation, isFileDocumentation, isFileIndex, isMainPage, isModuleDocumentation, isModuleIndex, isNamespaceDocumentation, isNamespaceIndex, isPageDocumentation, isPageDocumentation2, isPageIndex, isTitlePageAuthor, isTitlePageStart, isTopicDocumentation, isTopicIndex, OutputGenerator::m_t, Doxygen::mainPage, ModuleManager::modules(), Doxygen::namespaceLinkedMap, Doxygen::pageLinkedMap, rtf_author, rtf_company, rtf_documentId, rtf_documentType, rtf_logoFilename, rtf_Style, rtf_Style_Reset, rtf_title, theTranslator, Translator::trClassDocumentation(), Translator::trCompoundIndex(), Translator::trCompoundIndexFortran(), Translator::trConceptIndex(), Translator::trDesignUnitIndex(), Translator::trDirDocumentation(), Translator::trDirIndex(), Translator::trExamples(), Translator::trFileDocumentation(), Translator::trFileIndex(), Translator::trHierarchicalIndex(), Translator::trModuleDocumentation(), Translator::trModuleIndex(), Translator::trModulesIndex(), Translator::trNamespaceIndex(), Translator::trPageIndex(), Translator::trRTFGeneralIndex(), Translator::trRTFTableOfContents(), Translator::trTopicDocumentation(), Translator::trTopicIndex(), Translator::trTypeDocumentation(), TRUE, Translator::trVersion(), validatingParseText(), writeDoc(), and writePageLink().

◆ endIndexValue()

void RTFGenerator::endIndexValue ( const QCString & name,
bool hasBrief )
overridevirtual

Implements OutputGenIntf.

Definition at line 1437 of file rtfgen.cpp.

1438{
1439 DBG_RTF(m_t << "{\\comment (endIndexValue)}\n")
1440 if (hasBrief) m_t << ")";
1441 m_t << "} ";
1442 if (!name.isEmpty())
1443 {
1444 m_t << "\\tab ";
1445 writeRTFReference(name);
1446 m_t << "\n";
1447 }
1448 else
1449 {
1450 m_t << "\n";
1451 }
1453 newParagraph();
1454}

References DBG_RTF, FALSE, QCString::isEmpty(), m_omitParagraph, OutputGenerator::m_t, newParagraph(), and writeRTFReference().

◆ endInlineHeader()

void RTFGenerator::endInlineHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2673 of file rtfgen.cpp.

2674{
2675 DBG_RTF(m_t << "{\\comment (endInlineHeader)}\n")
2676 endBold();
2677 m_t << "\\par";
2678 m_t << "}\n";
2679}
void endBold() override
Definition rtfgen.h:174

References DBG_RTF, endBold(), and OutputGenerator::m_t.

◆ endInlineMemberDoc()

void RTFGenerator::endInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2758 of file rtfgen.cpp.

2759{
2760 DBG_RTF(m_t << "{\\comment (endInlineMemberDoc)}\n")
2761 m_t << "\\cell }{\\row }\n";
2762}

References DBG_RTF, and OutputGenerator::m_t.

◆ endInlineMemberName()

void RTFGenerator::endInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2746 of file rtfgen.cpp.

2747{
2748 DBG_RTF(m_t << "{\\comment (endInlineMemberName)}\n")
2749 m_t << "\\cell }";
2750}

References DBG_RTF, and OutputGenerator::m_t.

◆ endInlineMemberType()

void RTFGenerator::endInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2734 of file rtfgen.cpp.

2735{
2736 DBG_RTF(m_t << "{\\comment (endInlineMemberType)}\n")
2737 m_t << "\\cell }";
2738}

References DBG_RTF, and OutputGenerator::m_t.

◆ endItemList()

void RTFGenerator::endItemList ( )
overridevirtual

end bullet list

Implements OutputGenIntf.

Definition at line 1334 of file rtfgen.cpp.

1335{
1336 newParagraph();
1337 DBG_RTF(m_t << "{\\comment (endItemList level=" << indentLevel() << ")}\n")
1338 m_t << "}";
1341}
int indentLevel() const
Definition rtfgen.cpp:1971

References DBG_RTF, decIndentLevel(), indentLevel(), m_omitParagraph, OutputGenerator::m_t, newParagraph(), and TRUE.

◆ endItemListItem()

void RTFGenerator::endItemListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1363 of file rtfgen.cpp.

1364{
1365 DBG_RTF(m_t << "{\\comment (endItemListItem)}\n")
1366}

References DBG_RTF, and OutputGenerator::m_t.

◆ endLabels()

void RTFGenerator::endLabels ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2774 of file rtfgen.cpp.

2775{
2776}

◆ endMemberDeclaration()

void RTFGenerator::endMemberDeclaration ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 193 of file rtfgen.h.

193{}

◆ endMemberDescription()

void RTFGenerator::endMemberDescription ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1740 of file rtfgen.cpp.

1741{
1742 DBG_RTF(m_t << "{\\comment (endMemberDescription)}\n")
1743 endEmphasis();
1745 m_t << "\\par";
1746 m_t << "}\n";
1748}

References DBG_RTF, decIndentLevel(), endEmphasis(), m_omitParagraph, OutputGenerator::m_t, and TRUE.

◆ endMemberDoc()

void RTFGenerator::endMemberDoc ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 1654 of file rtfgen.cpp.

1655{
1656 DBG_RTF(m_t << "{\\comment endMemberDoc}\n")
1657 //const QCString &style = styleStack.pop();
1658 //printf("RTFGenerator::endMemberDoc() '%s'\n",style);
1659 //ASSERT(style==rtf_Style["Heading4"].reference());
1660 endBold();
1661 m_t << "}\n";
1662 newParagraph();
1663}

References DBG_RTF, endBold(), OutputGenerator::m_t, and newParagraph().

◆ endMemberDocList()

void RTFGenerator::endMemberDocList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 152 of file rtfgen.h.

152{}

◆ endMemberDocName()

void RTFGenerator::endMemberDocName ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 256 of file rtfgen.h.

256{}

◆ endMemberDocPrefixItem()

void RTFGenerator::endMemberDocPrefixItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 254 of file rtfgen.h.

254{}

◆ endMemberDocSimple()

void RTFGenerator::endMemberDocSimple ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 2722 of file rtfgen.cpp.

2723{
2724 DBG_RTF(m_t << "{\\comment (endMemberDocSimple)}\n")
2725 m_t << "}\n";
2726}

References DBG_RTF, and OutputGenerator::m_t.

◆ endMemberGroup()

void RTFGenerator::endMemberGroup ( bool hasHeader)
overridevirtual

Implements OutputGenIntf.

Definition at line 2497 of file rtfgen.cpp.

2498{
2499 DBG_RTF(m_t << "{\\comment endMemberGroup}\n")
2500 if (hasHeader) decIndentLevel();
2501 m_t << "}";
2502}

References DBG_RTF, decIndentLevel(), and OutputGenerator::m_t.

◆ endMemberGroupDocs()

void RTFGenerator::endMemberGroupDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2484 of file rtfgen.cpp.

2485{
2486 DBG_RTF(m_t << "{\\comment endMemberGroupDocs}\n")
2487 endEmphasis();
2488 newParagraph();
2489}

References DBG_RTF, endEmphasis(), OutputGenerator::m_t, and newParagraph().

◆ endMemberGroupHeader()

void RTFGenerator::endMemberGroupHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2471 of file rtfgen.cpp.

2472{
2473 DBG_RTF(m_t << "{\\comment endMemberGroupHeader}\n")
2474 newParagraph();
2476}
QCString rtf_CList_DepthStyle()
Definition rtfgen.cpp:1999

References DBG_RTF, OutputGenerator::m_t, newParagraph(), rtf_CList_DepthStyle(), and rtf_Style_Reset.

◆ endMemberHeader()

void RTFGenerator::endMemberHeader ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 148 of file rtfgen.h.

void endGroupHeader(int) override
Definition rtfgen.cpp:1617

References endGroupHeader(), and FALSE.

◆ endMemberItem()

void RTFGenerator::endMemberItem ( MemberItemType )
overridevirtual

Implements OutputGenIntf.

Definition at line 1841 of file rtfgen.cpp.

1842{
1843 DBG_RTF(m_t << "{\\comment endMemberItem }\n")
1844 newParagraph();
1845}

References DBG_RTF, OutputGenerator::m_t, and newParagraph().

◆ endMemberList()

void RTFGenerator::endMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1893 of file rtfgen.cpp.

1894{
1895 DBG_RTF(m_t << "{\\comment (endMemberList) }\n")
1896 m_t << "}\n";
1897#ifdef DELETEDCODE
1898 if (!insideTabbing)
1899 m_t << "\\end{CompactItemize}\n";
1900#endif
1901}

References DBG_RTF, and OutputGenerator::m_t.

◆ endMemberSections()

void RTFGenerator::endMemberSections ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 144 of file rtfgen.h.

144{}

◆ endMemberSubtitle()

void RTFGenerator::endMemberSubtitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2087 of file rtfgen.cpp.

2088{
2089 DBG_RTF(m_t << "{\\comment endMemberSubtitle}\n")
2090 newParagraph();
2091 m_t << "}\n";
2092}

References DBG_RTF, OutputGenerator::m_t, and newParagraph().

◆ endMemberTemplateParams()

void RTFGenerator::endMemberTemplateParams ( const QCString & ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 162 of file rtfgen.h.

162{}

◆ endPageDoc()

void RTFGenerator::endPageDoc ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 106 of file rtfgen.h.

106{}

◆ endPageRef()

void RTFGenerator::endPageRef ( const QCString & clname,
const QCString & anchor )
overridevirtual

Implements OutputGenIntf.

Definition at line 1549 of file rtfgen.cpp.

1550{
1551 QCString ref;
1552 if (!clname.isEmpty())
1553 {
1554 ref+=clname;
1555 }
1556 if (!anchor.isEmpty())
1557 {
1558 ref+='_';
1559 ref+=anchor;
1560 }
1561 writeRTFReference(ref);
1562 endEmphasis();
1563 m_t << ")";
1564}

References endEmphasis(), QCString::isEmpty(), OutputGenerator::m_t, and writeRTFReference().

◆ endParagraph()

void RTFGenerator::endParagraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2073 of file rtfgen.cpp.

2074{
2075 DBG_RTF(m_t << "{\\comment endParagraph}\n")
2076 m_t << "}\\par\n";
2078}

References DBG_RTF, m_omitParagraph, OutputGenerator::m_t, and TRUE.

◆ endParameterDefVal()

void RTFGenerator::endParameterDefVal ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 264 of file rtfgen.h.

264{ endTypewriter(); }
void endTypewriter() override
Definition rtfgen.h:137

References endTypewriter().

◆ endParameterExtra()

void RTFGenerator::endParameterExtra ( bool last,
bool ,
bool closeBracket )
overridevirtual

Implements OutputGenIntf.

Definition at line 2796 of file rtfgen.cpp.

2797{
2798 if (last && closeBracket)
2799 {
2800 m_t << ")";
2801 }
2802}

References OutputGenerator::m_t.

◆ endParameterList()

void RTFGenerator::endParameterList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 266 of file rtfgen.h.

266{}

◆ endParameterName()

void RTFGenerator::endParameterName ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 260 of file rtfgen.h.

260{}

◆ endParameterType()

void RTFGenerator::endParameterType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2538 of file rtfgen.cpp.

2539{
2540 DBG_RTF(m_t << "{\\comment (endParameterType)}\n")
2541 m_t << " ";
2542}

References DBG_RTF, and OutputGenerator::m_t.

◆ endPlainFile()

void RTFGenerator::endPlainFile ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 294 of file rtfgen.h.

References OutputGenerator::endPlainFile().

Referenced by endFile().

◆ endProjectNumber()

void RTFGenerator::endProjectNumber ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 687 of file rtfgen.cpp.

688{
689 DBG_RTF(m_t << "{\\comment endProjectNumber }\n")
690}

References DBG_RTF, and OutputGenerator::m_t.

◆ endQuickIndices()

void RTFGenerator::endQuickIndices ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 211 of file rtfgen.h.

211{}

◆ endSection()

void RTFGenerator::endSection ( const QCString & lab,
SectionType  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1788 of file rtfgen.cpp.

1789{
1790 DBG_RTF(m_t << "{\\comment (endSection)}\n")
1791 // make bookmark
1793 newParagraph();
1794 writeAnchor(QCString(),lab);
1795 m_t << "}";
1796}
void writeAnchor(const QCString &fileName, const QCString &name) override
Definition rtfgen.cpp:1847

References DBG_RTF, FALSE, m_omitParagraph, OutputGenerator::m_t, newParagraph(), and writeAnchor().

◆ endSmall()

void RTFGenerator::endSmall ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 188 of file rtfgen.h.

188{ m_t << "}"; }

References OutputGenerator::m_t.

◆ endTextBlock()

void RTFGenerator::endTextBlock ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 2047 of file rtfgen.cpp.

2048{
2049 newParagraph();
2050 DBG_RTF(m_t << "{\\comment endTextBlock}\n")
2051 m_t << "}\n";
2052 //m_omitParagraph = TRUE;
2053}

References DBG_RTF, OutputGenerator::m_t, and newParagraph().

◆ endTextLink()

void RTFGenerator::endTextLink ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1494 of file rtfgen.cpp.

1495{
1496 if (Config_getBool(RTF_HYPERLINKS))
1497 {
1498 m_t << "}}}\n";
1499 }
1500}

References Config_getBool, and OutputGenerator::m_t.

◆ endTitleHead()

void RTFGenerator::endTitleHead ( const QCString & fileName,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 1576 of file rtfgen.cpp.

1577{
1578 DBG_RTF(m_t << "{\\comment endTitleHead}\n")
1579 m_t << "\\par " << rtf_Style_Reset << "\n";
1580 if (!name.isEmpty())
1581 {
1582 // make table of contents entry
1583 int level = 2 + m_hierarchyLevel;
1584 m_t << "{\\tc\\tcl" << level << " \\v ";
1585 docify(name);
1586 m_t << "}\n";
1587
1588 // make an index entry
1589 addIndexItem(name,QCString());
1590 }
1591 if (!fileName.isEmpty())
1592 {
1594 }
1595}
void addIndexItem(const QCString &, const QCString &) override
Definition rtfgen.cpp:1701

References addIndexItem(), DBG_RTF, docify(), OutputGenerator::fileName(), QCString::isEmpty(), m_hierarchyLevel, OutputGenerator::m_t, rtf_Style_Reset, and writeAnchor().

◆ endTypewriter()

void RTFGenerator::endTypewriter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 137 of file rtfgen.h.

137{ m_t << "}"; }

References OutputGenerator::m_t.

Referenced by endParameterDefVal().

◆ exceptionEntry()

void RTFGenerator::exceptionEntry ( const QCString & prefix,
bool closeBracket )
overridevirtual

Implements OutputGenIntf.

Definition at line 2544 of file rtfgen.cpp.

2545{
2546 DBG_RTF(m_t << "{\\comment (exceptionEntry)}\n")
2547 if (!prefix.isEmpty())
2548 {
2549 m_t << " " << prefix << "(";
2550 }
2551 else if (closeBracket)
2552 {
2553 m_t << ")";
2554 }
2555 m_t << " ";
2556}
constexpr auto prefix
Definition anchor.cpp:44

References DBG_RTF, OutputGenerator::m_t, and prefix.

◆ incIndentLevel()

void RTFGenerator::incIndentLevel ( )
private

Definition at line 1976 of file rtfgen.cpp.

1977{
1978 m_indentLevel++;
1980 {
1982 err("Maximum indent level (%d) exceeded while generating RTF output!\n",maxIndentLevels);
1983 }
1985}
static const int maxIndentLevels
Definition rtfgen.h:323

References err, m_codeGen, m_indentLevel, maxIndentLevels, and RTFCodeGenerator::setIndentLevel().

Referenced by startConstraintList(), startExamples(), startIndent(), startIndexList(), startItemList(), startMemberDescription(), and startMemberGroupHeader().

◆ indentLevel()

int RTFGenerator::indentLevel ( ) const
private

◆ init()

void RTFGenerator::init ( )
static

Definition at line 415 of file rtfgen.cpp.

416{
417 QCString dir=Config_getString(RTF_OUTPUT);
418 Dir d(dir.str());
419 if (!d.exists() && !d.mkdir(dir.str()))
420 {
421 term("Could not create output directory %s\n",qPrint(dir));
422 }
423
424 // first duplicate strings of rtf_Style_Default
425 const struct Rtf_Style_Default* def = rtf_Style_Default;
426 while (def->reference)
427 {
428 if (def->definition == nullptr)
429 {
430 err("Internal: rtf_Style_Default[%s] has no definition.\n", def->name);
431 }
432 else
433 {
434 rtf_Style.insert(std::make_pair(def->name, StyleData(def->reference, def->definition)));
435 }
436 def++;
437 }
438
439 // overwrite some (or all) definitions from file
440 QCString rtfStyleSheetFile = Config_getString(RTF_STYLESHEET_FILE);
441 if (!rtfStyleSheetFile.isEmpty())
442 {
443 loadStylesheet(rtfStyleSheetFile, rtf_Style);
444 }
445
446 // If user has defined an extension file, load its contents.
447 QCString rtfExtensionsFile = Config_getString(RTF_EXTENSIONS_FILE);
448 if (!rtfExtensionsFile.isEmpty())
449 {
450 loadExtensions(rtfExtensionsFile);
451
453 {
455 if (!fi.exists())
456 {
457 err("Logo '%s' specified by 'LogoFilename' in the rtf extension file '%s' does not exist!\n",
458 qPrint(rtf_logoFilename), qPrint(rtfExtensionsFile));
459 rtf_logoFilename = "";
460 }
461 else
462 {
463 QCString destFileName = Config_getString(RTF_OUTPUT)+"/"+fi.fileName();
464 copyFile(rtf_logoFilename,destFileName);
465 rtf_logoFilename = fi.fileName();
466 }
467 }
468 }
469
470 createSubDirs(d);
471}
Minimal replacement for QFileInfo.
Definition fileinfo.h:23
#define term(fmt,...)
Definition message.h:94
const char * qPrint(const char *s)
Definition qcstring.h:652
void loadStylesheet(const QCString &name, StyleDataMap &map)
Definition rtfstyle.cpp:322
Rtf_Style_Default rtf_Style_Default[]
Definition rtfstyle.cpp:88
void loadExtensions(const QCString &name)
Definition rtfstyle.cpp:364
const char * name
Definition rtfstyle.h:41
const char * reference
Definition rtfstyle.h:42
const char * definition
Definition rtfstyle.h:43
void createSubDirs(const Dir &d)
Definition util.cpp:3933
bool copyFile(const QCString &src, const QCString &dest)
Copies the contents of file with name src to the newly created file with name dest.
Definition util.cpp:6092

References Config_getString, copyFile(), createSubDirs(), Rtf_Style_Default::definition, OutputGenerator::dir(), err, Dir::exists(), FileInfo::exists(), FileInfo::fileName(), QCString::isEmpty(), loadExtensions(), loadStylesheet(), Dir::mkdir(), Rtf_Style_Default::name, qPrint(), Rtf_Style_Default::reference, rtf_logoFilename, rtf_Style, rtf_Style_Default, QCString::str(), and term.

Referenced by generateOutput().

◆ insertMemberAlign()

void RTFGenerator::insertMemberAlign ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 165 of file rtfgen.h.

165{}

◆ insertMemberAlignLeft()

void RTFGenerator::insertMemberAlignLeft ( MemberItemType ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 166 of file rtfgen.h.

166{}

◆ lastIndexPage()

void RTFGenerator::lastIndexPage ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1270 of file rtfgen.cpp.

1271{
1272 DBG_RTF(m_t << "{\\comment Beginning Body of RTF Document}\n")
1273 // end page and setup for rest of document
1274 m_t << "\\sect \\sbkpage \\pgndec \\pgnrestart\n";
1275 m_t << "\\sect \\sectd \\sbknone\n";
1276
1277 // set new footer with arabic numbers
1278 m_t << "{\\footer "<< rtf_Style["Footer"].reference() << "{\\chpgn}}\n";
1279
1280}

References DBG_RTF, OutputGenerator::m_t, and rtf_Style.

◆ lineBreak()

void RTFGenerator::lineBreak ( const QCString & style = QCString())
overridevirtual

Implements OutputGenIntf.

Definition at line 1286 of file rtfgen.cpp.

1287{
1288 DBG_RTF(m_t << "{\\comment (lineBreak)}" << "\n")
1289 m_t << "\\par\n";
1291}

References DBG_RTF, m_omitParagraph, OutputGenerator::m_t, and TRUE.

◆ newParagraph()

◆ operator=() [1/2]

RTFGenerator & RTFGenerator::operator= ( const RTFGenerator & og)

◆ operator=() [2/2]

RTFGenerator & RTFGenerator::operator= ( RTFGenerator && )
delete

◆ preProcessFileInplace()

bool RTFGenerator::preProcessFileInplace ( const QCString & path,
const QCString & 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 2398 of file rtfgen.cpp.

2399{
2400 static bool rtfDebug = Debug::isFlagSet(Debug::Rtf);
2401 QCString rtfOutput = Config_getString(RTF_OUTPUT);
2402
2403 Dir d(path.str());
2404 // store the original directory
2405 if (!d.exists())
2406 {
2407 err("Output dir %s does not exist!\n",qPrint(path));
2408 return FALSE;
2409 }
2410 std::string oldDir = Dir::currentDirPath();
2411
2412 // go to the html output directory (i.e. path)
2413 Dir::setCurrent(d.absPath());
2414 Dir thisDir;
2415
2416 QCString combinedName = path+"/combined.rtf";
2417 QCString mainRTFName = path+"/"+name;
2418
2419 std::ofstream f = Portable::openOutputStream(combinedName);
2420 if (!f.is_open())
2421 {
2422 err("Failed to open %s for writing!\n",combinedName.data());
2423 Dir::setCurrent(oldDir);
2424 return FALSE;
2425 }
2426 TextStream outt(&f);
2427
2428 if (!preProcessFile(thisDir,mainRTFName,outt,true,false))
2429 {
2430 // it failed, remove the temp file
2431 outt.flush();
2432 f.close();
2433 if (!rtfDebug) removeSet.insert(FileInfo(thisDir.filePath(combinedName.str())).absFilePath());
2434 Dir::setCurrent(oldDir);
2435 return FALSE;
2436 }
2437
2438 // everything worked, move the files
2439 outt.flush();
2440 f.close();
2441 if (!rtfDebug)
2442 {
2443 thisDir.remove(mainRTFName.str());
2444 }
2445 else
2446 {
2447 thisDir.rename(mainRTFName.str(),mainRTFName.str() + ".org");
2448 }
2449 thisDir.rename(combinedName.str(),mainRTFName.str());
2450
2451 testRTFOutput(mainRTFName);
2452
2453 for (auto &s : removeSet)
2454 {
2455 QCString s1(s.c_str());
2456 if (s1.startsWith(rtfOutput)) Portable::unlink(s1);
2457 }
2458
2459 Dir::setCurrent(oldDir);
2460 return TRUE;
2461}
@ Rtf
Definition debug.h:42
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:134
static std::string currentDirPath()
Definition dir.cpp:340
bool remove(const std::string &path, bool acceptsAbsPath=true) const
Definition dir.cpp:314
std::string filePath(const std::string &path, bool acceptsAbsPath=true) const
Definition dir.cpp:280
bool rename(const std::string &orgName, const std::string &newName, bool acceptsAbsPath=true) const
Definition dir.cpp:321
static bool setCurrent(const std::string &path)
Definition dir.cpp:348
std::string absFilePath() const
Definition fileinfo.cpp:101
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:152
Text streaming class that buffers data.
Definition textstream.h:36
std::ofstream openOutputStream(const QCString &name, bool append=false)
Definition portable.cpp:638
void unlink(const QCString &fileName)
Definition portable.cpp:534
static StringSet removeSet
Definition rtfgen.cpp:56
void testRTFOutput(const QCString &name)
Tests the integrity of the result by counting brackets.
Definition rtfgen.cpp:2353
static bool preProcessFile(Dir &d, const QCString &infName, TextStream &t, bool bIncludeHeader=true, bool removeFile=true)
VERY brittle routine inline RTF's included by other RTF's.
Definition rtfgen.cpp:2186

References FileInfo::absFilePath(), Dir::absPath(), Config_getString, Dir::currentDirPath(), QCString::data(), err, Dir::exists(), FALSE, Dir::filePath(), TextStream::flush(), Debug::isFlagSet(), Portable::openOutputStream(), preProcessFile(), qPrint(), Dir::remove(), removeSet, Dir::rename(), Debug::Rtf, Dir::setCurrent(), QCString::startsWith(), QCString::str(), testRTFOutput(), TRUE, and Portable::unlink().

Referenced by generateOutput().

◆ rtf_BList_DepthStyle()

QCString RTFGenerator::rtf_BList_DepthStyle ( )
private

Definition at line 2013 of file rtfgen.cpp.

2014{
2015 QCString n=makeIndexName("ListBullet",indentLevel());
2016 return rtf_Style[n.str()].reference();
2017}
static QCString makeIndexName(const QCString &s, int i)
Definition rtfgen.cpp:103

References indentLevel(), makeIndexName(), rtf_Style, and QCString::str().

Referenced by startItemListItem(), startMemberGroup(), and startMemberItem().

◆ rtf_CList_DepthStyle()

QCString RTFGenerator::rtf_CList_DepthStyle ( )
private

Definition at line 1999 of file rtfgen.cpp.

2000{
2001 QCString n=makeIndexName("ListContinue",indentLevel());
2002 return rtf_Style[n.str()].reference();
2003}

References indentLevel(), makeIndexName(), rtf_Style, and QCString::str().

Referenced by endMemberGroupHeader(), startIndent(), startMemberDescription(), and startMemberSubtitle().

◆ rtf_DList_DepthStyle()

QCString RTFGenerator::rtf_DList_DepthStyle ( )
private

Definition at line 2026 of file rtfgen.cpp.

2027{
2028 QCString n=makeIndexName("DescContinue",indentLevel());
2029 return rtf_Style[n.str()].reference();
2030}

References indentLevel(), makeIndexName(), rtf_Style, and QCString::str().

Referenced by startConstraintList(), startDescTable(), startExamples(), and startMemberDocSimple().

◆ rtf_EList_DepthStyle()

QCString RTFGenerator::rtf_EList_DepthStyle ( )
private

Definition at line 2020 of file rtfgen.cpp.

2021{
2022 QCString n=makeIndexName("ListEnum",indentLevel());
2023 return rtf_Style[n.str()].reference();
2024}

References indentLevel(), makeIndexName(), rtf_Style, and QCString::str().

Referenced by startItemListItem().

◆ rtf_LCList_DepthStyle()

QCString RTFGenerator::rtf_LCList_DepthStyle ( )
private

Definition at line 2006 of file rtfgen.cpp.

2007{
2008 QCString n=makeIndexName("LatexTOC",indentLevel());
2009 return rtf_Style[n.str()].reference();
2010}

References indentLevel(), makeIndexName(), rtf_Style, and QCString::str().

Referenced by startIndexList().

◆ rtfwriteRuler_doubleline()

void RTFGenerator::rtfwriteRuler_doubleline ( )
private

Definition at line 2569 of file rtfgen.cpp.

2570{
2571 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_doubleline)}\n")
2572 m_t << "{\\pard\\widctlpar\\brdrb\\brdrdb\\brdrw15\\brsp20 \\adjustright \\par}\n";
2573}

References DBG_RTF, and OutputGenerator::m_t.

◆ rtfwriteRuler_emboss()

void RTFGenerator::rtfwriteRuler_emboss ( )
private

Definition at line 2575 of file rtfgen.cpp.

2576{
2577 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_emboss)}\n")
2578 m_t << "{\\pard\\widctlpar\\brdrb\\brdremboss\\brdrw15\\brsp20 \\adjustright \\par}\n";
2579}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by beginRTFSection().

◆ rtfwriteRuler_thick()

void RTFGenerator::rtfwriteRuler_thick ( )
private

Definition at line 2581 of file rtfgen.cpp.

2582{
2583 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_thick)}\n")
2584 m_t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw75\\brsp20 \\adjustright \\par}\n";
2585}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by beginRTFChapter().

◆ rtfwriteRuler_thin()

void RTFGenerator::rtfwriteRuler_thin ( )
private

Definition at line 2587 of file rtfgen.cpp.

2588{
2589 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_thin)}\n")
2590 m_t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw5\\brsp20 \\adjustright \\par}\n";
2591}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by writeRuler().

◆ setRelativePath()

void RTFGenerator::setRelativePath ( const QCString & path)

Definition at line 338 of file rtfgen.cpp.

339{
340 m_relPath = path;
341}

References m_relPath.

Referenced by startFile().

◆ setSourceFileName()

void RTFGenerator::setSourceFileName ( const QCString & sourceFileName)

Definition at line 343 of file rtfgen.cpp.

344{
346}
void setSourceFileName(const QCString &name)
Definition rtfgen.cpp:286

References m_codeGen, and RTFCodeGenerator::setSourceFileName().

Referenced by endFile(), and startFile().

◆ startAnonTypeScope()

void RTFGenerator::startAnonTypeScope ( int )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 157 of file rtfgen.h.

157{}

◆ startBold()

void RTFGenerator::startBold ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 173 of file rtfgen.h.

173{ m_t << "{\\b "; }

References OutputGenerator::m_t.

Referenced by startConstraintList(), startExamples(), startInlineHeader(), and startMemberDoc().

◆ startCallGraph()

void RTFGenerator::startCallGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2306 of file rtfgen.cpp.

2307{
2308 DBG_RTF(m_t << "{\\comment (startCallGraph)}\n")
2309}

References DBG_RTF, and OutputGenerator::m_t.

◆ startCenter()

void RTFGenerator::startCenter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 185 of file rtfgen.h.

185{ m_t << "{\\qc\n"; }

References OutputGenerator::m_t.

◆ startClassDiagram()

void RTFGenerator::startClassDiagram ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1813 of file rtfgen.cpp.

1814{
1815 DBG_RTF(m_t << "{\\comment startClassDiagram }\n")
1816}

References DBG_RTF, and OutputGenerator::m_t.

◆ startCompoundTemplateParams()

void RTFGenerator::startCompoundTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1456 of file rtfgen.cpp.

1457{
1458 //beginRTFSubSubSection();
1459 m_t << "\n";
1460 DBG_RTF(m_t << "{\\comment Begin SubSubSection}\n")
1461 m_t << "{\n";
1462 int level = 4 + m_hierarchyLevel;
1463 m_t << rtf_Style_Reset << rtf_Style[QCString().sprintf("Heading%d", level).str()].reference() << "\n";
1464}

References DBG_RTF, m_hierarchyLevel, OutputGenerator::m_t, rtf_Style, rtf_Style_Reset, QCString::sprintf(), and QCString::str().

◆ startConstraintDocs()

void RTFGenerator::startConstraintDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2634 of file rtfgen.cpp.

2635{
2636 DBG_RTF(m_t << "{\\comment (startConstraintDocs)}\n")
2637}

References DBG_RTF, and OutputGenerator::m_t.

◆ startConstraintList()

void RTFGenerator::startConstraintList ( const QCString & header)
overridevirtual

Implements OutputGenIntf.

Definition at line 2593 of file rtfgen.cpp.

2594{
2595 DBG_RTF(m_t << "{\\comment (startConstraintList)}\n")
2596 m_t << "{"; // ends at endConstraintList
2597 m_t << "{";
2598 startBold();
2599 newParagraph();
2600 docify(header);
2601 endBold();
2602 m_t << "}";
2603 newParagraph();
2604 incIndentLevel();
2605 m_t << rtf_Style_Reset << rtf_DList_DepthStyle();
2606}

References DBG_RTF, docify(), endBold(), incIndentLevel(), OutputGenerator::m_t, newParagraph(), rtf_DList_DepthStyle(), rtf_Style_Reset, and startBold().

◆ startConstraintParam()

void RTFGenerator::startConstraintParam ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2608 of file rtfgen.cpp.

2609{
2610 DBG_RTF(m_t << "{\\comment (startConstraintParam)}\n")
2611 startEmphasis();
2612}
void startEmphasis() override
Definition rtfgen.h:171

References DBG_RTF, OutputGenerator::m_t, and startEmphasis().

◆ startConstraintType()

void RTFGenerator::startConstraintType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2621 of file rtfgen.cpp.

2622{
2623 DBG_RTF(m_t << "{\\comment (startConstraintType)}\n")
2624 startEmphasis();
2625}

References DBG_RTF, OutputGenerator::m_t, and startEmphasis().

◆ startContents()

void RTFGenerator::startContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 217 of file rtfgen.h.

217{}

◆ startDescForItem()

void RTFGenerator::startDescForItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1750 of file rtfgen.cpp.

1751{
1752 DBG_RTF(m_t << "{\\comment (startDescForItem) }\n")
1753}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDescTable()

void RTFGenerator::startDescTable ( const QCString & title)
overridevirtual

Implements OutputGenIntf.

Definition at line 1903 of file rtfgen.cpp.

1904{
1905 DBG_RTF(m_t << "{\\comment (startDescTable) }\n")
1906 m_t << "{\\par\n";
1907 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
1908 docify(title);
1909 m_t << ":\\par}\n";
1910 m_t << rtf_Style_Reset << rtf_DList_DepthStyle();
1911 m_t << "\\trowd \\trgaph108\\trleft426\\tblind426"
1912 "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1913 "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1914 "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1915 "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
1916 "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
1917 "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 \n";
1918 int columnPos[2] = { 25, 100 };
1919 for (int i=0;i<2;i++)
1920 {
1921 m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1922 "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1923 "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1924 "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
1925 "\\cltxlrtb "
1926 "\\cellx" << (rtf_pageWidth*columnPos[i]/100) << "\n";
1927 }
1928 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1929}

References DBG_RTF, docify(), OutputGenerator::m_t, rtf_DList_DepthStyle(), rtf_pageWidth, rtf_Style, and rtf_Style_Reset.

◆ startDescTableData()

void RTFGenerator::startDescTableData ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1957 of file rtfgen.cpp.

1958{
1959 DBG_RTF(m_t << "{\\comment (startDescTableData) }\n")
1960 m_t << "{";
1961}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDescTableRow()

void RTFGenerator::startDescTableRow ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1937 of file rtfgen.cpp.

1938{
1939}

◆ startDescTableTitle()

void RTFGenerator::startDescTableTitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1945 of file rtfgen.cpp.

1946{
1947 DBG_RTF(m_t << "{\\comment (startDescTableTitle) }\n")
1948 m_t << "{\\qr ";
1949}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDirDepGraph()

void RTFGenerator::startDirDepGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2328 of file rtfgen.cpp.

2329{
2330 DBG_RTF(m_t << "{\\comment (startDirDepGraph)}\n")
2331}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDotGraph()

void RTFGenerator::startDotGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2253 of file rtfgen.cpp.

2254{
2255 DBG_RTF(m_t << "{\\comment (startDotGraph)}\n")
2256}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDoxyAnchor()

void RTFGenerator::startDoxyAnchor ( const QCString & ,
const QCString & ,
const QCString & ,
const QCString & ,
const QCString &  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1665 of file rtfgen.cpp.

1669{
1670 DBG_RTF(m_t << "{\\comment startDoxyAnchor}\n")
1671}

References DBG_RTF, and OutputGenerator::m_t.

◆ startEmphasis()

void RTFGenerator::startEmphasis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 171 of file rtfgen.h.

171{ m_t << "{\\i "; }

References OutputGenerator::m_t.

Referenced by startConstraintParam(), startConstraintType(), startMemberDescription(), startMemberGroupDocs(), and startPageRef().

◆ startExamples()

void RTFGenerator::startExamples ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2504 of file rtfgen.cpp.

2505{
2506 DBG_RTF(m_t << "{\\comment (startExamples)}\n")
2507 m_t << "{"; // ends at endDescList
2508 m_t << "{"; // ends at endDescTitle
2509 startBold();
2510 newParagraph();
2511 docify(theTranslator->trExamples());
2512 endBold();
2513 m_t << "}";
2514 newParagraph();
2515 incIndentLevel();
2516 m_t << rtf_Style_Reset << rtf_DList_DepthStyle();
2517}

References DBG_RTF, docify(), endBold(), incIndentLevel(), OutputGenerator::m_t, newParagraph(), rtf_DList_DepthStyle(), rtf_Style_Reset, startBold(), theTranslator, and Translator::trExamples().

◆ startFile()

void RTFGenerator::startFile ( const QCString & name,
const QCString & manName,
const QCString & title,
int id,
int hierarchyLevel )
overridevirtual

Implements OutputGenIntf.

Definition at line 658 of file rtfgen.cpp.

659{
660 //setEncoding(QCString().sprintf("CP%s",theTranslator->trRTFansicp()));
661 QCString fileName=name;
663 m_hierarchyLevel = hierarchyLevel;
664
665 if (!fileName.endsWith(".rtf")) fileName+=".rtf";
670}
bool endsWith(const char *s) const
Definition qcstring.h:495
void startPlainFile(const QCString &name) override
Definition rtfgen.h:293
void beginRTFDocument()
Definition rtfgen.cpp:480
void setRelativePath(const QCString &path)
Definition rtfgen.cpp:338
QCString relativePathToRoot(const QCString &name)
Definition util.cpp:3872

References beginRTFDocument(), QCString::endsWith(), OutputGenerator::fileName(), m_hierarchyLevel, m_relPath, relativePathToRoot(), setRelativePath(), setSourceFileName(), startPlainFile(), and stripPath().

◆ startGroupCollaboration()

void RTFGenerator::startGroupCollaboration ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2298 of file rtfgen.cpp.

2299{
2300}

◆ startGroupHeader()

void RTFGenerator::startGroupHeader ( int extraIndent)
overridevirtual

Implements OutputGenIntf.

Definition at line 1597 of file rtfgen.cpp.

1598{
1599 DBG_RTF(m_t << "{\\comment startGroupHeader}\n")
1601 extraIndent += m_hierarchyLevel;
1602 if (extraIndent>=2)
1603 {
1604 m_t << rtf_Style["Heading5"].reference();
1605 }
1606 else if (extraIndent==1)
1607 {
1608 m_t << rtf_Style["Heading4"].reference();
1609 }
1610 else // extraIndent==0
1611 {
1612 m_t << rtf_Style["Heading3"].reference();
1613 }
1614 m_t << "\n";
1615}

References DBG_RTF, m_hierarchyLevel, OutputGenerator::m_t, rtf_Style, and rtf_Style_Reset.

Referenced by startMemberHeader().

◆ startHeaderSection()

void RTFGenerator::startHeaderSection ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 145 of file rtfgen.h.

145{}

◆ startInclDepGraph()

void RTFGenerator::startInclDepGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2276 of file rtfgen.cpp.

2277{
2278 DBG_RTF(m_t << "{\\comment (startInclDepGraph)}\n")
2279}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndent()

void RTFGenerator::startIndent ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1716 of file rtfgen.cpp.

1717{
1719 DBG_RTF(m_t << "{\\comment (startIndent) }\n")
1720 m_t << "{\n";
1721 m_t << rtf_Style_Reset << rtf_CList_DepthStyle() << "\n";
1722}
void incIndentLevel()
Definition rtfgen.cpp:1976

References DBG_RTF, incIndentLevel(), OutputGenerator::m_t, rtf_CList_DepthStyle(), and rtf_Style_Reset.

◆ startIndexItem()

void RTFGenerator::startIndexItem ( const QCString & ref,
const QCString & file )
overridevirtual

Implements OutputGenIntf.

Definition at line 1368 of file rtfgen.cpp.

1369{
1370 DBG_RTF(m_t << "{\\comment (startIndexItem)}\n")
1371
1373 {
1374 m_t << "\\par\n";
1376 }
1377}

References DBG_RTF, m_omitParagraph, OutputGenerator::m_t, and TRUE.

◆ startIndexKey()

void RTFGenerator::startIndexKey ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1419 of file rtfgen.cpp.

1420{
1421 DBG_RTF(m_t << "{\\comment (startIndexKey)}\n")
1422 m_t << "{\\b ";
1423}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndexList()

void RTFGenerator::startIndexList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1298 of file rtfgen.cpp.

1299{
1300 DBG_RTF(m_t << "{\\comment (startIndexList)}\n")
1301 m_t << "{\n";
1302 m_t << "\\par\n";
1303 incIndentLevel();
1304 m_t << rtf_Style_Reset << rtf_LCList_DepthStyle() << "\n";
1305 m_omitParagraph = TRUE;
1306}

References DBG_RTF, incIndentLevel(), m_omitParagraph, OutputGenerator::m_t, rtf_LCList_DepthStyle(), rtf_Style_Reset, and TRUE.

◆ startIndexListItem()

void RTFGenerator::startIndexListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2654 of file rtfgen.cpp.

2655{
2656 DBG_RTF(m_t << "{\\comment (startIndexListItem)}\n")
2657}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndexSection()

void RTFGenerator::startIndexSection ( IndexSection is)
overridevirtual

Implements OutputGenIntf.

Definition at line 692 of file rtfgen.cpp.

693{
694 //QCString paperName;
695
696 //m_indentLevel = 0;
697
698 switch (is)
699 {
701 // basic RTFstart
702 // get readyfor author etc
703
704 m_t << "{\\info \n";
705 m_t << "{\\title {\\comment ";
706 break;
708 m_t << "}\n";
709 if (!rtf_subject.isEmpty()) m_t << "{\\subject " << rtf_subject << "}\n";
710 if (!rtf_comments.isEmpty()) m_t << "{\\comment " << rtf_comments << "}\n";
711 if (!rtf_company.isEmpty()) m_t << "{\\company " << rtf_company << "}\n";
712 if (!rtf_author.isEmpty()) m_t << "{\\author " << rtf_author << "}\n";
713 if (!rtf_manager.isEmpty()) m_t << "{\\manager " << rtf_manager << "}\n";
714 if (!rtf_documentType.isEmpty()) m_t << "{\\category " << rtf_documentType << "}\n";
715 if (!rtf_keywords.isEmpty()) m_t << "{\\keywords " << rtf_keywords << "}\n";
716 m_t << "{\\comment ";
717 break;
719 //Introduction
721 break;
723 //Topic Index
725 break;
727 //Module Index
729 break;
731 //Directory Index
733 break;
735 //Namespace Index
737 break;
739 //Concept Index
741 break;
743 //Hierarchical Index
744 DBG_RTF(m_t << "{\\comment start classhierarchy}\n")
746 break;
748 //Annotated Compound Index
750 break;
752 //Annotated File Index
754 break;
756 //Related Page Index
758 break;
760 {
761 //Topic Documentation
762 for (const auto &gd : *Doxygen::groupLinkedMap)
763 {
764 if (!gd->isReference())
765 {
767 break;
768 }
769 }
770 }
771 break;
773 {
774 //Module Documentation
775 for (const auto &mod : ModuleManager::instance().modules())
776 {
777 if (!mod->isReference() && mod->isPrimaryInterface())
778 {
780 break;
781 }
782 }
783 }
784 break;
786 {
787 //Directory Documentation
788 for (const auto &dd : *Doxygen::dirLinkedMap)
789 {
790 if (dd->isLinkableInProject())
791 {
793 break;
794 }
795 }
796 }
797 break;
799 {
800 // Namespace Documentation
801 for (const auto &nd : *Doxygen::namespaceLinkedMap)
802 {
803 if (nd->isLinkableInProject())
804 {
806 break;
807 }
808 }
809 }
810 break;
812 {
813 // Concept Documentation
814 for (const auto &cd : *Doxygen::conceptLinkedMap)
815 {
816 if (cd->isLinkableInProject())
817 {
819 break;
820 }
821 }
822 }
823 break;
825 {
826 //Compound Documentation
827 for (const auto &cd : *Doxygen::classLinkedMap)
828 {
829 if (cd->isLinkableInProject() &&
830 cd->templateMaster()==nullptr &&
831 !cd->isEmbeddedInOuterScope() &&
832 !cd->isAlias()
833 )
834 {
836 break;
837 }
838 }
839 }
840 break;
842 {
843 //File Documentation
844 bool isFirst=TRUE;
845 for (const auto &fn : *Doxygen::inputNameLinkedMap)
846 {
847 for (const auto &fd : *fn)
848 {
849 if (fd->isLinkableInProject() || fd->generateSourceFile())
850 {
851 if (isFirst)
852 {
854 isFirst=FALSE;
855 break;
856 }
857 }
858 }
859 if (!isFirst)
860 {
861 break;
862 }
863 }
864 }
865 break;
867 {
868 //Example Documentation
870 }
871 break;
873 break;
875 break;
877 break;
878 }
879}
IndexSection
Definition index.h:32
QCString rtf_keywords
Definition rtfstyle.cpp:32
QCString rtf_manager
Definition rtfstyle.cpp:29
QCString rtf_comments
Definition rtfstyle.cpp:25
QCString rtf_subject
Definition rtfstyle.cpp:24

References beginRTFChapter(), Doxygen::classLinkedMap, Doxygen::conceptLinkedMap, DBG_RTF, Doxygen::dirLinkedMap, FALSE, Doxygen::groupLinkedMap, Doxygen::inputNameLinkedMap, ModuleManager::instance(), isClassDocumentation, isClassHierarchyIndex, isCompoundIndex, isConceptDocumentation, isConceptIndex, isDirDocumentation, isDirIndex, QCString::isEmpty(), isEndIndex, isExampleDocumentation, isFileDocumentation, isFileIndex, isMainPage, isModuleDocumentation, isModuleIndex, isNamespaceDocumentation, isNamespaceIndex, isPageDocumentation, isPageDocumentation2, isPageIndex, isTitlePageAuthor, isTitlePageStart, isTopicDocumentation, isTopicIndex, OutputGenerator::m_t, ModuleManager::modules(), Doxygen::namespaceLinkedMap, rtf_author, rtf_comments, rtf_company, rtf_documentType, rtf_keywords, rtf_manager, rtf_subject, and TRUE.

◆ startIndexValue()

void RTFGenerator::startIndexValue ( bool hasBrief)
overridevirtual

Implements OutputGenIntf.

Definition at line 1430 of file rtfgen.cpp.

1431{
1432 DBG_RTF(m_t << "{\\comment (startIndexValue)}\n")
1433 m_t << " ";
1434 if (hasBrief) m_t << "(";
1435}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineHeader()

void RTFGenerator::startInlineHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2665 of file rtfgen.cpp.

2666{
2667 DBG_RTF(m_t << "{\\comment (startInlineHeader)}\n")
2668 m_t << "{\n";
2669 m_t << rtf_Style_Reset << rtf_Style["Heading5"].reference();
2670 startBold();
2671}

References DBG_RTF, OutputGenerator::m_t, rtf_Style, rtf_Style_Reset, and startBold().

◆ startInlineMemberDoc()

void RTFGenerator::startInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2752 of file rtfgen.cpp.

2753{
2754 DBG_RTF(m_t << "{\\comment (startInlineMemberDoc)}\n")
2755 m_t << "{";
2756}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineMemberName()

void RTFGenerator::startInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2740 of file rtfgen.cpp.

2741{
2742 DBG_RTF(m_t << "{\\comment (startInlineMemberName)}\n")
2743 m_t << "{";
2744}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineMemberType()

void RTFGenerator::startInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2728 of file rtfgen.cpp.

2729{
2730 DBG_RTF(m_t << "{\\comment (startInlineMemberType)}\n")
2731 m_t << "{\\qr ";
2732}

References DBG_RTF, and OutputGenerator::m_t.

◆ startItemList()

void RTFGenerator::startItemList ( )
overridevirtual

start bullet list

Implements OutputGenIntf.

Definition at line 1321 of file rtfgen.cpp.

1322{
1323 newParagraph();
1325 int level = indentLevel();
1326 DBG_RTF(m_t << "{\\comment (startItemList level=" << level << ") }\n")
1327 m_t << "{";
1328 m_listItemInfo[level].number = 1;
1329 m_listItemInfo[level].isEnum = false;
1330 m_listItemInfo[level].type = '1';
1331}

References DBG_RTF, incIndentLevel(), indentLevel(), m_listItemInfo, OutputGenerator::m_t, and newParagraph().

◆ startItemListItem()

void RTFGenerator::startItemListItem ( )
overridevirtual

write bullet or enum item

Implements OutputGenIntf.

Definition at line 1344 of file rtfgen.cpp.

1345{
1346 DBG_RTF(m_t << "{\\comment (startItemListItem)}\n")
1347 newParagraph();
1349 int level = indentLevel();
1350 if (m_listItemInfo[level].isEnum)
1351 {
1352 m_t << rtf_EList_DepthStyle() << "\n";
1353 m_t << m_listItemInfo[level].number << ".\\tab ";
1354 m_listItemInfo[level].number++;
1355 }
1356 else
1357 {
1358 m_t << rtf_BList_DepthStyle() << "\n";
1359 }
1361}
QCString rtf_EList_DepthStyle()
Definition rtfgen.cpp:2020
QCString rtf_BList_DepthStyle()
Definition rtfgen.cpp:2013

References DBG_RTF, indentLevel(), m_listItemInfo, m_omitParagraph, OutputGenerator::m_t, newParagraph(), rtf_BList_DepthStyle(), rtf_EList_DepthStyle(), rtf_Style_Reset, and TRUE.

◆ startLabels()

void RTFGenerator::startLabels ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2764 of file rtfgen.cpp.

2765{
2766}

◆ startMemberDeclaration()

void RTFGenerator::startMemberDeclaration ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 192 of file rtfgen.h.

192{}

◆ startMemberDescription()

void RTFGenerator::startMemberDescription ( const QCString & ,
const QCString & ,
bool  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1731 of file rtfgen.cpp.

1732{
1733 DBG_RTF(m_t << "{\\comment (startMemberDescription)}\n")
1734 m_t << "{\n";
1735 incIndentLevel();
1736 m_t << rtf_Style_Reset << rtf_CList_DepthStyle();
1737 startEmphasis();
1738}

References DBG_RTF, incIndentLevel(), OutputGenerator::m_t, rtf_CList_DepthStyle(), rtf_Style_Reset, and startEmphasis().

◆ startMemberDoc()

void RTFGenerator::startMemberDoc ( const QCString & clname,
const QCString & memname,
const QCString & ,
const QCString & ,
int ,
int ,
bool showInline )
overridevirtual

Implements OutputGenIntf.

Definition at line 1624 of file rtfgen.cpp.

1631{
1632 DBG_RTF(m_t << "{\\comment startMemberDoc}\n")
1633 if (!memname.isEmpty() && memname[0]!='@')
1634 {
1635 addIndexItem(memname,clname);
1636 addIndexItem(clname,memname);
1637 }
1638
1639 int level = 4 + m_hierarchyLevel;
1640 if (showInline)
1641 ++level;
1642 if (level > 5)
1643 level = 5;
1644 if (level < 1)
1645 level = 1;
1646 m_t << rtf_Style_Reset << rtf_Style[QCString().sprintf("Heading%d", level).str()].reference();
1647 //styleStack.push(rtf_Style_Heading4);
1648 m_t << "{\n";
1649 //printf("RTFGenerator::startMemberDoc() '%s'\n",rtf_Style["Heading4"].reference());
1650 startBold();
1651 m_t << "\n";
1652}
void startBold() override
Definition rtfgen.h:173

References addIndexItem(), DBG_RTF, QCString::isEmpty(), m_hierarchyLevel, OutputGenerator::m_t, rtf_Style, rtf_Style_Reset, QCString::sprintf(), startBold(), and QCString::str().

◆ startMemberDocList()

void RTFGenerator::startMemberDocList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 151 of file rtfgen.h.

151{}

◆ startMemberDocName()

void RTFGenerator::startMemberDocName ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 255 of file rtfgen.h.

255{}

◆ startMemberDocPrefixItem()

void RTFGenerator::startMemberDocPrefixItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 253 of file rtfgen.h.

253{}

◆ startMemberDocSimple()

void RTFGenerator::startMemberDocSimple ( bool isEnum)
overridevirtual

Implements OutputGenIntf.

Definition at line 2681 of file rtfgen.cpp.

2682{
2683 DBG_RTF(m_t << "{\\comment (startMemberDocSimple)}\n")
2684 m_t << "{\\par\n";
2685 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
2686 if (isEnum)
2687 {
2688 m_t << theTranslator->trEnumerationValues();
2689 }
2690 else
2691 {
2692 m_t << theTranslator->trCompoundMembers();
2693 }
2694 m_t << ":\\par}\n";
2695 m_t << rtf_Style_Reset << rtf_DList_DepthStyle();
2696 m_t << "\\trowd \\trgaph108\\trleft426\\tblind426"
2697 "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
2698 "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
2699 "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
2700 "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
2701 "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
2702 "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 \n";
2703 int n=3,columnPos[3] = { 25, 50, 100 };
2704 if (isEnum)
2705 {
2706 columnPos[0]=30;
2707 columnPos[1]=100;
2708 n=2;
2709 }
2710 for (int i=0;i<n;i++)
2711 {
2712 m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
2713 "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
2714 "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
2715 "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
2716 "\\cltxlrtb "
2717 "\\cellx" << (rtf_pageWidth*columnPos[i]/100) << "\n";
2718 }
2719 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
2720}

References DBG_RTF, OutputGenerator::m_t, rtf_DList_DepthStyle(), rtf_pageWidth, rtf_Style, rtf_Style_Reset, theTranslator, Translator::trCompoundMembers(), and Translator::trEnumerationValues().

◆ startMemberGroup()

void RTFGenerator::startMemberGroup ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2491 of file rtfgen.cpp.

2492{
2493 DBG_RTF(m_t << "{\\comment startMemberGroup}\n")
2495}

References DBG_RTF, OutputGenerator::m_t, rtf_BList_DepthStyle(), and rtf_Style_Reset.

◆ startMemberGroupDocs()

void RTFGenerator::startMemberGroupDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2478 of file rtfgen.cpp.

2479{
2480 DBG_RTF(m_t << "{\\comment startMemberGroupDocs}\n")
2481 startEmphasis();
2482}

References DBG_RTF, OutputGenerator::m_t, and startEmphasis().

◆ startMemberGroupHeader()

void RTFGenerator::startMemberGroupHeader ( bool hasHeader)
overridevirtual

Implements OutputGenIntf.

Definition at line 2463 of file rtfgen.cpp.

2464{
2465 DBG_RTF(m_t << "{\\comment startMemberGroupHeader}\n")
2466 m_t << "{\n";
2467 if (hasHeader) incIndentLevel();
2468 m_t << rtf_Style_Reset << rtf_Style["GroupHeader"].reference();
2469}

References DBG_RTF, incIndentLevel(), OutputGenerator::m_t, rtf_Style, and rtf_Style_Reset.

◆ startMemberHeader()

void RTFGenerator::startMemberHeader ( const QCString & ,
int  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 147 of file rtfgen.h.

147{ startGroupHeader(0); }
void startGroupHeader(int) override
Definition rtfgen.cpp:1597

References startGroupHeader().

◆ startMemberItem()

void RTFGenerator::startMemberItem ( const QCString & ,
MemberItemType ,
const QCString &  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1835 of file rtfgen.cpp.

1836{
1837 DBG_RTF(m_t << "{\\comment startMemberItem }\n")
1838 m_t << rtf_Style_Reset << rtf_BList_DepthStyle() << "\n"; // set style to appropriate depth
1839}

References DBG_RTF, OutputGenerator::m_t, rtf_BList_DepthStyle(), and rtf_Style_Reset.

◆ startMemberList()

void RTFGenerator::startMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1882 of file rtfgen.cpp.

1883{
1884 m_t << "\n";
1885 DBG_RTF(m_t << "{\\comment (startMemberList) }\n")
1886 m_t << "{\n";
1887#ifdef DELETEDCODE
1888 if (!insideTabbing)
1889 m_t << "\\begin{CompactItemize}\n";
1890#endif
1891}

References DBG_RTF, and OutputGenerator::m_t.

◆ startMemberSections()

void RTFGenerator::startMemberSections ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 143 of file rtfgen.h.

143{}

◆ startMemberSubtitle()

void RTFGenerator::startMemberSubtitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2080 of file rtfgen.cpp.

2081{
2082 DBG_RTF(m_t << "{\\comment startMemberSubtitle}\n")
2083 m_t << "{\n";
2084 m_t << rtf_Style_Reset << rtf_CList_DepthStyle() << "\n";
2085}

References DBG_RTF, OutputGenerator::m_t, rtf_CList_DepthStyle(), and rtf_Style_Reset.

◆ startMemberTemplateParams()

void RTFGenerator::startMemberTemplateParams ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 161 of file rtfgen.h.

161{}

◆ startPageDoc()

void RTFGenerator::startPageDoc ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 105 of file rtfgen.h.

105{}

◆ startPageRef()

void RTFGenerator::startPageRef ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1543 of file rtfgen.cpp.

1544{
1545 m_t << " (";
1546 startEmphasis();
1547}

References OutputGenerator::m_t, and startEmphasis().

◆ startParagraph()

void RTFGenerator::startParagraph ( const QCString & classDef)
overridevirtual

Implements OutputGenIntf.

Definition at line 2065 of file rtfgen.cpp.

2066{
2067 DBG_RTF(m_t << "{\\comment startParagraph}\n")
2068 newParagraph();
2069 m_t << "{\n";
2070 if (QCString(txt) == "reference") m_t << "\\ql\n";
2071}

References DBG_RTF, OutputGenerator::m_t, and newParagraph().

◆ startParameterDefVal()

void RTFGenerator::startParameterDefVal ( const char * s)
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 263 of file rtfgen.h.

263{ docify(s); startTypewriter(); }
void startTypewriter() override
Definition rtfgen.h:136

References docify(), and startTypewriter().

◆ startParameterExtra()

void RTFGenerator::startParameterExtra ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 261 of file rtfgen.h.

261{}

◆ startParameterList()

void RTFGenerator::startParameterList ( bool openBracket)
overridevirtual

Implements OutputGenIntf.

Definition at line 2791 of file rtfgen.cpp.

2792{
2793 if (openBracket) m_t << "(";
2794}

References OutputGenerator::m_t.

◆ startParameterName()

void RTFGenerator::startParameterName ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 259 of file rtfgen.h.

259{}

◆ startParameterType()

void RTFGenerator::startParameterType ( bool first,
const QCString & key )
overridevirtual

Implements OutputGenIntf.

Definition at line 2529 of file rtfgen.cpp.

2530{
2531 DBG_RTF(m_t << "{\\comment (startParameterType)}\n")
2532 if (!first && !key.isEmpty())
2533 {
2534 m_t << " " << key << " ";
2535 }
2536}

References DBG_RTF, QCString::isEmpty(), and OutputGenerator::m_t.

◆ startPlainFile()

void RTFGenerator::startPlainFile ( const QCString & name)
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 293 of file rtfgen.h.

void startPlainFile(const QCString &name)
Definition outputgen.cpp:32

References OutputGenerator::startPlainFile().

Referenced by startFile().

◆ startProjectNumber()

void RTFGenerator::startProjectNumber ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 681 of file rtfgen.cpp.

682{
683 DBG_RTF(m_t << "{\\comment startProjectNumber }\n")
684 m_t << " ";
685}

References DBG_RTF, and OutputGenerator::m_t.

◆ startQuickIndices()

void RTFGenerator::startQuickIndices ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 210 of file rtfgen.h.

210{}

◆ startSection()

void RTFGenerator::startSection ( const QCString & ,
const QCString & title,
SectionType type )
overridevirtual

Implements OutputGenIntf.

Definition at line 1760 of file rtfgen.cpp.

1761{
1762 DBG_RTF(m_t << "{\\comment (startSection)}\n")
1763 m_t << "{";
1764 m_t << rtf_Style_Reset;
1765 int num=SectionType::MaxLevel;
1766 switch(type.level())
1767 {
1768 case SectionType::Page: num=2+m_hierarchyLevel; break;
1769 case SectionType::Section: num=3+m_hierarchyLevel; break;
1770 case SectionType::Subsection: // fall through
1771 case SectionType::Subsubsection: // fall through
1772 case SectionType::Paragraph: // fall through
1773 case SectionType::Subparagraph: // fall through
1774 case SectionType::Subsubparagraph: num=4+m_hierarchyLevel; break;
1775 default: ASSERT(0); break;
1776 }
1777 num = std::clamp(num, SectionType::MinLevel, SectionType::MaxLevel);
1778 QCString heading;
1779 heading.sprintf("Heading%d",num);
1780 // set style
1781 m_t << rtf_Style[heading.str()].reference();
1782 // make table of contents entry
1783 m_t << "{\\tc\\tcl" << num << " \\v ";
1784 docify(title);
1785 m_t << "}\n";
1786}

References ASSERT, DBG_RTF, docify(), m_hierarchyLevel, OutputGenerator::m_t, SectionType::MaxLevel, SectionType::MinLevel, SectionType::Page, SectionType::Paragraph, rtf_Style, rtf_Style_Reset, SectionType::Section, QCString::sprintf(), QCString::str(), SectionType::Subparagraph, SectionType::Subsection, SectionType::Subsubparagraph, SectionType::Subsubsection, and type().

◆ startSmall()

void RTFGenerator::startSmall ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 187 of file rtfgen.h.

187{ m_t << "{\\sub "; }

References OutputGenerator::m_t.

◆ startTextBlock()

void RTFGenerator::startTextBlock ( bool dense)
overridevirtual

Implements OutputGenIntf.

Definition at line 2032 of file rtfgen.cpp.

2033{
2034 DBG_RTF(m_t << "{\\comment startTextBlock}\n")
2035 m_t << "{\n";
2036 m_t << rtf_Style_Reset;
2037 if (dense) // no spacing between "paragraphs"
2038 {
2039 m_t << rtf_Style["DenseText"].reference();
2040 }
2041 else // some spacing
2042 {
2043 m_t << rtf_Style["BodyText"].reference();
2044 }
2045}

References DBG_RTF, OutputGenerator::m_t, rtf_Style, and rtf_Style_Reset.

◆ startTextLink()

void RTFGenerator::startTextLink ( const QCString & f,
const QCString & anchor )
overridevirtual

Implements OutputGenIntf.

Definition at line 1472 of file rtfgen.cpp.

1473{
1474 if (Config_getBool(RTF_HYPERLINKS))
1475 {
1476 QCString ref;
1477 if (!f.isEmpty())
1478 {
1479 ref+=stripPath(f);
1480 }
1481 if (!anchor.isEmpty())
1482 {
1483 ref+='_';
1484 ref+=anchor;
1485 }
1486
1487 m_t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1488 m_t << rtfFormatBmkStr(ref);
1489 m_t << "\" }{}";
1490 m_t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1491 }
1492}
QCString rtfFormatBmkStr(const QCString &name)
Definition rtfgen.cpp:2810

References Config_getBool, QCString::isEmpty(), OutputGenerator::m_t, rtfFormatBmkStr(), and stripPath().

◆ startTitleHead()

void RTFGenerator::startTitleHead ( const QCString & )
overridevirtual

Implements OutputGenIntf.

Definition at line 1566 of file rtfgen.cpp.

1567{
1568 DBG_RTF(m_t << "{\\comment startTitleHead}\n")
1569 int level = 2 + m_hierarchyLevel;
1570 QCString heading;
1571 heading.sprintf("Heading%d", level);
1572 // beginRTFSection();
1573 m_t << rtf_Style_Reset << rtf_Style[heading.str()].reference() << "\n";
1574}

References DBG_RTF, m_hierarchyLevel, OutputGenerator::m_t, rtf_Style, rtf_Style_Reset, QCString::sprintf(), and QCString::str().

◆ startTypewriter()

void RTFGenerator::startTypewriter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 136 of file rtfgen.h.

136{ m_t << "{\\f2 "; }

References OutputGenerator::m_t.

Referenced by startParameterDefVal().

◆ type()

OutputType RTFGenerator::type ( ) const
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 94 of file rtfgen.h.

94{ return OutputType::RTF; }

References RTF.

Referenced by startSection().

◆ writeAnchor()

void RTFGenerator::writeAnchor ( const QCString & fileName,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 1847 of file rtfgen.cpp.

1848{
1849 QCString anchor;
1850 if (!fileName.isEmpty())
1851 {
1852 anchor+=stripPath(fileName);
1853 }
1854 if (!fileName.isEmpty() && !name.isEmpty())
1855 {
1856 anchor+='_';
1857 }
1858 if (!name.isEmpty())
1859 {
1860 anchor+=name;
1861 }
1862 //printf("writeAnchor(%s->%s)\n",qPrint(anchor),qPrint(rtfFormatBmkStr(anchor)));
1863
1864 DBG_RTF(m_t << "{\\comment writeAnchor (" << anchor << ")}\n")
1865 m_t << "{\\bkmkstart " << rtfFormatBmkStr(anchor) << "}\n";
1866 m_t << "{\\bkmkend " << rtfFormatBmkStr(anchor) << "}\n";
1867}

References DBG_RTF, OutputGenerator::fileName(), QCString::isEmpty(), OutputGenerator::m_t, rtfFormatBmkStr(), and stripPath().

Referenced by endSection(), and endTitleHead().

◆ writeChar()

void RTFGenerator::writeChar ( char c)
overridevirtual

Implements OutputGenIntf.

Definition at line 1805 of file rtfgen.cpp.

1806{
1807 char cs[2];
1808 cs[0]=c;
1809 cs[1]=0;
1810 docify(cs);
1811}

References docify().

◆ writeDoc()

void RTFGenerator::writeDoc ( const IDocNodeAST * ast,
const Definition * ctx,
const MemberDef * ,
int  )
overridevirtual

Implements OutputGenIntf.

Definition at line 2558 of file rtfgen.cpp.

2559{
2560 auto astImpl = dynamic_cast<const DocNodeAST*>(ast);
2561 if (astImpl)
2562 {
2564 std::visit(visitor,astImpl->root);
2565 }
2567}
virtual QCString getDefFileExtension() const =0
Class representing the abstract syntax tree of a documentation block.
Definition docnode.h:1428
Concrete visitor implementation for RTF output.

References Definition::getDefFileExtension(), m_codeList, m_hierarchyLevel, m_omitParagraph, OutputGenerator::m_t, and TRUE.

Referenced by endIndexSection().

◆ writeExtensionsFile()

void RTFGenerator::writeExtensionsFile ( TextStream & t)
static

Definition at line 363 of file rtfgen.cpp.

364{
365 t << "# Generated by doxygen " << getDoxygenVersion() << "\n\n";
366 t << "# This file describes extensions used for generating RTF output.\n";
367 t << "# All text after a hash (#) is considered a comment and will be ignored.\n";
368 t << "# Remove a hash to activate a line.\n\n";
369
370 t << "# Overrides the project title.\n";
371
372 t << "#Title = \n\n";
373
374 t << "# Name of the company that produced this document.\n";
375 t << "#Company = \n\n";
376
377 t << "# Filename of a company or project logo.\n";
378 t << "#LogoFilename = \n\n";
379
380 t << "# Author of the document.\n";
381 t << "#Author = \n\n";
382
383 t << "# Type of document (e.g. Design Specification, User Manual, etc.).\n";
384 t << "#DocumentType = \n\n";
385
386 t << "# Document tracking number.\n";
387 t << "#DocumentId = \n\n";
388
389 t << "# Name of the author's manager.\n";
390 t << "# This field is not displayed in the document itself, but it is \n";
391 t << "# available in the information block of the rtf file. In Microsoft \n";
392 t << "# Word, it is available under File:Properties.\n";
393 t << "#Manager = \n\n";
394
395 t << "# Subject of the document.\n";
396 t << "# This field is not displayed in the document itself, but it is \n";
397 t << "# available in the information block of the rtf file. In Microsoft \n";
398 t << "# Word, it is available under File:Properties.\n";
399 t << "#Subject = \n\n";
400
401 t << "# Comments regarding the document.\n";
402 t << "# This field is not displayed in the document itself, but it is \n";
403 t << "# available in the information block of the rtf file. In Microsoft \n";
404 t << "# Word, it is available under File:Properties.\n";
405 t << "#Comments = \n\n";
406
407 t << "# Keywords associated with the document.\n";
408 t << "# This field is not displayed in the document itself, but it is \n";
409 t << "# available in the information block of the rtf file. In Microsoft \n";
410 t << "# Word, it is available under File:Properties.\n";
411 t << "#Keywords = \n\n";
412}

Referenced by readConfiguration().

◆ writeFooter()

void RTFGenerator::writeFooter ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 103 of file rtfgen.h.

103{}

◆ writeGraphicalHierarchy()

void RTFGenerator::writeGraphicalHierarchy ( DotGfxHierarchyTable & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 240 of file rtfgen.h.

240{}

◆ writeInheritedSectionTitle()

void RTFGenerator::writeInheritedSectionTitle ( const QCString & ,
const QCString & ref,
const QCString & file,
const QCString & anchor,
const QCString & title,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 2778 of file rtfgen.cpp.

2782{
2784 m_t << rtf_Style["Heading4"].reference();
2785 m_t << "\n";
2786 m_t << theTranslator->trInheritedFrom(docifyToString(title), objectLinkToString(ref, file, anchor, name));
2787 m_t << "\\par\n";
2788 m_t << rtf_Style_Reset << "\n";
2789}
virtual QCString trInheritedFrom(const QCString &members, const QCString &what)=0
static QCString objectLinkToString(const QCString &, const QCString &f, const QCString &anchor, const QCString &text)

References docifyToString(), OutputGenerator::m_t, objectLinkToString(), rtf_Style, rtf_Style_Reset, theTranslator, and Translator::trInheritedFrom().

◆ writeLabel()

void RTFGenerator::writeLabel ( const QCString & l,
bool isLast )
overridevirtual

Implements OutputGenIntf.

Definition at line 2768 of file rtfgen.cpp.

2769{
2770 m_t << "{\\f2 [" << l << "]}";
2771 if (!isLast) m_t << ", ";
2772}

References OutputGenerator::m_t.

◆ writeLatexSpacing()

void RTFGenerator::writeLatexSpacing ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 182 of file rtfgen.h.

182{};//{ m_t << "\\hspace{0.3cm}"; }

◆ writeLocalToc()

void RTFGenerator::writeLocalToc ( const SectionRefs & ,
const LocalToc &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 291 of file rtfgen.h.

291{}

◆ writeLogo()

void RTFGenerator::writeLogo ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 214 of file rtfgen.h.

214{}

◆ writeNavigationPath()

void RTFGenerator::writeNavigationPath ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 213 of file rtfgen.h.

213{}

◆ writeNonBreakableSpace()

void RTFGenerator::writeNonBreakableSpace ( int )
overridevirtual

Implements OutputGenIntf.

Definition at line 1876 of file rtfgen.cpp.

1877{
1878 m_t << "\\~ ";
1879}

References OutputGenerator::m_t.

◆ writeObjectLink()

void RTFGenerator::writeObjectLink ( const QCString & ref,
const QCString & file,
const QCString & anchor,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 1537 of file rtfgen.cpp.

1539{
1540 m_t << objectLinkToString(ref,f,anchor,text);
1541}

References OutputGenerator::m_t, and objectLinkToString().

◆ writePageLink()

void RTFGenerator::writePageLink ( const QCString & name,
bool  )
overridevirtual

Implements OutputGenIntf.

Definition at line 1262 of file rtfgen.cpp.

1263{
1264 m_t << "\\par " << rtf_Style_Reset << "\n";
1265 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1266 m_t << name;
1267 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1268}

References OutputGenerator::m_t, and rtf_Style_Reset.

Referenced by endIndexSection().

◆ writeQuickLinks()

void RTFGenerator::writeQuickLinks ( HighlightedItem ,
const QCString &  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 215 of file rtfgen.h.

215{}

◆ writeRTFReference()

void RTFGenerator::writeRTFReference ( const QCString & label)
private

Definition at line 1869 of file rtfgen.cpp.

1870{
1871 m_t << "{\\field\\fldedit {\\*\\fldinst PAGEREF ";
1872 m_t << rtfFormatBmkStr(stripPath(label));
1873 m_t << " \\\\*MERGEFORMAT}{\\fldrslt pagenum}}";
1874}

References OutputGenerator::m_t, rtfFormatBmkStr(), and stripPath().

Referenced by endIndexItem(), endIndexValue(), and endPageRef().

◆ writeRuler()

void RTFGenerator::writeRuler ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 168 of file rtfgen.h.

void rtfwriteRuler_thin()
Definition rtfgen.cpp:2587

References rtfwriteRuler_thin().

◆ writeSearchInfo()

void RTFGenerator::writeSearchInfo ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 102 of file rtfgen.h.

102{}

◆ writeSplitBar()

void RTFGenerator::writeSplitBar ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 212 of file rtfgen.h.

212{}

◆ writeStartAnnoItem()

void RTFGenerator::writeStartAnnoItem ( const QCString & type,
const QCString & file,
const QCString & path,
const QCString & name )
overridevirtual

Implements OutputGenIntf.

Definition at line 1395 of file rtfgen.cpp.

1397{
1398 DBG_RTF(m_t << "{\\comment (writeStartAnnoItem)}\n")
1399 m_t << "{\\b ";
1400 if (!path.isEmpty()) docify(path);
1401 if (!f.isEmpty() && Config_getBool(RTF_HYPERLINKS))
1402 {
1403 m_t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1405 m_t << "\" }{}";
1406 m_t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1407
1408 docify(name);
1409
1410 m_t << "}}}\n";
1411 }
1412 else
1413 {
1414 docify(name);
1415 }
1416 m_t << "} ";
1417}

References Config_getBool, DBG_RTF, docify(), QCString::isEmpty(), OutputGenerator::m_t, rtfFormatBmkStr(), and stripPath().

◆ writeString()

void RTFGenerator::writeString ( const QCString & text)
overridevirtual

Implements OutputGenIntf.

Definition at line 1293 of file rtfgen.cpp.

1294{
1295 m_t << text;
1296}

References OutputGenerator::m_t.

◆ writeStyleInfo()

void RTFGenerator::writeStyleInfo ( int part)
overridevirtual

Implements OutputGenIntf.

Definition at line 1282 of file rtfgen.cpp.

1283{
1284}

◆ writeStyleSheetFile()

void RTFGenerator::writeStyleSheetFile ( TextStream & t)
static

Definition at line 348 of file rtfgen.cpp.

349{
350 t << "# Generated by doxygen " << getDoxygenVersion() << "\n\n";
351 t << "# This file describes styles used for generating RTF output.\n";
352 t << "# All text after a hash (#) is considered a comment and will be ignored.\n";
353 t << "# Remove a hash to activate a line.\n\n";
354
355 for (int i=0 ; rtf_Style_Default[i].reference!=nullptr ; i++ )
356 {
357 t << "# " << rtf_Style_Default[i].name << " = "
359 << rtf_Style_Default[i].definition << "\n";
360 }
361}

References Rtf_Style_Default::definition, Rtf_Style_Default::name, Rtf_Style_Default::reference, and rtf_Style_Default.

Referenced by readConfiguration().

◆ writeSummaryLink()

void RTFGenerator::writeSummaryLink ( const QCString & ,
const QCString & ,
const QCString & ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 216 of file rtfgen.h.

216{}

◆ writeSynopsis()

void RTFGenerator::writeSynopsis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 205 of file rtfgen.h.

205{}

Member Data Documentation

◆ m_bstartedBody

bool RTFGenerator::m_bstartedBody = false
private

Definition at line 316 of file rtfgen.h.

Referenced by operator=(), and RTFGenerator().

◆ m_codeGen

RTFCodeGenerator* RTFGenerator::m_codeGen
private

◆ m_codeList

std::unique_ptr<OutputCodeList> RTFGenerator::m_codeList
private

Definition at line 332 of file rtfgen.h.

Referenced by operator=(), RTFGenerator(), RTFGenerator(), and writeDoc().

◆ m_hierarchyLevel

int RTFGenerator::m_hierarchyLevel = 0
private

◆ m_indentLevel

int RTFGenerator::m_indentLevel = 0
private

Definition at line 324 of file rtfgen.h.

Referenced by decIndentLevel(), incIndentLevel(), indentLevel(), operator=(), and RTFGenerator().

◆ m_listItemInfo

std::array<RTFListItemInfo,maxIndentLevels> RTFGenerator::m_listItemInfo
private

Definition at line 331 of file rtfgen.h.

Referenced by operator=(), RTFGenerator(), startItemList(), and startItemListItem().

◆ m_numCols

int RTFGenerator::m_numCols = 0
private

Definition at line 318 of file rtfgen.h.

Referenced by operator=(), and RTFGenerator().

◆ m_omitParagraph

◆ m_relPath

QCString RTFGenerator::m_relPath
private

◆ maxIndentLevels

const int RTFGenerator::maxIndentLevels = 13
staticprivate

Definition at line 323 of file rtfgen.h.

Referenced by incIndentLevel(), and indentLevel().


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