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 (const QCString &, 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 &, const QCString &) override
void writeNavigationPath (const QCString &) override
void writeLogo () override
void writeQuickLinks (HighlightedItem, const QCString &, bool) override
void writeSummaryLink (const QCString &, const QCString &, const QCString &, bool) override
void writePageOutline () override
void startContents () override
void endContents () override
void writeNonBreakableSpace (int) override
void startDescTable (const QCString &title, const bool hasInits) override
void endDescTable () override
void startDescTableRow () override
void endDescTableRow () override
void startDescTableTitle () override
void endDescTableTitle () override
void startDescTableInit () override
void endDescTableInit () 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 (const QCString &, 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 startLocalToc (int) override
void endLocalToc () override
void startTocEntry (const SectionInfo *) override
void endTocEntry (const SectionInfo *) 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 79 of file rtfgen.h.

Constructor & Destructor Documentation

◆ RTFGenerator() [1/3]

RTFGenerator::RTFGenerator ( )

Definition at line 339 of file rtfgen.cpp.

340 : OutputGenerator(Config_getString(RTF_OUTPUT))
341 , m_codeList(std::make_unique<OutputCodeList>())
342{
343 m_codeGen = m_codeList->add<RTFCodeGenerator>(&m_t);
344}
TextStream m_t
Definition outputgen.h:116
RTFCodeGenerator * m_codeGen
Definition rtfgen.h:346
std::unique_ptr< OutputCodeList > m_codeList
Definition rtfgen.h:345
#define Config_getString(name)
Definition config.h:32

References Config_getString, m_codeGen, m_codeList, OutputGenerator::m_t, and OutputGenerator::OutputGenerator().

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

◆ RTFGenerator() [2/3]

RTFGenerator::RTFGenerator ( const RTFGenerator & og)

Definition at line 346 of file rtfgen.cpp.

346 : OutputGenerator(og.m_dir), OutputGenIntf()
347{
348 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
349 m_codeGen = m_codeList->get<RTFCodeGenerator>(OutputType::RTF);
350 m_codeGen->setTextStream(&m_t);
353 m_numCols = og.m_numCols;
354 m_relPath = og.m_relPath;
357}
QCString m_dir
Definition outputgen.h:117
int m_indentLevel
Definition rtfgen.h:337
int m_numCols
Definition rtfgen.h:331
std::array< RTFListItemInfo, maxIndentLevels > m_listItemInfo
Definition rtfgen.h:344
bool m_bstartedBody
Definition rtfgen.h:329
QCString m_relPath
Definition rtfgen.h:332
bool m_omitParagraph
Definition rtfgen.h:330

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

◆ RTFGenerator() [3/3]

RTFGenerator::RTFGenerator ( RTFGenerator && )
delete

References RTFGenerator().

◆ ~RTFGenerator()

RTFGenerator::~RTFGenerator ( )
default

Member Function Documentation

◆ addCodeGen()

void RTFGenerator::addCodeGen ( OutputCodeList & list)
overridevirtual

Implements OutputGenIntf.

Definition at line 379 of file rtfgen.cpp.

380{
382}
void add(OutputCodeIntfPtr &&p)
Definition outputlist.h:194
OutputCodeDefer< RTFCodeGenerator > RTFCodeGeneratorDefer
Definition outputlist.h:103

References OutputCodeList::add(), and m_codeGen.

◆ addIndexItem()

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

Implements OutputGenIntf.

Definition at line 1747 of file rtfgen.cpp.

1748{
1749 if (!s1.isEmpty())
1750 {
1751 m_t << "{\\xe \\v ";
1752 docify(s1);
1753 if (!s2.isEmpty())
1754 {
1755 m_t << "\\:";
1756 docify(s2);
1757 }
1758 m_t << "}\n";
1759 }
1760}
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition qcstring.h:150
void docify(const QCString &text) override
Definition rtfgen.cpp:1844

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 1741 of file rtfgen.cpp.

1742{
1743 DBG_RTF(m_t << "{\\comment addLabel}\n")
1744}
#define DBG_RTF(x)

References DBG_RTF, and OutputGenerator::m_t.

◆ beginRTFChapter()

void RTFGenerator::beginRTFChapter ( )
private

Definition at line 663 of file rtfgen.cpp.

664{
665 m_t << "\n";
666 DBG_RTF(m_t << "{\\comment BeginRTFChapter}\n")
668
669 // if we are compact, no extra page breaks...
670 if (Config_getBool(COMPACT_RTF))
671 {
672 // m_t << "\\sect\\sectd\\sbknone\n";
673 m_t << "\\sect\\sbknone\n";
675 }
676 else
677 m_t << "\\sect\\sbkpage\n";
678 //m_t << "\\sect\\sectd\\sbkpage\n";
679
680 m_t << rtf_Style["Heading1"].reference() << "\n";
681}
void rtfwriteRuler_thick()
Definition rtfgen.cpp:2644
#define Config_getBool(name)
Definition config.h:33
StyleDataMap rtf_Style
Definition rtfstyle.cpp:362
char rtf_Style_Reset[]
Definition rtfstyle.cpp:49

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 526 of file rtfgen.cpp.

527{
528 /* all the included RTF files should begin with the
529 * same header
530 */
531 m_t << "{\\rtf1\\ansi\\ansicpg" << theTranslator->trRTFansicp();
532 m_t << "\\uc1 \\deff0\\deflang1033\\deflangfe1033\n";
533
534 DBG_RTF(m_t << "{\\comment Beginning font list}\n")
535 m_t << "{\\fonttbl ";
536 m_t << "{\\f0\\froman\\fcharset" << theTranslator->trRTFCharSet();
537 m_t << "\\fprq2{\\*\\panose 02020603050405020304}Times New Roman;}\n";
538 m_t << "{\\f1\\fswiss\\fcharset" << theTranslator->trRTFCharSet();
539 m_t << "\\fprq2{\\*\\panose 020b0604020202020204}Arial;}\n";
540 m_t << "{\\f2\\fmodern\\fcharset" << theTranslator->trRTFCharSet();
541 m_t << "\\fprq1{\\*\\panose 02070309020205020404}Courier New;}\n";
542 m_t << "{\\f3\\froman\\fcharset2\\fprq2{\\*\\panose 05050102010706020507}Symbol;}\n";
543 m_t << "}\n";
544 DBG_RTF(m_t << "{\\comment begin colors}\n")
545 m_t << "{\\colortbl;";
546 m_t << "\\red0\\green0\\blue0;";
547 m_t << "\\red0\\green0\\blue255;";
548 m_t << "\\red0\\green255\\blue255;";
549 m_t << "\\red0\\green255\\blue0;";
550 m_t << "\\red255\\green0\\blue255;";
551 m_t << "\\red255\\green0\\blue0;";
552 m_t << "\\red255\\green255\\blue0;";
553 m_t << "\\red255\\green255\\blue255;";
554 m_t << "\\red0\\green0\\blue128;";
555 m_t << "\\red0\\green128\\blue128;";
556 m_t << "\\red0\\green128\\blue0;";
557 m_t << "\\red128\\green0\\blue128;";
558 m_t << "\\red128\\green0\\blue0;";
559 m_t << "\\red128\\green128\\blue0;";
560 m_t << "\\red128\\green128\\blue128;";
561 m_t << "\\red192\\green192\\blue192;";
562
563 // code highlighting colors. Note order is important see also RTFGenerator::startFontClass
564 m_t << "\\red0\\green128\\blue0;"; // keyword = index 17
565 m_t << "\\red96\\green64\\blue32;"; // keywordtype
566 m_t << "\\rede0\\green128\\blue0;"; // keywordflow
567 m_t << "\\red128\\green0\\blue0;"; // comment
568 m_t << "\\red128\\green96\\blue32;"; // preprocessor
569 m_t << "\\red0\\green32\\blue128;"; // stringliteral
570 m_t << "\\red0\\green128\\blue128;"; // charliteral
571 m_t << "\\red255\\green0\\blue255;"; // vhdldigit
572 m_t << "\\red0\\green0\\blue0;"; // vhdlchar
573 m_t << "\\red112\\green0\\blue112;"; // vhdlkeyword
574 m_t << "\\red255\\green0\\blue0;"; // vhdllogic
575
576 m_t << "}\n";
577
578 DBG_RTF(m_t << "{\\comment Beginning style list}\n")
579 m_t << "{\\stylesheet\n";
580 m_t << "{\\widctlpar\\adjustright \\fs20\\cgrid \\snext0 Normal;}\n";
581
582 // set the paper dimensions according to PAPER_TYPE
583 auto paperType = Config_getEnum(PAPER_TYPE);
584 m_t << "{";
585 switch (paperType)
586 {
587 // width & height values are inches * 1440
588 case PAPER_TYPE_t::a4: m_t << "\\paperw11900\\paperh16840"; break;
589 case PAPER_TYPE_t::letter: m_t << "\\paperw12240\\paperh15840"; break;
590 case PAPER_TYPE_t::legal: m_t << "\\paperw12240\\paperh20160"; break;
591 case PAPER_TYPE_t::executive: m_t << "\\paperw10440\\paperh15120"; break;
592 }
593 m_t << "\\margl1800\\margr1800\\margt1440\\margb1440\\gutter0\\ltrsect}\n";
594
595 // sort styles ascending by \s-number via an intermediate QArray
596 unsigned maxIndex = 0;
597 for (const auto &[name,data] : rtf_Style)
598 {
599 uint32_t index = data.index();
600 if (index > maxIndex) maxIndex = index;
601 }
602 std::vector<const StyleData*> array(maxIndex + 1, nullptr);
603 ASSERT(maxIndex < array.size());
604
605 for (const auto &[name,data] : rtf_Style)
606 {
607 uint32_t index = data.index();
608 if (array[index] != nullptr)
609 {
610 err("Style '{}' redefines \\s{}.\n", name, index);
611 }
612 array[index] = &data;
613 }
614
615 // write array elements
616 size_t size = array.size();
617 for(size_t i = 0; i < size; i++)
618 {
619 const StyleData *pStyle = array[i];
620 if (pStyle)
621 {
622 m_t << "{" << pStyle->reference() << pStyle->definition() << ";}\n";
623 }
624 }
625
626 m_t << "}\n";
627
628 // place to write rtf_Table_Default
629 int id = -1;
630 m_t << "{\\*\\listtable" << "\n";
631 for (int i=0 ; rtf_Table_Default[i].definition ; i++ )
632 {
633 if (id != rtf_Table_Default[i].id)
634 {
635 if (id != -1)
636 {
637 m_t << "\\listid" << id << "}" << "\n";
638 }
639 id = rtf_Table_Default[i].id;
640 m_t << "{\\list\\listtemplateid" << rtf_Table_Default[i].id << "\n";
641 }
642 m_t << "{ " << rtf_Table_Default[i].definition << " }" << "\n";
643 }
644 m_t << "\\listid" << id << "}" << "\n";
645 m_t << "}" <<"\n";
646 m_t << "{\\listoverridetable" <<"\n";
647 id = -1;
648 for (int i=0 ; rtf_Table_Default[i].definition ; i++ )
649 {
650 if (id != rtf_Table_Default[i].id)
651 {
652 id = rtf_Table_Default[i].id;
653 m_t << "{\\listoverride\\listid" << id << "\\listoverridecount0\\ls" << id << "}" << "\n";
654 }
655 }
656 m_t << "}" << "\n";
657
658 // this comment is needed for postprocessing!
659 m_t << "{\\comment begin body}\n";
660
661}
virtual QCString trRTFansicp()=0
#define Config_getEnum(name)
Definition config.h:35
Translator * theTranslator
Definition language.cpp:71
#define err(fmt,...)
Definition message.h:127
#define ASSERT(x)
Definition qcstring.h:39
Rtf_Table_Default rtf_Table_Default[]
Definition rtfstyle.cpp:245
const char * definition
Definition rtfstyle.h:50
const char * definition() const
Definition rtfstyle.h:70
const char * reference() const
Definition rtfstyle.h:69

References ASSERT, Config_getEnum, DBG_RTF, StyleData::definition(), err, OutputGenerator::m_t, StyleData::reference(), rtf_Style, rtf_Table_Default, and theTranslator.

Referenced by startFile().

◆ beginRTFSection()

void RTFGenerator::beginRTFSection ( )
private

Definition at line 683 of file rtfgen.cpp.

684{
685 m_t << "\n";
686 DBG_RTF(m_t << "{\\comment BeginRTFSection}\n")
688
689 // if we are compact, no extra page breaks...
690 if (Config_getBool(COMPACT_RTF))
691 {
692 m_t << "\\sect\\sbknone\n";
694 }
695 else
696 {
697 m_t << "\\sect\\sbkpage\n";
698 }
699 int level = 2 + m_hierarchyLevel;
700
701 m_t << rtf_Style[QCString().sprintf("Heading%d", level).str()].reference() << "\n";
702}
int m_hierarchyLevel
Definition rtfgen.h:333
void rtfwriteRuler_emboss()
Definition rtfgen.cpp:2638

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 519 of file rtfgen.cpp.

520{
521 QCString dname = Config_getString(RTF_OUTPUT);
522 Dir d(dname.str());
523 clearSubDirs(d);
524}
const std::string & str() const
Definition qcstring.h:537
void clearSubDirs(const Dir &d)
Definition util.cpp:4180

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

◆ clearBuffer()

void RTFGenerator::clearBuffer ( )

◆ clone()

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

Implements OutputGenIntf.

Definition at line 102 of file rtfgen.h.

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

◆ decIndentLevel()

void RTFGenerator::decIndentLevel ( )
private

Definition at line 2050 of file rtfgen.cpp.

2051{
2052 m_indentLevel--;
2053 if (m_indentLevel<0)
2054 {
2055 err("Negative indent level while generating RTF output!\n");
2056 m_indentLevel=0;
2057 }
2058 m_codeGen->setIndentLevel(m_indentLevel);
2059}

References err, m_codeGen, and m_indentLevel.

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

◆ docify()

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

Implements OutputGenIntf.

Definition at line 1844 of file rtfgen.cpp.

1845{
1846 if (str.isEmpty()) return;
1847 m_t << docifyToString(str);
1849}
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 165 of file rtfgen.h.

165{}

◆ endBold()

void RTFGenerator::endBold ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 181 of file rtfgen.h.

181{ 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 2374 of file rtfgen.cpp.

2375{
2376 newParagraph();
2377
2379
2380 // display the file
2381 m_t << "{\n";
2382 m_t << rtf_Style_Reset << "\n";
2383 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2384 QCString imgExt = getDotImageExtension();
2385 m_t << fn << "." << imgExt;
2386 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2387 m_t << "}\n";
2388 DBG_RTF(m_t << "{\\comment (endCallGraph)}\n")
2389}
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:2118
QCString getDotImageExtension()
Definition util.cpp:6800

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

◆ endCenter()

void RTFGenerator::endCenter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 193 of file rtfgen.h.

193{ 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 1864 of file rtfgen.cpp.

1866{
1867 newParagraph();
1868
1869 // create a png file
1871
1872 // display the file
1873 m_t << "{\n";
1874 m_t << rtf_Style_Reset << "\n";
1875 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
1876 m_t << fileName << ".png\"";
1877 m_t << " \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
1878 m_t << "}\n";
1879}
void writeImage(TextStream &t, const QCString &path, const QCString &relPath, const QCString &file, bool generateMap=true) const
Definition diagram.cpp:1369

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 1512 of file rtfgen.cpp.

1513{
1514 newParagraph();
1515 m_t << "}\n";
1516}

References OutputGenerator::m_t, and newParagraph().

◆ endConstraintDocs()

void RTFGenerator::endConstraintDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2702 of file rtfgen.cpp.

2703{
2704 DBG_RTF(m_t << "{\\comment (endConstraintDocs)}\n")
2705 newParagraph();
2706}

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

◆ endConstraintList()

void RTFGenerator::endConstraintList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2708 of file rtfgen.cpp.

2709{
2710 DBG_RTF(m_t << "{\\comment (endConstraintList)}\n")
2711 newParagraph();
2714 m_t << "}";
2715}
void decIndentLevel()
Definition rtfgen.cpp:2050
#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 2677 of file rtfgen.cpp.

2678{
2679 DBG_RTF(m_t << "{\\comment (endConstraintParam)}\n")
2680 endEmphasis();
2681 m_t << " : ";
2682}
void endEmphasis() override
Definition rtfgen.h:179

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

◆ endConstraintType()

void RTFGenerator::endConstraintType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2690 of file rtfgen.cpp.

2691{
2692 DBG_RTF(m_t << "{\\comment (endConstraintType)}\n")
2693 endEmphasis();
2694 m_t << " ";
2695}

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

◆ endContents()

void RTFGenerator::endContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 226 of file rtfgen.h.

226{}

◆ endDescForItem()

void RTFGenerator::endDescForItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1801 of file rtfgen.cpp.

1802{
1803 DBG_RTF(m_t << "{\\comment (endDescForItem) }\n")
1804}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTable()

void RTFGenerator::endDescTable ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1978 of file rtfgen.cpp.

1979{
1980 DBG_RTF(m_t << "{\\comment (endDescTable)}\n")
1981 m_t << "}\n";
1982}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTableData()

void RTFGenerator::endDescTableData ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2025 of file rtfgen.cpp.

2026{
2027 DBG_RTF(m_t << "{\\comment (endDescTableData) }\n")
2028 m_t << "\\cell }{\\row }\n";
2029}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTableInit()

void RTFGenerator::endDescTableInit ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2013 of file rtfgen.cpp.

2014{
2015 DBG_RTF(m_t << "{\\comment (endDescTableInit) }" << endl)
2016 m_t << "\\cell }";
2017}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTableRow()

void RTFGenerator::endDescTableRow ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1988 of file rtfgen.cpp.

1989{
1990}

◆ endDescTableTitle()

void RTFGenerator::endDescTableTitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1999 of file rtfgen.cpp.

2000{
2001 DBG_RTF(m_t << "{\\comment (endDescTableTitle) }\n")
2002 m_t << "\\cell }";
2003}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDirDepGraph()

void RTFGenerator::endDirDepGraph ( DotDirDeps & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2396 of file rtfgen.cpp.

2397{
2398 newParagraph();
2399
2401
2402 // display the file
2403 m_t << "{\n";
2404 m_t << rtf_Style_Reset << "\n";
2405 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2406 QCString imgExt = getDotImageExtension();
2407 m_t << fn << "." << imgExt;
2408 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2409 m_t << "}\n";
2410 DBG_RTF(m_t << "{\\comment (endDirDepGraph)}\n")
2411}
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 BITMAP, DBG_RTF, OutputGenerator::dir(), FALSE, OutputGenerator::fileName(), getDotImageExtension(), m_relPath, OutputGenerator::m_t, newParagraph(), Rtf, rtf_Style_Reset, and DotDirDeps::writeGraph().

◆ endDotGraph()

void RTFGenerator::endDotGraph ( DotClassGraph & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2321 of file rtfgen.cpp.

2322{
2323 newParagraph();
2324
2326
2327 // display the file
2328 m_t << "{\n";
2329 m_t << rtf_Style_Reset << "\n";
2330 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2331 QCString imgExt = getDotImageExtension();
2332 m_t << fn << "." << imgExt;
2333 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2334 m_t << "}\n";
2335 newParagraph();
2336 DBG_RTF(m_t << "{\\comment (endDotGraph)}\n")
2337}
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 BITMAP, DBG_RTF, OutputGenerator::dir(), FALSE, OutputGenerator::fileName(), getDotImageExtension(), m_relPath, OutputGenerator::m_t, newParagraph(), Rtf, rtf_Style_Reset, TRUE, and DotClassGraph::writeGraph().

◆ endDoxyAnchor()

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

Implements OutputGenIntf.

Definition at line 1719 of file rtfgen.cpp.

1720{
1721 QCString ref;
1722 if (!fName.isEmpty())
1723 {
1724 ref+=stripPath(fName);
1725 }
1726 if (!anchor.isEmpty())
1727 {
1728 ref+='_';
1729 ref+=anchor;
1730 }
1731
1732 DBG_RTF(m_t << "{\\comment endDoxyAnchor}\n")
1733 m_t << "{\\bkmkstart ";
1734 m_t << rtfFormatBmkStr(ref);
1735 m_t << "}\n";
1736 m_t << "{\\bkmkend ";
1737 m_t << rtfFormatBmkStr(ref);
1738 m_t << "}\n";
1739}
QCString rtfFormatBmkStr(const QCString &name)
Definition rtfgen.cpp:2873
QCString stripPath(const QCString &s)
Definition util.cpp:5461

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

◆ endEmphasis()

void RTFGenerator::endEmphasis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 179 of file rtfgen.h.

179{ m_t << "}"; }

References OutputGenerator::m_t.

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

◆ endExamples()

void RTFGenerator::endExamples ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2582 of file rtfgen.cpp.

2583{
2584 DBG_RTF(m_t << "{\\comment (endExamples)}\n")
2586 newParagraph();
2589 m_t << "}";
2590}

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

◆ endFile()

void RTFGenerator::endFile ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 718 of file rtfgen.cpp.

719{
720 DBG_RTF(m_t << "{\\comment endFile}\n")
721 m_t << "}";
722
723 endPlainFile();
725}
void endPlainFile() override
Definition rtfgen.h:307
void setSourceFileName(const QCString &sourceFileName)
Definition rtfgen.cpp:389

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

◆ endGroupCollaboration()

void RTFGenerator::endGroupCollaboration ( DotGroupCollaboration & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2365 of file rtfgen.cpp.

2366{
2367}

◆ endGroupHeader()

void RTFGenerator::endGroupHeader ( int )
overridevirtual

Implements OutputGenIntf.

Definition at line 1663 of file rtfgen.cpp.

1664{
1665 DBG_RTF(m_t << "{\\comment endGroupHeader}\n")
1666 m_t << "\\par\n";
1667 m_t << rtf_Style_Reset << "\n";
1668}

References DBG_RTF, OutputGenerator::m_t, and rtf_Style_Reset.

Referenced by endMemberHeader().

◆ endHeaderSection()

void RTFGenerator::endHeaderSection ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 153 of file rtfgen.h.

153{}

◆ endInclDepGraph()

void RTFGenerator::endInclDepGraph ( DotInclDepGraph & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2344 of file rtfgen.cpp.

2345{
2346 newParagraph();
2347
2349
2350 // display the file
2351 m_t << "{\n";
2352 m_t << rtf_Style_Reset << "\n";
2353 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2354 QCString imgExt = getDotImageExtension();
2355 m_t << fn << "." << imgExt;
2356 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2357 m_t << "}\n";
2358 DBG_RTF(m_t << "{\\comment (endInclDepGraph)}\n")
2359}
QCString writeGraph(TextStream &t, GraphOutputFormat gf, EmbeddedOutputFormat ef, const QCString &path, const QCString &fileName, const QCString &relPath, bool writeImageMap=TRUE, int graphId=-1)

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

◆ endIndent()

void RTFGenerator::endIndent ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1770 of file rtfgen.cpp.

1771{
1772 m_t << "}\n";
1774}

References decIndentLevel(), and OutputGenerator::m_t.

◆ endIndexItem()

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

Implements OutputGenIntf.

Definition at line 1425 of file rtfgen.cpp.

1426{
1427 DBG_RTF(m_t << "{\\comment (endIndexItem)}\n")
1428 if (ref.isEmpty() && !fn.isEmpty())
1429 {
1430 m_t << "\\tab ";
1432 m_t << "\n";
1433 }
1434 else
1435 {
1436 m_t << "\n";
1437 }
1439}
void writeRTFReference(const QCString &label)
Definition rtfgen.cpp:1915

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

◆ endIndexKey()

void RTFGenerator::endIndexKey ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1471 of file rtfgen.cpp.

1472{
1473 DBG_RTF(m_t << "{\\comment (endIndexKey)}\n")
1474}

References DBG_RTF, and OutputGenerator::m_t.

◆ endIndexList()

void RTFGenerator::endIndexList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1354 of file rtfgen.cpp.

1355{
1356 DBG_RTF(m_t << "{\\comment (endIndexList)}\n")
1357 if (!m_omitParagraph)
1358 {
1359 m_t << "\\par";
1361 }
1362 m_t << "}";
1364}

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

◆ endIndexListItem()

void RTFGenerator::endIndexListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2722 of file rtfgen.cpp.

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

References DBG_RTF, and OutputGenerator::m_t.

◆ endIndexSection()

void RTFGenerator::endIndexSection ( IndexSection is)
overridevirtual

Implements OutputGenIntf.

Definition at line 927 of file rtfgen.cpp.

928{
929 bool fortranOpt = Config_getBool(OPTIMIZE_FOR_FORTRAN);
930 bool vhdlOpt = Config_getBool(OPTIMIZE_OUTPUT_VHDL);
931 QCString projectName = Config_getString(PROJECT_NAME);
932
933 switch (is)
934 {
936 if (!rtf_title.isEmpty())
937 // User has overridden document title in extensions file
938 m_t << "}" << rtf_title;
939 else
940 m_t << "}" << projectName;
941 break;
943 {
944 m_t << " doxygen " << getDoxygenVersion() << ".}\n";
946 DBG_RTF(m_t << "{\\comment end of infoblock}\n");
947 // setup for this section
948 m_t << "}";
949 m_t << rtf_Style_Reset <<"\n";
950 m_t << "\\sectd\\pgnlcrm\n";
951 m_t << "{\\footer "<<rtf_Style["Footer"].reference() << "{\\chpgn}}\n";
952 // the title entry
953 DBG_RTF(m_t << "{\\comment begin title page}\n")
954
955
956 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to title style
957
958 m_t << "\\vertalc\\qc\\par\\par\\par\\par\\par\\par\\par\n";
959 if (!rtf_logoFilename.isEmpty())
960 {
961 m_t << "{\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"" << rtf_logoFilename;
962 m_t << "\" \\\\d \\\\*MERGEFORMAT} {\\fldrslt IMAGE }}\\par\\par\n";
963 }
964 if (!rtf_company.isEmpty())
965 {
966 m_t << rtf_company << "\\par\\par\n";
967 }
968
969 m_t << rtf_Style_Reset << rtf_Style["Title"].reference() << "\n"; // set to title style
970 if (!rtf_title.isEmpty())
971 {
972 // User has overridden document title in extensions file
973 m_t << "{\\field\\fldedit {\\*\\fldinst TITLE \\\\*MERGEFORMAT}{\\fldrslt " << rtf_title << "}}\\par\n";
974 }
975 else
976 {
977 auto parser { createDocParser() };
978 auto ast { validatingParseText(*parser.get(), projectName) };
979 if (ast)
980 {
981 m_t << "{\\field\\fldedit {\\*\\fldinst TITLE \\\\*MERGEFORMAT}{\\fldrslt ";
982 writeDoc(ast.get(),nullptr,nullptr,0);
983 m_t << "}}\\par\n";
984 }
985 }
986
987 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to title style
988 m_t << "\\par\n";
990 {
991 m_t << rtf_documentType << "\\par\n";
992 }
993 if (!rtf_documentId.isEmpty())
994 {
995 m_t << rtf_documentId << "\\par\n";
996 }
997 m_t << "\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\n";
998
999 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to subtitle style
1000 if (!rtf_author.isEmpty())
1001 {
1002 m_t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt "<< rtf_author << " }}\\par\n";
1003 }
1004 else
1005 {
1006 m_t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt AUTHOR}}\\par\n";
1007 }
1008
1009 m_t << theTranslator->trVersion() << " " << Config_getString(PROJECT_NUMBER) << "\\par";
1010 switch (Config_getEnum(TIMESTAMP))
1011 {
1012 case TIMESTAMP_t::YES:
1013 case TIMESTAMP_t::DATETIME:
1014 m_t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}"
1015 "{\\fldrslt "<< dateToString(DateTimeType::DateTime) << " }}\\par\n";
1016 break;
1017 case TIMESTAMP_t::DATE:
1018 m_t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}"
1019 "{\\fldrslt "<< dateToString(DateTimeType::Date) << " }}\\par\n";
1020 break;
1021 case TIMESTAMP_t::NO:
1022 break;
1023 }
1024 m_t << "\\page\\page";
1025 DBG_RTF(m_t << "{\\comment End title page}\n")
1026
1027 // table of contents section
1028 DBG_RTF(m_t << "{\\comment Table of contents}\n")
1029 m_t << "\\vertalt\n";
1030 m_t << rtf_Style_Reset << "\n";
1031 m_t << rtf_Style["Heading1"].reference();
1032 m_t << theTranslator->trRTFTableOfContents() << "\\par\n";
1033 m_t << rtf_Style_Reset << "\\par\n";
1034 m_t << "{\\field\\fldedit {\\*\\fldinst TOC \\\\f \\\\*MERGEFORMAT}{\\fldrslt Table of contents}}\\par\n";
1035 m_t << rtf_Style_Reset << "\n";
1036 }
1037 break;
1039 if (Doxygen::mainPage)
1040 {
1041 writePageLink(Doxygen::mainPage->getOutputFileBase(), TRUE);
1042 }
1043 break;
1045 m_t << "\\par " << rtf_Style_Reset << "\n";
1046 m_t << "{\\tc \\v " << theTranslator->trTopicIndex() << "}\n";
1047 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"topics.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1048 break;
1050 m_t << "\\par " << rtf_Style_Reset << "\n";
1051 m_t << "{\\tc \\v " << theTranslator->trModuleIndex() << "}\n";
1052 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"modules.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1053 break;
1055 m_t << "\\par " << rtf_Style_Reset << "\n";
1056 m_t << "{\\tc \\v " << theTranslator->trDirIndex() << "}\n";
1057 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"dirs.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1058 break;
1060 m_t << "\\par " << rtf_Style_Reset << "\n";
1061 if (fortranOpt)
1062 {
1063 m_t << "{\\tc \\v " << theTranslator->trModulesIndex() << "}\n";
1064 }
1065 else
1066 {
1067 m_t << "{\\tc \\v " << theTranslator->trNamespaceIndex() << "}\n";
1068 }
1069
1070 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"namespaces.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1071 break;
1073 m_t << "\\par " << rtf_Style_Reset << "\n";
1074 m_t << "{\\tc \\v " << theTranslator->trConceptIndex() << "}\n";
1075 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"concepts.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1076 break;
1078 m_t << "\\par " << rtf_Style_Reset << "\n";
1079 m_t << "{\\tc \\v " << theTranslator->trHierarchicalIndex() << "}\n";
1080 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"hierarchy.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1081 break;
1083 m_t << "\\par " << rtf_Style_Reset << "\n";
1084 if (fortranOpt)
1085 {
1086 m_t << "{\\tc \\v " << theTranslator->trCompoundIndexFortran() << "}\n";
1087 }
1088 else if (vhdlOpt)
1089 {
1090 m_t << "{\\tc \\v " << theTranslator->trDesignUnitIndex() << "}\n";
1091 }
1092 else
1093 {
1094 m_t << "{\\tc \\v " << theTranslator->trCompoundIndex() << "}\n";
1095 }
1096 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"annotated.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1097 break;
1099 m_t << "\\par " << rtf_Style_Reset << "\n";
1100 m_t << "{\\tc \\v " << theTranslator->trFileIndex() << "}\n";
1101 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"files.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1102 break;
1104 m_t << "\\par " << rtf_Style_Reset << "\n";
1105 m_t << "{\\tc \\v " << theTranslator->trPageIndex() << "}\n";
1106 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"pages.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1107 break;
1109 {
1110 m_t << "{\\tc \\v " << theTranslator->trTopicDocumentation() << "}\n";
1111 for (const auto &gd : *Doxygen::groupLinkedMap)
1112 {
1113 if (!gd->isReference() && !gd->isASubGroup())
1114 {
1115 writePageLink(gd->getOutputFileBase(), FALSE);
1116 }
1117 }
1118 }
1119 break;
1121 {
1122 m_t << "{\\tc \\v " << theTranslator->trModuleDocumentation() << "}\n";
1123 for (const auto &mod : ModuleManager::instance().modules())
1124 {
1125 if (!mod->isReference() && mod->isPrimaryInterface())
1126 {
1127 writePageLink(mod->getOutputFileBase(), FALSE);
1128 }
1129 }
1130 }
1131 break;
1133 {
1134 bool first=true;
1135 m_t << "{\\tc \\v " << theTranslator->trDirDocumentation() << "}\n";
1136 for (const auto &dd : *Doxygen::dirLinkedMap)
1137 {
1138 if (dd->isLinkableInProject())
1139 {
1140 m_t << "\\par " << rtf_Style_Reset << "\n";
1141 if (!first)
1142 {
1144 }
1145 first=false;
1146 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1147 m_t << dd->getOutputFileBase();
1148 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1149 }
1150 }
1151 }
1152 break;
1154 {
1155 bool first=true;
1156 for (const auto &nd : *Doxygen::namespaceLinkedMap)
1157 {
1158 if (nd->isLinkableInProject() && !nd->isAlias())
1159 {
1160 m_t << "\\par " << rtf_Style_Reset << "\n";
1161 if (!first)
1162 {
1164 }
1165 first=false;
1166 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1167 m_t << nd->getOutputFileBase();
1168 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1169 }
1170 }
1171 }
1172 break;
1174 {
1175 bool first=true;
1176 for (const auto &cd : *Doxygen::conceptLinkedMap)
1177 {
1178 if (cd->isLinkableInProject() && !cd->isAlias())
1179 {
1180 m_t << "\\par " << rtf_Style_Reset << "\n";
1181 if (!first)
1182 {
1184 }
1185 first=false;
1186 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1187 m_t << cd->getOutputFileBase();
1188 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1189 }
1190 }
1191 }
1192 break;
1194 {
1195 bool first=true;
1196 if (fortranOpt)
1197 {
1198 m_t << "{\\tc \\v " << theTranslator->trTypeDocumentation() << "}\n";
1199 }
1200 else
1201 {
1202 m_t << "{\\tc \\v " << theTranslator->trClassDocumentation() << "}\n";
1203 }
1204 for (const auto &cd : *Doxygen::classLinkedMap)
1205 {
1206 if (cd->isLinkableInProject() &&
1207 !cd->isImplicitTemplateInstance() &&
1208 !cd->isEmbeddedInOuterScope() &&
1209 !cd->isAlias()
1210 )
1211 {
1212 m_t << "\\par " << rtf_Style_Reset << "\n";
1213 if (!first)
1214 {
1216 }
1217 first=false;
1218 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1219 m_t << cd->getOutputFileBase();
1220 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1221 }
1222 }
1223 }
1224 break;
1226 {
1227 bool isFirst=TRUE;
1228
1229 m_t << "{\\tc \\v " << theTranslator->trFileDocumentation() << "}\n";
1230 for (const auto &fn : *Doxygen::inputNameLinkedMap)
1231 {
1232 for (const auto &fd : *fn)
1233 {
1234 if (fd->isLinkableInProject())
1235 {
1236 m_t << "\\par " << rtf_Style_Reset << "\n";
1237 if (!isFirst)
1238 {
1240 }
1241 isFirst=FALSE;
1242 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1243 m_t << fd->getOutputFileBase();
1244 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1245 }
1246 if (fd->generateSourceFile())
1247 {
1248 m_t << "\\par " << rtf_Style_Reset << "\n";
1249 if (!isFirst)
1250 {
1252 }
1253 isFirst=FALSE;
1254 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1255 m_t << fd->getSourceFileBase();
1256 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1257 }
1258 }
1259 }
1260 }
1261 break;
1263 {
1264 //m_t << "}\n";
1265 bool isFirst=true;
1266 m_t << "{\\tc \\v " << theTranslator->trExamples() << "}\n";
1267 for (const auto &pd : *Doxygen::exampleLinkedMap)
1268 {
1269 m_t << "\\par " << rtf_Style_Reset << "\n";
1270 if (!isFirst)
1271 {
1273 }
1274 isFirst=false;
1275 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1276 m_t << pd->getOutputFileBase();
1277 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1278 }
1279 }
1280 break;
1282 {
1283 m_t << "\\par " << rtf_Style_Reset << "\n";
1284 for (const auto &pd : *Doxygen::pageLinkedMap)
1285 {
1286 if (!pd->getGroupDef() && !pd->isReference() && !pd->hasParentPage()
1287 && Doxygen::mainPage.get() != pd.get())
1288 {
1289 writePageLink(pd->getOutputFileBase(), FALSE);
1290 }
1291 }
1292 }
1293 break;
1295 break;
1298 m_t << rtf_Style["Heading1"].reference();
1299 m_t << theTranslator->trRTFGeneralIndex() << "\\par \n";
1300 m_t << rtf_Style_Reset << "\n";
1301 m_t << "{\\tc \\v " << theTranslator->trRTFGeneralIndex() << "}\n";
1302 m_t << "{\\field\\fldedit {\\*\\fldinst INDEX \\\\c2 \\\\*MERGEFORMAT}{\\fldrslt INDEX}}\n";
1303
1304 break;
1305 }
1306}
static NamespaceLinkedMap * namespaceLinkedMap
Definition doxygen.h:115
static ConceptLinkedMap * conceptLinkedMap
Definition doxygen.h:98
static std::unique_ptr< PageDef > mainPage
Definition doxygen.h:101
static FileNameLinkedMap * inputNameLinkedMap
Definition doxygen.h:105
static ClassLinkedMap * classLinkedMap
Definition doxygen.h:96
static PageLinkedMap * exampleLinkedMap
Definition doxygen.h:99
static PageLinkedMap * pageLinkedMap
Definition doxygen.h:100
static DirLinkedMap * dirLinkedMap
Definition doxygen.h:129
static GroupLinkedMap * groupLinkedMap
Definition doxygen.h:114
static ModuleManager & instance()
void beginRTFChapter()
Definition rtfgen.cpp:663
void writeDoc(const IDocNodeAST *ast, const Definition *, const MemberDef *, int) override
Definition rtfgen.cpp:2621
void writePageLink(const QCString &, bool) override
Definition rtfgen.cpp:1308
void beginRTFSection()
Definition rtfgen.cpp:683
virtual QCString trRTFGeneralIndex()=0
virtual QCString trTopicIndex()=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
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:55
IndexSection
Definition index.h:32
@ isMainPage
Definition index.h:35
@ isTitlePageAuthor
Definition index.h:34
@ isFileIndex
Definition index.h:43
@ isFileDocumentation
Definition index.h:51
@ isPageDocumentation
Definition index.h:53
@ isDirDocumentation
Definition index.h:47
@ isModuleDocumentation
Definition index.h:45
@ isClassHierarchyIndex
Definition index.h:41
@ isModuleIndex
Definition index.h:36
@ isTopicIndex
Definition index.h:37
@ isConceptIndex
Definition index.h:40
@ isExampleDocumentation
Definition index.h:52
@ isClassDocumentation
Definition index.h:49
@ isPageIndex
Definition index.h:44
@ isCompoundIndex
Definition index.h:42
@ isEndIndex
Definition index.h:55
@ isConceptDocumentation
Definition index.h:50
@ isDirIndex
Definition index.h:38
@ isNamespaceIndex
Definition index.h:39
@ isNamespaceDocumentation
Definition index.h:48
@ isTitlePageStart
Definition index.h:33
@ isTopicDocumentation
Definition index.h:46
@ isPageDocumentation2
Definition index.h:54
static QCString dateToRTFDateString()
Definition rtfgen.cpp:59
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, isEndIndex, isExampleDocumentation, isFileDocumentation, isFileIndex, isMainPage, isModuleDocumentation, isModuleIndex, isNamespaceDocumentation, isNamespaceIndex, isPageDocumentation, isPageDocumentation2, isPageIndex, isTitlePageAuthor, isTitlePageStart, isTopicDocumentation, isTopicIndex, OutputGenerator::m_t, Doxygen::mainPage, Doxygen::namespaceLinkedMap, Doxygen::pageLinkedMap, rtf_author, rtf_company, rtf_documentId, rtf_documentType, rtf_logoFilename, rtf_Style, rtf_Style_Reset, rtf_title, theTranslator, TRUE, validatingParseText(), writeDoc(), and writePageLink().

◆ endIndexValue()

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

Implements OutputGenIntf.

Definition at line 1483 of file rtfgen.cpp.

1484{
1485 DBG_RTF(m_t << "{\\comment (endIndexValue)}\n")
1486 if (hasBrief) m_t << ")";
1487 m_t << "} ";
1488 if (!name.isEmpty())
1489 {
1490 m_t << "\\tab ";
1491 writeRTFReference(name);
1492 m_t << "\n";
1493 }
1494 else
1495 {
1496 m_t << "\n";
1497 }
1499 newParagraph();
1500}

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

◆ endInlineHeader()

void RTFGenerator::endInlineHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2736 of file rtfgen.cpp.

2737{
2738 DBG_RTF(m_t << "{\\comment (endInlineHeader)}\n")
2739 endBold();
2740 m_t << "\\par";
2741 m_t << "}\n";
2742}
void endBold() override
Definition rtfgen.h:181

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

◆ endInlineMemberDoc()

void RTFGenerator::endInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2821 of file rtfgen.cpp.

2822{
2823 DBG_RTF(m_t << "{\\comment (endInlineMemberDoc)}\n")
2824 m_t << "\\cell }{\\row }\n";
2825}

References DBG_RTF, and OutputGenerator::m_t.

◆ endInlineMemberName()

void RTFGenerator::endInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2809 of file rtfgen.cpp.

2810{
2811 DBG_RTF(m_t << "{\\comment (endInlineMemberName)}\n")
2812 m_t << "\\cell }";
2813}

References DBG_RTF, and OutputGenerator::m_t.

◆ endInlineMemberType()

void RTFGenerator::endInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2797 of file rtfgen.cpp.

2798{
2799 DBG_RTF(m_t << "{\\comment (endInlineMemberType)}\n")
2800 m_t << "\\cell }";
2801}

References DBG_RTF, and OutputGenerator::m_t.

◆ endItemList()

void RTFGenerator::endItemList ( )
overridevirtual

end bullet list

Implements OutputGenIntf.

Definition at line 1380 of file rtfgen.cpp.

1381{
1382 newParagraph();
1383 DBG_RTF(m_t << "{\\comment (endItemList level=" << indentLevel() << ")}\n")
1384 m_t << "}";
1387}
int indentLevel() const
Definition rtfgen.cpp:2033

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

◆ endItemListItem()

void RTFGenerator::endItemListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1409 of file rtfgen.cpp.

1410{
1411 DBG_RTF(m_t << "{\\comment (endItemListItem)}\n")
1412}

References DBG_RTF, and OutputGenerator::m_t.

◆ endLabels()

void RTFGenerator::endLabels ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2837 of file rtfgen.cpp.

2838{
2839}

◆ endLocalToc()

void RTFGenerator::endLocalToc ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 302 of file rtfgen.h.

302{}

◆ endMemberDeclaration()

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

Implements OutputGenIntf.

Definition at line 200 of file rtfgen.h.

200{}

◆ endMemberDescription()

void RTFGenerator::endMemberDescription ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1786 of file rtfgen.cpp.

1787{
1788 DBG_RTF(m_t << "{\\comment (endMemberDescription)}\n")
1789 endEmphasis();
1791 m_t << "\\par";
1792 m_t << "}\n";
1794}

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

◆ endMemberDoc()

void RTFGenerator::endMemberDoc ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 1700 of file rtfgen.cpp.

1701{
1702 DBG_RTF(m_t << "{\\comment endMemberDoc}\n")
1703 //const QCString &style = styleStack.pop();
1704 //printf("RTFGenerator::endMemberDoc() '%s'\n",style);
1705 //ASSERT(style==rtf_Style["Heading4"].reference());
1706 endBold();
1707 m_t << "}\n";
1708 newParagraph();
1709}

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

◆ endMemberDocList()

void RTFGenerator::endMemberDocList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 159 of file rtfgen.h.

159{}

◆ endMemberDocName()

void RTFGenerator::endMemberDocName ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 266 of file rtfgen.h.

266{}

◆ endMemberDocPrefixItem()

void RTFGenerator::endMemberDocPrefixItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 264 of file rtfgen.h.

264{}

◆ endMemberDocSimple()

void RTFGenerator::endMemberDocSimple ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 2785 of file rtfgen.cpp.

2786{
2787 DBG_RTF(m_t << "{\\comment (endMemberDocSimple)}\n")
2788 m_t << "}\n";
2789}

References DBG_RTF, and OutputGenerator::m_t.

◆ endMemberGroup()

void RTFGenerator::endMemberGroup ( bool hasHeader)
overridevirtual

Implements OutputGenIntf.

Definition at line 2560 of file rtfgen.cpp.

2561{
2562 DBG_RTF(m_t << "{\\comment endMemberGroup}\n")
2563 if (hasHeader) decIndentLevel();
2564 m_t << "}";
2565}

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

◆ endMemberGroupDocs()

void RTFGenerator::endMemberGroupDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2547 of file rtfgen.cpp.

2548{
2549 DBG_RTF(m_t << "{\\comment endMemberGroupDocs}\n")
2550 endEmphasis();
2551 newParagraph();
2552}

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

◆ endMemberGroupHeader()

void RTFGenerator::endMemberGroupHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2534 of file rtfgen.cpp.

2535{
2536 DBG_RTF(m_t << "{\\comment endMemberGroupHeader}\n")
2537 newParagraph();
2539}
QCString rtf_CList_DepthStyle()
Definition rtfgen.cpp:2062

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

◆ endMemberHeader()

void RTFGenerator::endMemberHeader ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 155 of file rtfgen.h.

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

References endGroupHeader(), and FALSE.

◆ endMemberItem()

void RTFGenerator::endMemberItem ( MemberItemType )
overridevirtual

Implements OutputGenIntf.

Definition at line 1887 of file rtfgen.cpp.

1888{
1889 DBG_RTF(m_t << "{\\comment endMemberItem }\n")
1890 newParagraph();
1891}

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

◆ endMemberList()

void RTFGenerator::endMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1939 of file rtfgen.cpp.

1940{
1941 DBG_RTF(m_t << "{\\comment (endMemberList) }\n")
1942 m_t << "}\n";
1943#ifdef DELETEDCODE
1944 if (!insideTabbing)
1945 m_t << "\\end{CompactItemize}\n";
1946#endif
1947}

References DBG_RTF, and OutputGenerator::m_t.

◆ endMemberSections()

void RTFGenerator::endMemberSections ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 151 of file rtfgen.h.

151{}

◆ endMemberSubtitle()

void RTFGenerator::endMemberSubtitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2150 of file rtfgen.cpp.

2151{
2152 DBG_RTF(m_t << "{\\comment endMemberSubtitle}\n")
2153 newParagraph();
2154 m_t << "}\n";
2155}

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

◆ endMemberTemplateParams()

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

Implements OutputGenIntf.

Definition at line 169 of file rtfgen.h.

169{}

◆ endPageDoc()

void RTFGenerator::endPageDoc ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 113 of file rtfgen.h.

113{}

◆ endPageRef()

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

Implements OutputGenIntf.

Definition at line 1595 of file rtfgen.cpp.

1596{
1597 QCString ref;
1598 if (!clname.isEmpty())
1599 {
1600 ref+=clname;
1601 }
1602 if (!anchor.isEmpty())
1603 {
1604 ref+='_';
1605 ref+=anchor;
1606 }
1607 writeRTFReference(ref);
1608 endEmphasis();
1609 m_t << ")";
1610}

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

◆ endParagraph()

void RTFGenerator::endParagraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2136 of file rtfgen.cpp.

2137{
2138 DBG_RTF(m_t << "{\\comment endParagraph}\n")
2139 m_t << "}\\par\n";
2141}

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

◆ endParameterDefVal()

void RTFGenerator::endParameterDefVal ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 274 of file rtfgen.h.

274{ endTypewriter(); }
void endTypewriter() override
Definition rtfgen.h:144

References endTypewriter().

◆ endParameterExtra()

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

Implements OutputGenIntf.

Definition at line 2859 of file rtfgen.cpp.

2860{
2861 if (last && closeBracket)
2862 {
2863 m_t << ")";
2864 }
2865}

References OutputGenerator::m_t.

◆ endParameterList()

void RTFGenerator::endParameterList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 276 of file rtfgen.h.

276{}

◆ endParameterName()

void RTFGenerator::endParameterName ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 270 of file rtfgen.h.

270{}

◆ endParameterType()

void RTFGenerator::endParameterType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2601 of file rtfgen.cpp.

2602{
2603 DBG_RTF(m_t << "{\\comment (endParameterType)}\n")
2604 m_t << " ";
2605}

References DBG_RTF, and OutputGenerator::m_t.

◆ endPlainFile()

void RTFGenerator::endPlainFile ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 307 of file rtfgen.h.

References OutputGenerator::endPlainFile().

Referenced by endFile().

◆ endProjectNumber()

void RTFGenerator::endProjectNumber ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 733 of file rtfgen.cpp.

734{
735 DBG_RTF(m_t << "{\\comment endProjectNumber }\n")
736}

References DBG_RTF, and OutputGenerator::m_t.

◆ endQuickIndices()

void RTFGenerator::endQuickIndices ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 218 of file rtfgen.h.

218{}

◆ endSection()

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

Implements OutputGenIntf.

Definition at line 1834 of file rtfgen.cpp.

1835{
1836 DBG_RTF(m_t << "{\\comment (endSection)}\n")
1837 // make bookmark
1839 newParagraph();
1840 writeAnchor(QCString(),lab);
1841 m_t << "}";
1842}
void writeAnchor(const QCString &fileName, const QCString &name) override
Definition rtfgen.cpp:1893

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

◆ endSmall()

void RTFGenerator::endSmall ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 195 of file rtfgen.h.

195{ m_t << "}"; }

References OutputGenerator::m_t.

◆ endTextBlock()

void RTFGenerator::endTextBlock ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 2110 of file rtfgen.cpp.

2111{
2112 newParagraph();
2113 DBG_RTF(m_t << "{\\comment endTextBlock}\n")
2114 m_t << "}\n";
2115 //m_omitParagraph = TRUE;
2116}

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

◆ endTextLink()

void RTFGenerator::endTextLink ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1540 of file rtfgen.cpp.

1541{
1542 if (Config_getBool(RTF_HYPERLINKS))
1543 {
1544 m_t << "}}}\n";
1545 }
1546}

References Config_getBool, and OutputGenerator::m_t.

◆ endTitleHead()

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

Implements OutputGenIntf.

Definition at line 1622 of file rtfgen.cpp.

1623{
1624 DBG_RTF(m_t << "{\\comment endTitleHead}\n")
1625 m_t << "\\par " << rtf_Style_Reset << "\n";
1626 if (!name.isEmpty())
1627 {
1628 // make table of contents entry
1629 int level = 2 + m_hierarchyLevel;
1630 m_t << "{\\tc\\tcl" << level << " \\v ";
1631 docify(name);
1632 m_t << "}\n";
1633
1634 // make an index entry
1635 addIndexItem(name,QCString());
1636 }
1637 if (!fileName.isEmpty())
1638 {
1639 writeAnchor(fileName,QCString());
1640 }
1641}
void addIndexItem(const QCString &, const QCString &) override
Definition rtfgen.cpp:1747

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

◆ endTocEntry()

void RTFGenerator::endTocEntry ( const SectionInfo * )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 304 of file rtfgen.h.

304{}

◆ endTypewriter()

void RTFGenerator::endTypewriter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 144 of file rtfgen.h.

144{ m_t << "}"; }

References OutputGenerator::m_t.

Referenced by endParameterDefVal().

◆ exceptionEntry()

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

Implements OutputGenIntf.

Definition at line 2607 of file rtfgen.cpp.

2608{
2609 DBG_RTF(m_t << "{\\comment (exceptionEntry)}\n")
2610 if (!prefix.isEmpty())
2611 {
2612 m_t << " " << prefix << "(";
2613 }
2614 else if (closeBracket)
2615 {
2616 m_t << ")";
2617 }
2618 m_t << " ";
2619}
constexpr auto prefix
Definition anchor.cpp:44

References DBG_RTF, OutputGenerator::m_t, and prefix.

◆ incIndentLevel()

void RTFGenerator::incIndentLevel ( )
private

Definition at line 2038 of file rtfgen.cpp.

2039{
2040 m_indentLevel++;
2042 {
2044 int m = maxIndentLevels;
2045 err("Maximum indent level ({}) exceeded while generating RTF output!\n",m);
2046 }
2047 m_codeGen->setIndentLevel(m_indentLevel);
2048}
static const int maxIndentLevels
Definition rtfgen.h:336

References err, m_codeGen, m_indentLevel, and maxIndentLevels.

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

◆ indentLevel()

int RTFGenerator::indentLevel ( ) const
private

◆ init()

void RTFGenerator::init ( )
static

Definition at line 461 of file rtfgen.cpp.

462{
463 QCString dir=Config_getString(RTF_OUTPUT);
464 Dir d(dir.str());
465 if (!d.exists() && !d.mkdir(dir.str()))
466 {
467 term("Could not create output directory {}\n",dir);
468 }
469
470 // first duplicate strings of rtf_Style_Default
471 const struct Rtf_Style_Default* def = rtf_Style_Default;
472 while (def->reference)
473 {
474 if (def->definition == nullptr)
475 {
476 err("Internal: rtf_Style_Default[{}] has no definition.\n", def->name);
477 }
478 else
479 {
480 rtf_Style.emplace(def->name, StyleData(def->reference, def->definition));
481 }
482 def++;
483 }
484
485 // overwrite some (or all) definitions from file
486 QCString rtfStyleSheetFile = Config_getString(RTF_STYLESHEET_FILE);
487 if (!rtfStyleSheetFile.isEmpty())
488 {
489 loadStylesheet(rtfStyleSheetFile, rtf_Style);
490 }
491
492 // If user has defined an extension file, load its contents.
493 QCString rtfExtensionsFile = Config_getString(RTF_EXTENSIONS_FILE);
494 if (!rtfExtensionsFile.isEmpty())
495 {
496 loadExtensions(rtfExtensionsFile);
497
499 {
500 FileInfo fi(rtf_logoFilename.str());
501 if (!fi.exists())
502 {
503 err("Logo '{}' specified by 'LogoFilename' in the rtf extension file '{}' does not exist!\n",
504 rtf_logoFilename, rtfExtensionsFile);
505 rtf_logoFilename = "";
506 }
507 else
508 {
509 QCString destFileName = Config_getString(RTF_OUTPUT)+"/"+fi.fileName();
510 copyFile(rtf_logoFilename,destFileName);
511 rtf_logoFilename = fi.fileName();
512 }
513 }
514 }
515
516 createSubDirs(d);
517}
#define term(fmt,...)
Definition message.h:137
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:4153
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:6370

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, Rtf_Style_Default::reference, rtf_logoFilename, rtf_Style, rtf_Style_Default, and term.

Referenced by generateOutput().

◆ insertMemberAlign()

void RTFGenerator::insertMemberAlign ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 172 of file rtfgen.h.

172{}

◆ insertMemberAlignLeft()

void RTFGenerator::insertMemberAlignLeft ( MemberItemType ,
bool  )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 173 of file rtfgen.h.

173{}

◆ lastIndexPage()

void RTFGenerator::lastIndexPage ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1316 of file rtfgen.cpp.

1317{
1318 DBG_RTF(m_t << "{\\comment Beginning Body of RTF Document}\n")
1319 // end page and setup for rest of document
1320 m_t << "\\sect \\sbkpage \\pgndec \\pgnrestart\n";
1321 m_t << "\\sect \\sectd \\sbknone\n";
1322
1323 // set new footer with arabic numbers
1324 m_t << "{\\footer "<< rtf_Style["Footer"].reference() << "{\\chpgn}}\n";
1325
1326}

References DBG_RTF, OutputGenerator::m_t, and rtf_Style.

◆ lineBreak()

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

Implements OutputGenIntf.

Definition at line 1332 of file rtfgen.cpp.

1333{
1334 DBG_RTF(m_t << "{\\comment (lineBreak)}" << "\n")
1335 m_t << "\\par\n";
1337}

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

◆ newParagraph()

◆ operator=() [1/2]

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

Definition at line 359 of file rtfgen.cpp.

360{
361 if (this!=&og)
362 {
363 m_dir = og.m_dir;
364 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
365 m_codeGen = m_codeList->get<RTFCodeGenerator>(OutputType::RTF);
366 m_codeGen->setTextStream(&m_t);
369 m_numCols = og.m_numCols;
370 m_relPath = og.m_relPath;
373 }
374 return *this;
375}

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

◆ operator=() [2/2]

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

References RTFGenerator().

◆ 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 2461 of file rtfgen.cpp.

2462{
2463 static bool rtfDebug = Debug::isFlagSet(Debug::Rtf);
2464
2465 Dir d(path.str());
2466 // store the original directory
2467 if (!d.exists())
2468 {
2469 err("Output dir {} does not exist!\n",path);
2470 return FALSE;
2471 }
2472 std::string oldDir = Dir::currentDirPath();
2473
2474 // go to the html output directory (i.e. path)
2475 Dir::setCurrent(d.absPath());
2476 Dir thisDir;
2477
2478 QCString combinedName = path+"/combined.rtf";
2479 QCString mainRTFName = path+"/"+name;
2480
2481 std::ofstream f = Portable::openOutputStream(combinedName);
2482 if (!f.is_open())
2483 {
2484 err("Failed to open {} for writing!\n",combinedName);
2485 Dir::setCurrent(oldDir);
2486 return FALSE;
2487 }
2488 TextStream outt(&f);
2489
2490 if (!preProcessFile(thisDir,mainRTFName,outt,true,false))
2491 {
2492 // it failed, remove the temp file
2493 outt.flush();
2494 f.close();
2495 if (!rtfDebug) removeSet.insert(FileInfo(thisDir.filePath(combinedName.str())).absFilePath());
2496 Dir::setCurrent(oldDir);
2497 return FALSE;
2498 }
2499
2500 // everything worked, move the files
2501 outt.flush();
2502 f.close();
2503 if (!rtfDebug)
2504 {
2505 thisDir.remove(mainRTFName.str());
2506 }
2507 else
2508 {
2509 thisDir.rename(mainRTFName.str(),mainRTFName.str() + ".org");
2510 }
2511 thisDir.rename(combinedName.str(),mainRTFName.str());
2512
2513 testRTFOutput(mainRTFName);
2514
2515 QCString rtfOutputDir = Dir::currentDirPath();
2516 for (auto &s : removeSet)
2517 {
2518 QCString s1(s.c_str());
2519 if (s1.startsWith(rtfOutputDir)) Portable::unlink(s1);
2520 }
2521
2522 Dir::setCurrent(oldDir);
2523 return TRUE;
2524}
@ Rtf
Definition debug.h:43
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:132
static std::string currentDirPath()
Definition dir.cpp:342
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:350
std::ofstream openOutputStream(const QCString &name, bool append=false)
Definition portable.cpp:665
void unlink(const QCString &fileName)
Definition portable.cpp:561
static StringSet removeSet
Definition rtfgen.cpp:57
void testRTFOutput(const QCString &name)
Tests the integrity of the result by counting brackets.
Definition rtfgen.cpp:2416
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:2249

References FileInfo::absFilePath(), Dir::absPath(), Dir::currentDirPath(), err, Dir::exists(), FALSE, Dir::filePath(), TextStream::flush(), Debug::isFlagSet(), Portable::openOutputStream(), preProcessFile(), 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 2076 of file rtfgen.cpp.

2077{
2078 QCString n=makeIndexName("ListBullet",indentLevel());
2079 return rtf_Style[n.str()].reference();
2080}
static QCString makeIndexName(const QCString &s, int i)
Definition rtfgen.cpp:104

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 2062 of file rtfgen.cpp.

2063{
2064 QCString n=makeIndexName("ListContinue",indentLevel());
2065 return rtf_Style[n.str()].reference();
2066}

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 2089 of file rtfgen.cpp.

2090{
2091 QCString n=makeIndexName("DescContinue",indentLevel());
2092 return rtf_Style[n.str()].reference();
2093}

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 2083 of file rtfgen.cpp.

2084{
2085 QCString n=makeIndexName("ListEnum",indentLevel());
2086 return rtf_Style[n.str()].reference();
2087}

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

Referenced by startItemListItem().

◆ rtf_LCList_DepthStyle()

QCString RTFGenerator::rtf_LCList_DepthStyle ( )
private

Definition at line 2069 of file rtfgen.cpp.

2070{
2071 QCString n=makeIndexName("LatexTOC",indentLevel());
2072 return rtf_Style[n.str()].reference();
2073}

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

Referenced by startIndexList().

◆ rtfwriteRuler_doubleline()

void RTFGenerator::rtfwriteRuler_doubleline ( )
private

Definition at line 2632 of file rtfgen.cpp.

2633{
2634 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_doubleline)}\n")
2635 m_t << "{\\pard\\widctlpar\\brdrb\\brdrdb\\brdrw15\\brsp20 \\adjustright \\par}\n";
2636}

References DBG_RTF, and OutputGenerator::m_t.

◆ rtfwriteRuler_emboss()

void RTFGenerator::rtfwriteRuler_emboss ( )
private

Definition at line 2638 of file rtfgen.cpp.

2639{
2640 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_emboss)}\n")
2641 m_t << "{\\pard\\widctlpar\\brdrb\\brdremboss\\brdrw15\\brsp20 \\adjustright \\par}\n";
2642}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by beginRTFSection().

◆ rtfwriteRuler_thick()

void RTFGenerator::rtfwriteRuler_thick ( )
private

Definition at line 2644 of file rtfgen.cpp.

2645{
2646 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_thick)}\n")
2647 m_t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw75\\brsp20 \\adjustright \\par}\n";
2648}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by beginRTFChapter().

◆ rtfwriteRuler_thin()

void RTFGenerator::rtfwriteRuler_thin ( )
private

Definition at line 2650 of file rtfgen.cpp.

2651{
2652 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_thin)}\n")
2653 m_t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw5\\brsp20 \\adjustright \\par}\n";
2654}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by writeRuler().

◆ setRelativePath()

void RTFGenerator::setRelativePath ( const QCString & path)

Definition at line 384 of file rtfgen.cpp.

385{
386 m_relPath = path;
387}

References m_relPath.

Referenced by startFile().

◆ setSourceFileName()

void RTFGenerator::setSourceFileName ( const QCString & sourceFileName)

Definition at line 389 of file rtfgen.cpp.

390{
391 m_codeGen->setSourceFileName(name);
392}

References m_codeGen.

Referenced by endFile(), and startFile().

◆ startAnonTypeScope()

void RTFGenerator::startAnonTypeScope ( int )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 164 of file rtfgen.h.

164{}

◆ startBold()

void RTFGenerator::startBold ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 180 of file rtfgen.h.

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

References OutputGenerator::m_t.

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

◆ startCallGraph()

void RTFGenerator::startCallGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2369 of file rtfgen.cpp.

2370{
2371 DBG_RTF(m_t << "{\\comment (startCallGraph)}\n")
2372}

References DBG_RTF, and OutputGenerator::m_t.

◆ startCenter()

void RTFGenerator::startCenter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 192 of file rtfgen.h.

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

References OutputGenerator::m_t.

◆ startClassDiagram()

void RTFGenerator::startClassDiagram ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1859 of file rtfgen.cpp.

1860{
1861 DBG_RTF(m_t << "{\\comment startClassDiagram }\n")
1862}

References DBG_RTF, and OutputGenerator::m_t.

◆ startCompoundTemplateParams()

void RTFGenerator::startCompoundTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1502 of file rtfgen.cpp.

1503{
1504 //beginRTFSubSubSection();
1505 m_t << "\n";
1506 DBG_RTF(m_t << "{\\comment Begin SubSubSection}\n")
1507 m_t << "{\n";
1508 int level = 4 + m_hierarchyLevel;
1509 m_t << rtf_Style_Reset << rtf_Style[QCString().sprintf("Heading%d", level).str()].reference() << "\n";
1510}

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 2697 of file rtfgen.cpp.

2698{
2699 DBG_RTF(m_t << "{\\comment (startConstraintDocs)}\n")
2700}

References DBG_RTF, and OutputGenerator::m_t.

◆ startConstraintList()

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

Implements OutputGenIntf.

Definition at line 2656 of file rtfgen.cpp.

2657{
2658 DBG_RTF(m_t << "{\\comment (startConstraintList)}\n")
2659 m_t << "{"; // ends at endConstraintList
2660 m_t << "{";
2661 startBold();
2662 newParagraph();
2663 docify(header);
2664 endBold();
2665 m_t << "}";
2666 newParagraph();
2669}
void incIndentLevel()
Definition rtfgen.cpp:2038
void startBold() override
Definition rtfgen.h:180
QCString rtf_DList_DepthStyle()
Definition rtfgen.cpp:2089

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 2671 of file rtfgen.cpp.

2672{
2673 DBG_RTF(m_t << "{\\comment (startConstraintParam)}\n")
2674 startEmphasis();
2675}
void startEmphasis() override
Definition rtfgen.h:178

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

◆ startConstraintType()

void RTFGenerator::startConstraintType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2684 of file rtfgen.cpp.

2685{
2686 DBG_RTF(m_t << "{\\comment (startConstraintType)}\n")
2687 startEmphasis();
2688}

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

◆ startContents()

void RTFGenerator::startContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 225 of file rtfgen.h.

225{}

◆ startDescForItem()

void RTFGenerator::startDescForItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1796 of file rtfgen.cpp.

1797{
1798 DBG_RTF(m_t << "{\\comment (startDescForItem) }\n")
1799}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDescTable()

void RTFGenerator::startDescTable ( const QCString & title,
const bool hasInits )
overridevirtual

Implements OutputGenIntf.

Definition at line 1949 of file rtfgen.cpp.

1950{
1951 DBG_RTF(m_t << "{\\comment (startDescTable) }\n")
1952 m_t << "{\\par\n";
1953 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
1954 docify(title);
1955 m_t << ":\\par}\n";
1957 m_t << "\\trowd \\trgaph108\\trleft426\\tblind426"
1958 "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1959 "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1960 "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1961 "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
1962 "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
1963 "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 \n";
1964 int columnPos2[2] = { 25, 100 };
1965 int columnPos3[3] = { 25, 45, 100 };
1966 for (int i=0;i<(hasInits?3:2);i++)
1967 {
1968 m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1969 "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1970 "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1971 "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
1972 "\\cltxlrtb "
1973 "\\cellx" << (rtf_pageWidth*(hasInits?columnPos3[i]:columnPos2[i])/100) << "\n";
1974 }
1975 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1976}
const int rtf_pageWidth
Definition rtfstyle.h:26

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 2019 of file rtfgen.cpp.

2020{
2021 DBG_RTF(m_t << "{\\comment (startDescTableData) }\n")
2022 m_t << "{";
2023}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDescTableInit()

void RTFGenerator::startDescTableInit ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2005 of file rtfgen.cpp.

2006{
2007 DBG_RTF(m_t << "{\\comment (startDescTableInit) }" << endl)
2008 m_t << "{";
2009 m_t << rtf_Style["BodyText"].reference();
2010 m_t << "\\qr ";
2011}

References DBG_RTF, OutputGenerator::m_t, and rtf_Style.

◆ startDescTableRow()

void RTFGenerator::startDescTableRow ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1984 of file rtfgen.cpp.

1985{
1986}

◆ startDescTableTitle()

void RTFGenerator::startDescTableTitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1992 of file rtfgen.cpp.

1993{
1994 DBG_RTF(m_t << "{\\comment (startDescTableTitle) }\n")
1995 m_t << "{";
1996 m_t << rtf_Style["BodyText"].reference();
1997}

References DBG_RTF, OutputGenerator::m_t, and rtf_Style.

◆ startDirDepGraph()

void RTFGenerator::startDirDepGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2391 of file rtfgen.cpp.

2392{
2393 DBG_RTF(m_t << "{\\comment (startDirDepGraph)}\n")
2394}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDotGraph()

void RTFGenerator::startDotGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2316 of file rtfgen.cpp.

2317{
2318 DBG_RTF(m_t << "{\\comment (startDotGraph)}\n")
2319}

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 1711 of file rtfgen.cpp.

1715{
1716 DBG_RTF(m_t << "{\\comment startDoxyAnchor}\n")
1717}

References DBG_RTF, and OutputGenerator::m_t.

◆ startEmphasis()

void RTFGenerator::startEmphasis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 178 of file rtfgen.h.

178{ 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 2567 of file rtfgen.cpp.

2568{
2569 DBG_RTF(m_t << "{\\comment (startExamples)}\n")
2570 m_t << "{"; // ends at endDescList
2571 m_t << "{"; // ends at endDescTitle
2572 startBold();
2573 newParagraph();
2574 docify(theTranslator->trExamples());
2575 endBold();
2576 m_t << "}";
2577 newParagraph();
2580}

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

◆ startFile()

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

Implements OutputGenIntf.

Definition at line 704 of file rtfgen.cpp.

705{
706 //setEncoding(QCString().sprintf("CP%s",theTranslator->trRTFansicp()));
707 QCString fileName=name;
709 m_hierarchyLevel = hierarchyLevel;
710
711 if (!fileName.endsWith(".rtf")) fileName+=".rtf";
716}
void startPlainFile(const QCString &name) override
Definition rtfgen.h:306
void beginRTFDocument()
Definition rtfgen.cpp:526
void setRelativePath(const QCString &path)
Definition rtfgen.cpp:384
QCString relativePathToRoot(const QCString &name)
Definition util.cpp:4092

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

◆ startGroupCollaboration()

void RTFGenerator::startGroupCollaboration ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2361 of file rtfgen.cpp.

2362{
2363}

◆ startGroupHeader()

void RTFGenerator::startGroupHeader ( const QCString & ,
int extraIndent )
overridevirtual

Implements OutputGenIntf.

Definition at line 1643 of file rtfgen.cpp.

1644{
1645 DBG_RTF(m_t << "{\\comment startGroupHeader}\n")
1647 extraIndent += m_hierarchyLevel;
1648 if (extraIndent>=2)
1649 {
1650 m_t << rtf_Style["Heading5"].reference();
1651 }
1652 else if (extraIndent==1)
1653 {
1654 m_t << rtf_Style["Heading4"].reference();
1655 }
1656 else // extraIndent==0
1657 {
1658 m_t << rtf_Style["Heading3"].reference();
1659 }
1660 m_t << "\n";
1661}

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 152 of file rtfgen.h.

152{}

◆ startInclDepGraph()

void RTFGenerator::startInclDepGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2339 of file rtfgen.cpp.

2340{
2341 DBG_RTF(m_t << "{\\comment (startInclDepGraph)}\n")
2342}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndent()

void RTFGenerator::startIndent ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1762 of file rtfgen.cpp.

1763{
1765 DBG_RTF(m_t << "{\\comment (startIndent) }\n")
1766 m_t << "{\n";
1768}

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 1414 of file rtfgen.cpp.

1415{
1416 DBG_RTF(m_t << "{\\comment (startIndexItem)}\n")
1417
1418 if (!m_omitParagraph)
1419 {
1420 m_t << "\\par\n";
1422 }
1423}

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

◆ startIndexKey()

void RTFGenerator::startIndexKey ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1465 of file rtfgen.cpp.

1466{
1467 DBG_RTF(m_t << "{\\comment (startIndexKey)}\n")
1468 m_t << "{\\b ";
1469}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndexList()

void RTFGenerator::startIndexList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1344 of file rtfgen.cpp.

1345{
1346 DBG_RTF(m_t << "{\\comment (startIndexList)}\n")
1347 m_t << "{\n";
1348 m_t << "\\par\n";
1352}
QCString rtf_LCList_DepthStyle()
Definition rtfgen.cpp:2069

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 2717 of file rtfgen.cpp.

2718{
2719 DBG_RTF(m_t << "{\\comment (startIndexListItem)}\n")
2720}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndexSection()

void RTFGenerator::startIndexSection ( IndexSection is)
overridevirtual

Implements OutputGenIntf.

Definition at line 738 of file rtfgen.cpp.

739{
740 //QCString paperName;
741
742 //m_indentLevel = 0;
743
744 switch (is)
745 {
747 // basic RTFstart
748 // get readyfor author etc
749
750 m_t << "{\\info \n";
751 m_t << "{\\title {\\comment ";
752 break;
754 m_t << "}\n";
755 if (!rtf_subject.isEmpty()) m_t << "{\\subject " << rtf_subject << "}\n";
756 if (!rtf_comments.isEmpty()) m_t << "{\\comment " << rtf_comments << "}\n";
757 if (!rtf_company.isEmpty()) m_t << "{\\company " << rtf_company << "}\n";
758 if (!rtf_author.isEmpty()) m_t << "{\\author " << rtf_author << "}\n";
759 if (!rtf_manager.isEmpty()) m_t << "{\\manager " << rtf_manager << "}\n";
760 if (!rtf_documentType.isEmpty()) m_t << "{\\category " << rtf_documentType << "}\n";
761 if (!rtf_keywords.isEmpty()) m_t << "{\\keywords " << rtf_keywords << "}\n";
762 m_t << "{\\comment ";
763 break;
765 //Introduction
767 break;
769 //Topic Index
771 break;
773 //Module Index
775 break;
777 //Directory Index
779 break;
781 //Namespace Index
783 break;
785 //Concept Index
787 break;
789 //Hierarchical Index
790 DBG_RTF(m_t << "{\\comment start classhierarchy}\n")
792 break;
794 //Annotated Compound Index
796 break;
798 //Annotated File Index
800 break;
802 //Related Page Index
804 break;
806 {
807 //Topic Documentation
808 for (const auto &gd : *Doxygen::groupLinkedMap)
809 {
810 if (!gd->isReference())
811 {
813 break;
814 }
815 }
816 }
817 break;
819 {
820 //Module Documentation
821 for (const auto &mod : ModuleManager::instance().modules())
822 {
823 if (!mod->isReference() && mod->isPrimaryInterface())
824 {
826 break;
827 }
828 }
829 }
830 break;
832 {
833 //Directory Documentation
834 for (const auto &dd : *Doxygen::dirLinkedMap)
835 {
836 if (dd->isLinkableInProject())
837 {
839 break;
840 }
841 }
842 }
843 break;
845 {
846 // Namespace Documentation
847 for (const auto &nd : *Doxygen::namespaceLinkedMap)
848 {
849 if (nd->isLinkableInProject())
850 {
852 break;
853 }
854 }
855 }
856 break;
858 {
859 // Concept Documentation
860 for (const auto &cd : *Doxygen::conceptLinkedMap)
861 {
862 if (cd->isLinkableInProject())
863 {
865 break;
866 }
867 }
868 }
869 break;
871 {
872 //Compound Documentation
873 for (const auto &cd : *Doxygen::classLinkedMap)
874 {
875 if (cd->isLinkableInProject() &&
876 !cd->isImplicitTemplateInstance() &&
877 !cd->isEmbeddedInOuterScope() &&
878 !cd->isAlias()
879 )
880 {
882 break;
883 }
884 }
885 }
886 break;
888 {
889 //File Documentation
890 bool isFirst=TRUE;
891 for (const auto &fn : *Doxygen::inputNameLinkedMap)
892 {
893 for (const auto &fd : *fn)
894 {
895 if (fd->isLinkableInProject() || fd->generateSourceFile())
896 {
897 if (isFirst)
898 {
900 isFirst=FALSE;
901 break;
902 }
903 }
904 }
905 if (!isFirst)
906 {
907 break;
908 }
909 }
910 }
911 break;
913 {
914 //Example Documentation
916 }
917 break;
919 break;
921 break;
923 break;
924 }
925}
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, isEndIndex, isExampleDocumentation, isFileDocumentation, isFileIndex, isMainPage, isModuleDocumentation, isModuleIndex, isNamespaceDocumentation, isNamespaceIndex, isPageDocumentation, isPageDocumentation2, isPageIndex, isTitlePageAuthor, isTitlePageStart, isTopicDocumentation, isTopicIndex, OutputGenerator::m_t, 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 1476 of file rtfgen.cpp.

1477{
1478 DBG_RTF(m_t << "{\\comment (startIndexValue)}\n")
1479 m_t << " ";
1480 if (hasBrief) m_t << "(";
1481}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineHeader()

void RTFGenerator::startInlineHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2728 of file rtfgen.cpp.

2729{
2730 DBG_RTF(m_t << "{\\comment (startInlineHeader)}\n")
2731 m_t << "{\n";
2732 m_t << rtf_Style_Reset << rtf_Style["Heading5"].reference();
2733 startBold();
2734}

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

◆ startInlineMemberDoc()

void RTFGenerator::startInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2815 of file rtfgen.cpp.

2816{
2817 DBG_RTF(m_t << "{\\comment (startInlineMemberDoc)}\n")
2818 m_t << "{";
2819}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineMemberName()

void RTFGenerator::startInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2803 of file rtfgen.cpp.

2804{
2805 DBG_RTF(m_t << "{\\comment (startInlineMemberName)}\n")
2806 m_t << "{";
2807}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineMemberType()

void RTFGenerator::startInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2791 of file rtfgen.cpp.

2792{
2793 DBG_RTF(m_t << "{\\comment (startInlineMemberType)}\n")
2794 m_t << "{\\qr ";
2795}

References DBG_RTF, and OutputGenerator::m_t.

◆ startItemList()

void RTFGenerator::startItemList ( )
overridevirtual

start bullet list

Implements OutputGenIntf.

Definition at line 1367 of file rtfgen.cpp.

1368{
1369 newParagraph();
1371 int level = indentLevel();
1372 DBG_RTF(m_t << "{\\comment (startItemList level=" << level << ") }\n")
1373 m_t << "{";
1374 m_listItemInfo[level].number = 1;
1375 m_listItemInfo[level].isEnum = false;
1376 m_listItemInfo[level].type = '1';
1377}
OutputType type() const override
Definition rtfgen.h:101

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 1390 of file rtfgen.cpp.

1391{
1392 DBG_RTF(m_t << "{\\comment (startItemListItem)}\n")
1393 newParagraph();
1395 int level = indentLevel();
1396 if (m_listItemInfo[level].isEnum)
1397 {
1398 m_t << rtf_EList_DepthStyle() << "\n";
1399 m_t << m_listItemInfo[level].number << ".\\tab ";
1400 m_listItemInfo[level].number++;
1401 }
1402 else
1403 {
1404 m_t << rtf_BList_DepthStyle() << "\n";
1405 }
1407}
QCString rtf_EList_DepthStyle()
Definition rtfgen.cpp:2083
QCString rtf_BList_DepthStyle()
Definition rtfgen.cpp:2076

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 2827 of file rtfgen.cpp.

2828{
2829}

◆ startLocalToc()

void RTFGenerator::startLocalToc ( int )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 301 of file rtfgen.h.

301{}

◆ startMemberDeclaration()

void RTFGenerator::startMemberDeclaration ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 199 of file rtfgen.h.

199{}

◆ startMemberDescription()

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

Implements OutputGenIntf.

Definition at line 1777 of file rtfgen.cpp.

1778{
1779 DBG_RTF(m_t << "{\\comment (startMemberDescription)}\n")
1780 m_t << "{\n";
1783 startEmphasis();
1784}

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 1670 of file rtfgen.cpp.

1677{
1678 DBG_RTF(m_t << "{\\comment startMemberDoc}\n")
1679 if (!memname.isEmpty() && memname[0]!='@')
1680 {
1681 addIndexItem(memname,clname);
1682 addIndexItem(clname,memname);
1683 }
1684
1685 int level = 4 + m_hierarchyLevel;
1686 if (showInline)
1687 ++level;
1688 if (level > 5)
1689 level = 5;
1690 if (level < 1)
1691 level = 1;
1692 m_t << rtf_Style_Reset << rtf_Style[QCString().sprintf("Heading%d", level).str()].reference();
1693 //styleStack.push(rtf_Style_Heading4);
1694 m_t << "{\n";
1695 //printf("RTFGenerator::startMemberDoc() '%s'\n",rtf_Style["Heading4"].reference());
1696 startBold();
1697 m_t << "\n";
1698}

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 158 of file rtfgen.h.

158{}

◆ startMemberDocName()

void RTFGenerator::startMemberDocName ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 265 of file rtfgen.h.

265{}

◆ startMemberDocPrefixItem()

void RTFGenerator::startMemberDocPrefixItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 263 of file rtfgen.h.

263{}

◆ startMemberDocSimple()

void RTFGenerator::startMemberDocSimple ( bool isEnum)
overridevirtual

Implements OutputGenIntf.

Definition at line 2744 of file rtfgen.cpp.

2745{
2746 DBG_RTF(m_t << "{\\comment (startMemberDocSimple)}\n")
2747 m_t << "{\\par\n";
2748 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
2749 if (isEnum)
2750 {
2752 }
2753 else
2754 {
2756 }
2757 m_t << ":\\par}\n";
2759 m_t << "\\trowd \\trgaph108\\trleft426\\tblind426"
2760 "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
2761 "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
2762 "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
2763 "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
2764 "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
2765 "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 \n";
2766 int n=3,columnPos[3] = { 25, 50, 100 };
2767 if (isEnum)
2768 {
2769 columnPos[0]=30;
2770 columnPos[1]=100;
2771 n=2;
2772 }
2773 for (int i=0;i<n;i++)
2774 {
2775 m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
2776 "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
2777 "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
2778 "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
2779 "\\cltxlrtb "
2780 "\\cellx" << (rtf_pageWidth*columnPos[i]/100) << "\n";
2781 }
2782 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
2783}
virtual QCString trEnumerationValues()=0
virtual QCString trCompoundMembers()=0

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

◆ startMemberGroup()

void RTFGenerator::startMemberGroup ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2554 of file rtfgen.cpp.

2555{
2556 DBG_RTF(m_t << "{\\comment startMemberGroup}\n")
2558}

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

◆ startMemberGroupDocs()

void RTFGenerator::startMemberGroupDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2541 of file rtfgen.cpp.

2542{
2543 DBG_RTF(m_t << "{\\comment startMemberGroupDocs}\n")
2544 startEmphasis();
2545}

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

◆ startMemberGroupHeader()

void RTFGenerator::startMemberGroupHeader ( const QCString & ,
bool hasHeader )
overridevirtual

Implements OutputGenIntf.

Definition at line 2526 of file rtfgen.cpp.

2527{
2528 DBG_RTF(m_t << "{\\comment startMemberGroupHeader}\n")
2529 m_t << "{\n";
2530 if (hasHeader) incIndentLevel();
2531 m_t << rtf_Style_Reset << rtf_Style["GroupHeader"].reference();
2532}

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 154 of file rtfgen.h.

154{ startGroupHeader("",0); }
void startGroupHeader(const QCString &, int) override
Definition rtfgen.cpp:1643

References startGroupHeader().

◆ startMemberItem()

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

Implements OutputGenIntf.

Definition at line 1881 of file rtfgen.cpp.

1882{
1883 DBG_RTF(m_t << "{\\comment startMemberItem }\n")
1884 m_t << rtf_Style_Reset << rtf_BList_DepthStyle() << "\n"; // set style to appropriate depth
1885}

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

◆ startMemberList()

void RTFGenerator::startMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1928 of file rtfgen.cpp.

1929{
1930 m_t << "\n";
1931 DBG_RTF(m_t << "{\\comment (startMemberList) }\n")
1932 m_t << "{\n";
1933#ifdef DELETEDCODE
1934 if (!insideTabbing)
1935 m_t << "\\begin{CompactItemize}\n";
1936#endif
1937}

References DBG_RTF, and OutputGenerator::m_t.

◆ startMemberSections()

void RTFGenerator::startMemberSections ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 150 of file rtfgen.h.

150{}

◆ startMemberSubtitle()

void RTFGenerator::startMemberSubtitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2143 of file rtfgen.cpp.

2144{
2145 DBG_RTF(m_t << "{\\comment startMemberSubtitle}\n")
2146 m_t << "{\n";
2148}

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

◆ startMemberTemplateParams()

void RTFGenerator::startMemberTemplateParams ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 168 of file rtfgen.h.

168{}

◆ startPageDoc()

void RTFGenerator::startPageDoc ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 112 of file rtfgen.h.

112{}

◆ startPageRef()

void RTFGenerator::startPageRef ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1589 of file rtfgen.cpp.

1590{
1591 m_t << " (";
1592 startEmphasis();
1593}

References OutputGenerator::m_t, and startEmphasis().

◆ startParagraph()

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

Implements OutputGenIntf.

Definition at line 2128 of file rtfgen.cpp.

2129{
2130 DBG_RTF(m_t << "{\\comment startParagraph}\n")
2131 newParagraph();
2132 m_t << "{\n";
2133 if (QCString(txt) == "reference") m_t << "\\ql\n";
2134}

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

◆ startParameterDefVal()

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

Implements OutputGenIntf.

Definition at line 273 of file rtfgen.h.

273{ docify(s); startTypewriter(); }
void startTypewriter() override
Definition rtfgen.h:143

References docify(), and startTypewriter().

◆ startParameterExtra()

void RTFGenerator::startParameterExtra ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 271 of file rtfgen.h.

271{}

◆ startParameterList()

void RTFGenerator::startParameterList ( bool openBracket)
overridevirtual

Implements OutputGenIntf.

Definition at line 2854 of file rtfgen.cpp.

2855{
2856 if (openBracket) m_t << "(";
2857}

References OutputGenerator::m_t.

◆ startParameterName()

void RTFGenerator::startParameterName ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 269 of file rtfgen.h.

269{}

◆ startParameterType()

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

Implements OutputGenIntf.

Definition at line 2592 of file rtfgen.cpp.

2593{
2594 DBG_RTF(m_t << "{\\comment (startParameterType)}\n")
2595 if (!first && !key.isEmpty())
2596 {
2597 m_t << " " << key << " ";
2598 }
2599}

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

◆ startPlainFile()

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

Implements OutputGenIntf.

Definition at line 306 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 727 of file rtfgen.cpp.

728{
729 DBG_RTF(m_t << "{\\comment startProjectNumber }\n")
730 m_t << " ";
731}

References DBG_RTF, and OutputGenerator::m_t.

◆ startQuickIndices()

void RTFGenerator::startQuickIndices ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 217 of file rtfgen.h.

217{}

◆ startSection()

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

Implements OutputGenIntf.

Definition at line 1806 of file rtfgen.cpp.

1807{
1808 DBG_RTF(m_t << "{\\comment (startSection)}\n")
1809 m_t << "{";
1811 int num=SectionType::MaxLevel;
1812 switch(type.level())
1813 {
1814 case SectionType::Page: num=2+m_hierarchyLevel; break;
1815 case SectionType::Section: num=3+m_hierarchyLevel; break;
1816 case SectionType::Subsection: // fall through
1817 case SectionType::Subsubsection: // fall through
1818 case SectionType::Paragraph: // fall through
1819 case SectionType::Subparagraph: // fall through
1821 default: ASSERT(0); break;
1822 }
1823 num = std::clamp(num, SectionType::MinLevel, SectionType::MaxLevel);
1824 QCString heading;
1825 heading.sprintf("Heading%d",num);
1826 // set style
1827 m_t << rtf_Style[heading.str()].reference();
1828 // make table of contents entry
1829 m_t << "{\\tc\\tcl" << num << " \\v ";
1830 docify(title);
1831 m_t << "}\n";
1832}
QCString & sprintf(const char *format,...)
Definition qcstring.cpp:29
static constexpr int Section
Definition section.h:33
static constexpr int MaxLevel
Definition section.h:39
static constexpr int Subsection
Definition section.h:34
static constexpr int Subsubsection
Definition section.h:35
static constexpr int Page
Definition section.h:31
static constexpr int MinLevel
Definition section.h:32
static constexpr int Paragraph
Definition section.h:36
static constexpr int Subsubparagraph
Definition section.h:38
static constexpr int Subparagraph
Definition section.h:37

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 194 of file rtfgen.h.

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

References OutputGenerator::m_t.

◆ startTextBlock()

void RTFGenerator::startTextBlock ( bool dense)
overridevirtual

Implements OutputGenIntf.

Definition at line 2095 of file rtfgen.cpp.

2096{
2097 DBG_RTF(m_t << "{\\comment startTextBlock}\n")
2098 m_t << "{\n";
2100 if (dense) // no spacing between "paragraphs"
2101 {
2102 m_t << rtf_Style["DenseText"].reference();
2103 }
2104 else // some spacing
2105 {
2106 m_t << rtf_Style["BodyText"].reference();
2107 }
2108}

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 1518 of file rtfgen.cpp.

1519{
1520 if (Config_getBool(RTF_HYPERLINKS))
1521 {
1522 QCString ref;
1523 if (!f.isEmpty())
1524 {
1525 ref+=stripPath(f);
1526 }
1527 if (!anchor.isEmpty())
1528 {
1529 ref+='_';
1530 ref+=anchor;
1531 }
1532
1533 m_t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1534 m_t << rtfFormatBmkStr(ref);
1535 m_t << "\" }{}";
1536 m_t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1537 }
1538}

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

◆ startTitleHead()

void RTFGenerator::startTitleHead ( const QCString & )
overridevirtual

Implements OutputGenIntf.

Definition at line 1612 of file rtfgen.cpp.

1613{
1614 DBG_RTF(m_t << "{\\comment startTitleHead}\n")
1615 int level = 2 + m_hierarchyLevel;
1616 QCString heading;
1617 heading.sprintf("Heading%d", level);
1618 // beginRTFSection();
1619 m_t << rtf_Style_Reset << rtf_Style[heading.str()].reference() << "\n";
1620}

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

◆ startTocEntry()

void RTFGenerator::startTocEntry ( const SectionInfo * )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 303 of file rtfgen.h.

303{}

◆ startTypewriter()

void RTFGenerator::startTypewriter ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 143 of file rtfgen.h.

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

References OutputGenerator::m_t.

Referenced by startParameterDefVal().

◆ type()

OutputType RTFGenerator::type ( ) const
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 101 of file rtfgen.h.

101{ return OutputType::RTF; }

References RTF.

Referenced by startSection().

◆ writeAnchor()

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

Implements OutputGenIntf.

Definition at line 1893 of file rtfgen.cpp.

1894{
1895 QCString anchor;
1896 if (!fileName.isEmpty())
1897 {
1898 anchor+=stripPath(fileName);
1899 }
1900 if (!fileName.isEmpty() && !name.isEmpty())
1901 {
1902 anchor+='_';
1903 }
1904 if (!name.isEmpty())
1905 {
1906 anchor+=name;
1907 }
1908 //printf("writeAnchor(%s->%s)\n",qPrint(anchor),qPrint(rtfFormatBmkStr(anchor)));
1909
1910 DBG_RTF(m_t << "{\\comment writeAnchor (" << anchor << ")}\n")
1911 m_t << "{\\bkmkstart " << rtfFormatBmkStr(anchor) << "}\n";
1912 m_t << "{\\bkmkend " << rtfFormatBmkStr(anchor) << "}\n";
1913}

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 1851 of file rtfgen.cpp.

1852{
1853 char cs[2];
1854 cs[0]=c;
1855 cs[1]=0;
1856 docify(cs);
1857}

References docify().

◆ writeDoc()

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

Implements OutputGenIntf.

Definition at line 2621 of file rtfgen.cpp.

2622{
2623 auto astImpl = dynamic_cast<const DocNodeAST*>(ast);
2624 if (astImpl)
2625 {
2626 RTFDocVisitor visitor(m_t,*m_codeList,ctx?ctx->getDefFileExtension():QCString(""),m_hierarchyLevel);
2627 std::visit(visitor,astImpl->root);
2628 }
2630}
virtual QCString getDefFileExtension() const =0

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 409 of file rtfgen.cpp.

410{
411 t << "# Generated by doxygen " << getDoxygenVersion() << "\n\n";
412 t << "# This file describes extensions used for generating RTF output.\n";
413 t << "# All text after a hash (#) is considered a comment and will be ignored.\n";
414 t << "# Remove a hash to activate a line.\n\n";
415
416 t << "# Overrides the project title.\n";
417
418 t << "#Title = \n\n";
419
420 t << "# Name of the company that produced this document.\n";
421 t << "#Company = \n\n";
422
423 t << "# Filename of a company or project logo.\n";
424 t << "#LogoFilename = \n\n";
425
426 t << "# Author of the document.\n";
427 t << "#Author = \n\n";
428
429 t << "# Type of document (e.g. Design Specification, User Manual, etc.).\n";
430 t << "#DocumentType = \n\n";
431
432 t << "# Document tracking number.\n";
433 t << "#DocumentId = \n\n";
434
435 t << "# Name of the author's manager.\n";
436 t << "# This field is not displayed in the document itself, but it is \n";
437 t << "# available in the information block of the rtf file. In Microsoft \n";
438 t << "# Word, it is available under File:Properties.\n";
439 t << "#Manager = \n\n";
440
441 t << "# Subject of the document.\n";
442 t << "# This field is not displayed in the document itself, but it is \n";
443 t << "# available in the information block of the rtf file. In Microsoft \n";
444 t << "# Word, it is available under File:Properties.\n";
445 t << "#Subject = \n\n";
446
447 t << "# Comments regarding the document.\n";
448 t << "# This field is not displayed in the document itself, but it is \n";
449 t << "# available in the information block of the rtf file. In Microsoft \n";
450 t << "# Word, it is available under File:Properties.\n";
451 t << "#Comments = \n\n";
452
453 t << "# Keywords associated with the document.\n";
454 t << "# This field is not displayed in the document itself, but it is \n";
455 t << "# available in the information block of the rtf file. In Microsoft \n";
456 t << "# Word, it is available under File:Properties.\n";
457 t << "#Keywords = \n\n";
458}

Referenced by readConfiguration().

◆ writeFooter()

void RTFGenerator::writeFooter ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 110 of file rtfgen.h.

110{}

◆ writeGraphicalHierarchy()

void RTFGenerator::writeGraphicalHierarchy ( DotGfxHierarchyTable & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 250 of file rtfgen.h.

250{}

◆ 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 2841 of file rtfgen.cpp.

2845{
2847 m_t << rtf_Style["Heading4"].reference();
2848 m_t << "\n";
2849 m_t << theTranslator->trInheritedFrom(docifyToString(title), objectLinkToString(ref, file, anchor, name));
2850 m_t << "\\par\n";
2851 m_t << rtf_Style_Reset << "\n";
2852}
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, and theTranslator.

◆ writeLabel()

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

Implements OutputGenIntf.

Definition at line 2831 of file rtfgen.cpp.

2832{
2833 m_t << "{\\f2 [" << l << "]}";
2834 if (!isLast) m_t << ", ";
2835}

References OutputGenerator::m_t.

◆ writeLatexSpacing()

void RTFGenerator::writeLatexSpacing ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 189 of file rtfgen.h.

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

◆ writeLogo()

void RTFGenerator::writeLogo ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 221 of file rtfgen.h.

221{}

◆ writeNavigationPath()

void RTFGenerator::writeNavigationPath ( const QCString & )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 220 of file rtfgen.h.

220{}

◆ writeNonBreakableSpace()

void RTFGenerator::writeNonBreakableSpace ( int )
overridevirtual

Implements OutputGenIntf.

Definition at line 1922 of file rtfgen.cpp.

1923{
1924 m_t << "\\~ ";
1925}

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 1583 of file rtfgen.cpp.

1585{
1586 m_t << objectLinkToString(ref,f,anchor,text);
1587}

References OutputGenerator::m_t, and objectLinkToString().

◆ writePageLink()

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

Implements OutputGenIntf.

Definition at line 1308 of file rtfgen.cpp.

1309{
1310 m_t << "\\par " << rtf_Style_Reset << "\n";
1311 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1312 m_t << name;
1313 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1314}

References OutputGenerator::m_t, and rtf_Style_Reset.

Referenced by endIndexSection().

◆ writePageOutline()

void RTFGenerator::writePageOutline ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 224 of file rtfgen.h.

224{}

◆ writeQuickLinks()

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

Implements OutputGenIntf.

Definition at line 222 of file rtfgen.h.

222{}

◆ writeRTFReference()

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

Definition at line 1915 of file rtfgen.cpp.

1916{
1917 m_t << "{\\field\\fldedit {\\*\\fldinst PAGEREF ";
1918 m_t << rtfFormatBmkStr(stripPath(label));
1919 m_t << " \\\\*MERGEFORMAT}{\\fldrslt pagenum}}";
1920}

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

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

◆ writeRuler()

void RTFGenerator::writeRuler ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 175 of file rtfgen.h.

void rtfwriteRuler_thin()
Definition rtfgen.cpp:2650

References rtfwriteRuler_thin().

◆ writeSearchInfo()

void RTFGenerator::writeSearchInfo ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 109 of file rtfgen.h.

109{}

◆ writeSplitBar()

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

Implements OutputGenIntf.

Definition at line 219 of file rtfgen.h.

219{}

◆ writeStartAnnoItem()

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

Implements OutputGenIntf.

Definition at line 1441 of file rtfgen.cpp.

1443{
1444 DBG_RTF(m_t << "{\\comment (writeStartAnnoItem)}\n")
1445 m_t << "{\\b ";
1446 if (!path.isEmpty()) docify(path);
1447 if (!f.isEmpty() && Config_getBool(RTF_HYPERLINKS))
1448 {
1449 m_t << "{\\field {\\*\\fldinst { HYPERLINK \\\\l \"";
1451 m_t << "\" }{}";
1452 m_t << "}{\\fldrslt {\\cs37\\ul\\cf2 ";
1453
1454 docify(name);
1455
1456 m_t << "}}}\n";
1457 }
1458 else
1459 {
1460 docify(name);
1461 }
1462 m_t << "} ";
1463}

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 1339 of file rtfgen.cpp.

1340{
1341 m_t << text;
1342}

References OutputGenerator::m_t.

◆ writeStyleInfo()

void RTFGenerator::writeStyleInfo ( int part)
overridevirtual

Implements OutputGenIntf.

Definition at line 1328 of file rtfgen.cpp.

1329{
1330}

◆ writeStyleSheetFile()

void RTFGenerator::writeStyleSheetFile ( TextStream & t)
static

Definition at line 394 of file rtfgen.cpp.

395{
396 t << "# Generated by doxygen " << getDoxygenVersion() << "\n\n";
397 t << "# This file describes styles used for generating RTF output.\n";
398 t << "# All text after a hash (#) is considered a comment and will be ignored.\n";
399 t << "# Remove a hash to activate a line.\n\n";
400
401 for (int i=0 ; rtf_Style_Default[i].reference!=nullptr ; i++ )
402 {
403 t << "# " << rtf_Style_Default[i].name << " = "
405 << rtf_Style_Default[i].definition << "\n";
406 }
407}

References rtf_Style_Default.

Referenced by readConfiguration().

◆ writeSummaryLink()

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

Implements OutputGenIntf.

Definition at line 223 of file rtfgen.h.

223{}

◆ writeSynopsis()

void RTFGenerator::writeSynopsis ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 212 of file rtfgen.h.

212{}

Member Data Documentation

◆ m_bstartedBody

bool RTFGenerator::m_bstartedBody = false
private

Definition at line 329 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 345 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 337 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 344 of file rtfgen.h.

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

◆ m_numCols

int RTFGenerator::m_numCols = 0
private

Definition at line 331 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 336 of file rtfgen.h.

Referenced by incIndentLevel(), and indentLevel().


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