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

Generator for RTF output. More...

#include <src/rtfgen.h>

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

Classes

struct  RTFListItemInfo
 

Public Member Functions

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

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

337 : OutputGenerator(Config_getString(RTF_OUTPUT))
338 , m_codeList(std::make_unique<OutputCodeList>())
339{
340 m_codeGen = m_codeList->add<RTFCodeGenerator>(&m_t);
341}
TextStream m_t
Definition outputgen.h:116
RTFCodeGenerator * m_codeGen
Definition rtfgen.h:342
std::unique_ptr< OutputCodeList > m_codeList
Definition rtfgen.h:341
#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 343 of file rtfgen.cpp.

343 : OutputGenerator(og.m_dir), OutputGenIntf()
344{
345 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
346 m_codeGen = m_codeList->get<RTFCodeGenerator>(OutputType::RTF);
347 m_codeGen->setTextStream(&m_t);
350 m_numCols = og.m_numCols;
351 m_relPath = og.m_relPath;
354}
QCString m_dir
Definition outputgen.h:117
int m_indentLevel
Definition rtfgen.h:333
int m_numCols
Definition rtfgen.h:327
std::array< RTFListItemInfo, maxIndentLevels > m_listItemInfo
Definition rtfgen.h:340
bool m_bstartedBody
Definition rtfgen.h:325
QCString m_relPath
Definition rtfgen.h:328
bool m_omitParagraph
Definition rtfgen.h:326

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

377{
379}
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 1744 of file rtfgen.cpp.

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

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

1739{
1740 DBG_RTF(m_t << "{\\comment addLabel}\n")
1741}
#define DBG_RTF(x)

References DBG_RTF, and OutputGenerator::m_t.

◆ beginRTFChapter()

void RTFGenerator::beginRTFChapter ( )
private

Definition at line 660 of file rtfgen.cpp.

661{
662 m_t << "\n";
663 DBG_RTF(m_t << "{\\comment BeginRTFChapter}\n")
665
666 // if we are compact, no extra page breaks...
667 if (Config_getBool(COMPACT_RTF))
668 {
669 // m_t << "\\sect\\sectd\\sbknone\n";
670 m_t << "\\sect\\sbknone\n";
672 }
673 else
674 m_t << "\\sect\\sbkpage\n";
675 //m_t << "\\sect\\sectd\\sbkpage\n";
676
677 m_t << rtf_Style["Heading1"].reference() << "\n";
678}
void rtfwriteRuler_thick()
Definition rtfgen.cpp:2640
#define Config_getBool(name)
Definition config.h:33
StyleDataMap rtf_Style
Definition rtfstyle.cpp:362
char rtf_Style_Reset[]
Definition rtfstyle.cpp:49
if(strLen >35 &&floatingIndex >30 &&autoBreak)
Definition util.cpp:949

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

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

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

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

517{
518 QCString dname = Config_getString(RTF_OUTPUT);
519 Dir d(dname.str());
520 clearSubDirs(d);
521}
const std::string & str() const
Definition qcstring.h:537
void clearSubDirs(const Dir &d)
Definition util.cpp:4021

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

2047{
2048 m_indentLevel--;
2049 if (m_indentLevel<0)
2050 {
2051 err("Negative indent level while generating RTF output!\n");
2052 m_indentLevel=0;
2053 }
2054 m_codeGen->setIndentLevel(m_indentLevel);
2055}

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

1842{
1843 if (str.isEmpty()) return;
1844 m_t << docifyToString(str);
1846}
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 2370 of file rtfgen.cpp.

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

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

1863{
1864 newParagraph();
1865
1866 // create a png file
1868
1869 // display the file
1870 m_t << "{\n";
1871 m_t << rtf_Style_Reset << "\n";
1872 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
1873 m_t << fileName << ".png\"";
1874 m_t << " \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
1875 m_t << "}\n";
1876}
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 1509 of file rtfgen.cpp.

1510{
1511 newParagraph();
1512 m_t << "}\n";
1513}

References OutputGenerator::m_t, and newParagraph().

◆ endConstraintDocs()

void RTFGenerator::endConstraintDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2698 of file rtfgen.cpp.

2699{
2700 DBG_RTF(m_t << "{\\comment (endConstraintDocs)}\n")
2701 newParagraph();
2702}

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

◆ endConstraintList()

void RTFGenerator::endConstraintList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2704 of file rtfgen.cpp.

2705{
2706 DBG_RTF(m_t << "{\\comment (endConstraintList)}\n")
2707 newParagraph();
2710 m_t << "}";
2711}
void decIndentLevel()
Definition rtfgen.cpp:2046
#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 2673 of file rtfgen.cpp.

2674{
2675 DBG_RTF(m_t << "{\\comment (endConstraintParam)}\n")
2676 endEmphasis();
2677 m_t << " : ";
2678}
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 2686 of file rtfgen.cpp.

2687{
2688 DBG_RTF(m_t << "{\\comment (endConstraintType)}\n")
2689 endEmphasis();
2690 m_t << " ";
2691}

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

◆ endContents()

void RTFGenerator::endContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 225 of file rtfgen.h.

225{}

◆ endDescForItem()

void RTFGenerator::endDescForItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1798 of file rtfgen.cpp.

1799{
1800 DBG_RTF(m_t << "{\\comment (endDescForItem) }\n")
1801}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTable()

void RTFGenerator::endDescTable ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1975 of file rtfgen.cpp.

1976{
1977 DBG_RTF(m_t << "{\\comment (endDescTable)}\n")
1978 m_t << "}\n";
1979}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTableData()

void RTFGenerator::endDescTableData ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2022 of file rtfgen.cpp.

2023{
2024 DBG_RTF(m_t << "{\\comment (endDescTableData) }\n")
2025 m_t << "\\cell }{\\row }\n";
2026}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTableInit()

void RTFGenerator::endDescTableInit ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2010 of file rtfgen.cpp.

2011{
2012 DBG_RTF(m_t << "{\\comment (endDescTableInit) }" << endl)
2013 m_t << "\\cell }";
2014}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDescTableRow()

void RTFGenerator::endDescTableRow ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1985 of file rtfgen.cpp.

1986{
1987}

◆ endDescTableTitle()

void RTFGenerator::endDescTableTitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1996 of file rtfgen.cpp.

1997{
1998 DBG_RTF(m_t << "{\\comment (endDescTableTitle) }\n")
1999 m_t << "\\cell }";
2000}

References DBG_RTF, and OutputGenerator::m_t.

◆ endDirDepGraph()

void RTFGenerator::endDirDepGraph ( DotDirDeps & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2392 of file rtfgen.cpp.

2393{
2394 newParagraph();
2395
2397
2398 // display the file
2399 m_t << "{\n";
2400 m_t << rtf_Style_Reset << "\n";
2401 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2402 QCString imgExt = getDotImageExtension();
2403 m_t << fn << "." << imgExt;
2404 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2405 m_t << "}\n";
2406 DBG_RTF(m_t << "{\\comment (endDirDepGraph)}\n")
2407}
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 2317 of file rtfgen.cpp.

2318{
2319 newParagraph();
2320
2322
2323 // display the file
2324 m_t << "{\n";
2325 m_t << rtf_Style_Reset << "\n";
2326 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2327 QCString imgExt = getDotImageExtension();
2328 m_t << fn << "." << imgExt;
2329 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2330 m_t << "}\n";
2331 newParagraph();
2332 DBG_RTF(m_t << "{\\comment (endDotGraph)}\n")
2333}
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 1716 of file rtfgen.cpp.

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

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

2579{
2580 DBG_RTF(m_t << "{\\comment (endExamples)}\n")
2582 newParagraph();
2585 m_t << "}";
2586}

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

◆ endFile()

void RTFGenerator::endFile ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 715 of file rtfgen.cpp.

716{
717 DBG_RTF(m_t << "{\\comment endFile}\n")
718 m_t << "}";
719
720 endPlainFile();
722}
void endPlainFile() override
Definition rtfgen.h:303
void setSourceFileName(const QCString &sourceFileName)
Definition rtfgen.cpp:386

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

◆ endGroupCollaboration()

void RTFGenerator::endGroupCollaboration ( DotGroupCollaboration & g)
overridevirtual

Implements OutputGenIntf.

Definition at line 2361 of file rtfgen.cpp.

2362{
2363}

◆ endGroupHeader()

void RTFGenerator::endGroupHeader ( int )
overridevirtual

Implements OutputGenIntf.

Definition at line 1660 of file rtfgen.cpp.

1661{
1662 DBG_RTF(m_t << "{\\comment endGroupHeader}\n")
1663 m_t << "\\par\n";
1664 m_t << rtf_Style_Reset << "\n";
1665}

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

2341{
2342 newParagraph();
2343
2345
2346 // display the file
2347 m_t << "{\n";
2348 m_t << rtf_Style_Reset << "\n";
2349 m_t << "\\par\\pard \\qc {\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"";
2350 QCString imgExt = getDotImageExtension();
2351 m_t << fn << "." << imgExt;
2352 m_t << "\" \\\\d \\\\*MERGEFORMAT}{\\fldrslt IMAGE}}\\par\n";
2353 m_t << "}\n";
2354 DBG_RTF(m_t << "{\\comment (endInclDepGraph)}\n")
2355}
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 1767 of file rtfgen.cpp.

1768{
1769 m_t << "}\n";
1771}

References decIndentLevel(), and OutputGenerator::m_t.

◆ endIndexItem()

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

Implements OutputGenIntf.

Definition at line 1422 of file rtfgen.cpp.

1423{
1424 DBG_RTF(m_t << "{\\comment (endIndexItem)}\n")
1425 if (ref.isEmpty() && !fn.isEmpty())
1426 {
1427 m_t << "\\tab ";
1429 m_t << "\n";
1430 }
1431 else
1432 {
1433 m_t << "\n";
1434 }
1436}
void writeRTFReference(const QCString &label)
Definition rtfgen.cpp:1912

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

◆ endIndexKey()

void RTFGenerator::endIndexKey ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1468 of file rtfgen.cpp.

1469{
1470 DBG_RTF(m_t << "{\\comment (endIndexKey)}\n")
1471}

References DBG_RTF, and OutputGenerator::m_t.

◆ endIndexList()

void RTFGenerator::endIndexList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1351 of file rtfgen.cpp.

1352{
1353 DBG_RTF(m_t << "{\\comment (endIndexList)}\n")
1355 {
1356 m_t << "\\par";
1358 }
1359 m_t << "}";
1361}

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

◆ endIndexListItem()

void RTFGenerator::endIndexListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2718 of file rtfgen.cpp.

2719{
2720 DBG_RTF(m_t << "{\\comment (endIndexListItem)}\n")
2721 m_t << "\\par\n";
2722}

References DBG_RTF, and OutputGenerator::m_t.

◆ endIndexSection()

void RTFGenerator::endIndexSection ( IndexSection is)
overridevirtual

Implements OutputGenIntf.

Definition at line 924 of file rtfgen.cpp.

925{
926 bool fortranOpt = Config_getBool(OPTIMIZE_FOR_FORTRAN);
927 bool vhdlOpt = Config_getBool(OPTIMIZE_OUTPUT_VHDL);
928 QCString projectName = Config_getString(PROJECT_NAME);
929
930 switch (is)
931 {
933 if (!rtf_title.isEmpty())
934 // User has overridden document title in extensions file
935 m_t << "}" << rtf_title;
936 else
937 m_t << "}" << projectName;
938 break;
940 {
941 m_t << " doxygen " << getDoxygenVersion() << ".}\n";
943 DBG_RTF(m_t << "{\\comment end of infoblock}\n");
944 // setup for this section
945 m_t << "}";
946 m_t << rtf_Style_Reset <<"\n";
947 m_t << "\\sectd\\pgnlcrm\n";
948 m_t << "{\\footer "<<rtf_Style["Footer"].reference() << "{\\chpgn}}\n";
949 // the title entry
950 DBG_RTF(m_t << "{\\comment begin title page}\n")
951
952
953 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to title style
954
955 m_t << "\\vertalc\\qc\\par\\par\\par\\par\\par\\par\\par\n";
956 if (!rtf_logoFilename.isEmpty())
957 {
958 m_t << "{\\field\\flddirty {\\*\\fldinst INCLUDEPICTURE \"" << rtf_logoFilename;
959 m_t << "\" \\\\d \\\\*MERGEFORMAT} {\\fldrslt IMAGE }}\\par\\par\n";
960 }
961 if (!rtf_company.isEmpty())
962 {
963 m_t << rtf_company << "\\par\\par\n";
964 }
965
966 m_t << rtf_Style_Reset << rtf_Style["Title"].reference() << "\n"; // set to title style
967 if (!rtf_title.isEmpty())
968 {
969 // User has overridden document title in extensions file
970 m_t << "{\\field\\fldedit {\\*\\fldinst TITLE \\\\*MERGEFORMAT}{\\fldrslt " << rtf_title << "}}\\par\n";
971 }
972 else
973 {
974 auto parser { createDocParser() };
975 auto ast { validatingParseText(*parser.get(), projectName) };
976 if (ast)
977 {
978 m_t << "{\\field\\fldedit {\\*\\fldinst TITLE \\\\*MERGEFORMAT}{\\fldrslt ";
979 writeDoc(ast.get(),nullptr,nullptr,0);
980 m_t << "}}\\par\n";
981 }
982 }
983
984 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to title style
985 m_t << "\\par\n";
987 {
988 m_t << rtf_documentType << "\\par\n";
989 }
990 if (!rtf_documentId.isEmpty())
991 {
992 m_t << rtf_documentId << "\\par\n";
993 }
994 m_t << "\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\\par\n";
995
996 m_t << rtf_Style_Reset << rtf_Style["SubTitle"].reference() << "\n"; // set to subtitle style
997 if (!rtf_author.isEmpty())
998 {
999 m_t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt "<< rtf_author << " }}\\par\n";
1000 }
1001 else
1002 {
1003 m_t << "{\\field\\fldedit {\\*\\fldinst AUTHOR \\\\*MERGEFORMAT}{\\fldrslt AUTHOR}}\\par\n";
1004 }
1005
1006 m_t << theTranslator->trVersion() << " " << Config_getString(PROJECT_NUMBER) << "\\par";
1007 switch (Config_getEnum(TIMESTAMP))
1008 {
1009 case TIMESTAMP_t::YES:
1010 case TIMESTAMP_t::DATETIME:
1011 m_t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}"
1012 "{\\fldrslt "<< dateToString(DateTimeType::DateTime) << " }}\\par\n";
1013 break;
1014 case TIMESTAMP_t::DATE:
1015 m_t << "{\\field\\fldedit {\\*\\fldinst CREATEDATE \\\\*MERGEFORMAT}"
1016 "{\\fldrslt "<< dateToString(DateTimeType::Date) << " }}\\par\n";
1017 break;
1018 case TIMESTAMP_t::NO:
1019 break;
1020 }
1021 m_t << "\\page\\page";
1022 DBG_RTF(m_t << "{\\comment End title page}\n")
1023
1024 // table of contents section
1025 DBG_RTF(m_t << "{\\comment Table of contents}\n")
1026 m_t << "\\vertalt\n";
1027 m_t << rtf_Style_Reset << "\n";
1028 m_t << rtf_Style["Heading1"].reference();
1029 m_t << theTranslator->trRTFTableOfContents() << "\\par\n";
1030 m_t << rtf_Style_Reset << "\\par\n";
1031 m_t << "{\\field\\fldedit {\\*\\fldinst TOC \\\\f \\\\*MERGEFORMAT}{\\fldrslt Table of contents}}\\par\n";
1032 m_t << rtf_Style_Reset << "\n";
1033 }
1034 break;
1036 if (Doxygen::mainPage)
1037 {
1038 writePageLink(Doxygen::mainPage->getOutputFileBase(), TRUE);
1039 }
1040 break;
1042 m_t << "\\par " << rtf_Style_Reset << "\n";
1043 m_t << "{\\tc \\v " << theTranslator->trTopicIndex() << "}\n";
1044 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"topics.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1045 break;
1047 m_t << "\\par " << rtf_Style_Reset << "\n";
1048 m_t << "{\\tc \\v " << theTranslator->trModuleIndex() << "}\n";
1049 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"modules.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1050 break;
1052 m_t << "\\par " << rtf_Style_Reset << "\n";
1053 m_t << "{\\tc \\v " << theTranslator->trDirIndex() << "}\n";
1054 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"dirs.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1055 break;
1057 m_t << "\\par " << rtf_Style_Reset << "\n";
1058 if (fortranOpt)
1059 {
1060 m_t << "{\\tc \\v " << theTranslator->trModulesIndex() << "}\n";
1061 }
1062 else
1063 {
1064 m_t << "{\\tc \\v " << theTranslator->trNamespaceIndex() << "}\n";
1065 }
1066
1067 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"namespaces.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1068 break;
1070 m_t << "\\par " << rtf_Style_Reset << "\n";
1071 m_t << "{\\tc \\v " << theTranslator->trConceptIndex() << "}\n";
1072 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"concepts.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1073 break;
1075 m_t << "\\par " << rtf_Style_Reset << "\n";
1076 m_t << "{\\tc \\v " << theTranslator->trHierarchicalIndex() << "}\n";
1077 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"hierarchy.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1078 break;
1080 m_t << "\\par " << rtf_Style_Reset << "\n";
1081 if (fortranOpt)
1082 {
1083 m_t << "{\\tc \\v " << theTranslator->trCompoundIndexFortran() << "}\n";
1084 }
1085 else if (vhdlOpt)
1086 {
1087 m_t << "{\\tc \\v " << theTranslator->trDesignUnitIndex() << "}\n";
1088 }
1089 else
1090 {
1091 m_t << "{\\tc \\v " << theTranslator->trCompoundIndex() << "}\n";
1092 }
1093 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"annotated.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1094 break;
1096 m_t << "\\par " << rtf_Style_Reset << "\n";
1097 m_t << "{\\tc \\v " << theTranslator->trFileIndex() << "}\n";
1098 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"files.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1099 break;
1101 m_t << "\\par " << rtf_Style_Reset << "\n";
1102 m_t << "{\\tc \\v " << theTranslator->trPageIndex() << "}\n";
1103 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"pages.rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1104 break;
1106 {
1107 m_t << "{\\tc \\v " << theTranslator->trTopicDocumentation() << "}\n";
1108 for (const auto &gd : *Doxygen::groupLinkedMap)
1109 {
1110 if (!gd->isReference() && !gd->isASubGroup())
1111 {
1112 writePageLink(gd->getOutputFileBase(), FALSE);
1113 }
1114 }
1115 }
1116 break;
1118 {
1119 m_t << "{\\tc \\v " << theTranslator->trModuleDocumentation() << "}\n";
1120 for (const auto &mod : ModuleManager::instance().modules())
1121 {
1122 if (!mod->isReference() && mod->isPrimaryInterface())
1123 {
1124 writePageLink(mod->getOutputFileBase(), FALSE);
1125 }
1126 }
1127 }
1128 break;
1130 {
1131 bool first=true;
1132 m_t << "{\\tc \\v " << theTranslator->trDirDocumentation() << "}\n";
1133 for (const auto &dd : *Doxygen::dirLinkedMap)
1134 {
1135 if (dd->isLinkableInProject())
1136 {
1137 m_t << "\\par " << rtf_Style_Reset << "\n";
1138 if (!first)
1139 {
1141 }
1142 first=false;
1143 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1144 m_t << dd->getOutputFileBase();
1145 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1146 }
1147 }
1148 }
1149 break;
1151 {
1152 bool first=true;
1153 for (const auto &nd : *Doxygen::namespaceLinkedMap)
1154 {
1155 if (nd->isLinkableInProject() && !nd->isAlias())
1156 {
1157 m_t << "\\par " << rtf_Style_Reset << "\n";
1158 if (!first)
1159 {
1161 }
1162 first=false;
1163 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1164 m_t << nd->getOutputFileBase();
1165 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1166 }
1167 }
1168 }
1169 break;
1171 {
1172 bool first=true;
1173 for (const auto &cd : *Doxygen::conceptLinkedMap)
1174 {
1175 if (cd->isLinkableInProject() && !cd->isAlias())
1176 {
1177 m_t << "\\par " << rtf_Style_Reset << "\n";
1178 if (!first)
1179 {
1181 }
1182 first=false;
1183 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1184 m_t << cd->getOutputFileBase();
1185 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1186 }
1187 }
1188 }
1189 break;
1191 {
1192 bool first=true;
1193 if (fortranOpt)
1194 {
1195 m_t << "{\\tc \\v " << theTranslator->trTypeDocumentation() << "}\n";
1196 }
1197 else
1198 {
1199 m_t << "{\\tc \\v " << theTranslator->trClassDocumentation() << "}\n";
1200 }
1201 for (const auto &cd : *Doxygen::classLinkedMap)
1202 {
1203 if (cd->isLinkableInProject() &&
1204 cd->templateMaster()==nullptr &&
1205 !cd->isEmbeddedInOuterScope() &&
1206 !cd->isAlias()
1207 )
1208 {
1209 m_t << "\\par " << rtf_Style_Reset << "\n";
1210 if (!first)
1211 {
1213 }
1214 first=false;
1215 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1216 m_t << cd->getOutputFileBase();
1217 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1218 }
1219 }
1220 }
1221 break;
1223 {
1224 bool isFirst=TRUE;
1225
1226 m_t << "{\\tc \\v " << theTranslator->trFileDocumentation() << "}\n";
1227 for (const auto &fn : *Doxygen::inputNameLinkedMap)
1228 {
1229 for (const auto &fd : *fn)
1230 {
1231 if (fd->isLinkableInProject())
1232 {
1233 m_t << "\\par " << rtf_Style_Reset << "\n";
1234 if (!isFirst)
1235 {
1237 }
1238 isFirst=FALSE;
1239 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1240 m_t << fd->getOutputFileBase();
1241 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1242 }
1243 if (fd->generateSourceFile())
1244 {
1245 m_t << "\\par " << rtf_Style_Reset << "\n";
1246 if (!isFirst)
1247 {
1249 }
1250 isFirst=FALSE;
1251 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1252 m_t << fd->getSourceFileBase();
1253 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1254 }
1255 }
1256 }
1257 }
1258 break;
1260 {
1261 //m_t << "}\n";
1262 bool isFirst=true;
1263 m_t << "{\\tc \\v " << theTranslator->trExamples() << "}\n";
1264 for (const auto &pd : *Doxygen::exampleLinkedMap)
1265 {
1266 m_t << "\\par " << rtf_Style_Reset << "\n";
1267 if (!isFirst)
1268 {
1270 }
1271 isFirst=false;
1272 m_t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \"";
1273 m_t << pd->getOutputFileBase();
1274 m_t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n";
1275 }
1276 }
1277 break;
1279 {
1280 m_t << "\\par " << rtf_Style_Reset << "\n";
1281 for (const auto &pd : *Doxygen::pageLinkedMap)
1282 {
1283 if (!pd->getGroupDef() && !pd->isReference() && !pd->hasParentPage()
1284 && Doxygen::mainPage.get() != pd.get())
1285 {
1286 writePageLink(pd->getOutputFileBase(), FALSE);
1287 }
1288 }
1289 }
1290 break;
1292 break;
1295 m_t << rtf_Style["Heading1"].reference();
1296 m_t << theTranslator->trRTFGeneralIndex() << "\\par \n";
1297 m_t << rtf_Style_Reset << "\n";
1298 m_t << "{\\tc \\v " << theTranslator->trRTFGeneralIndex() << "}\n";
1299 m_t << "{\\field\\fldedit {\\*\\fldinst INDEX \\\\c2 \\\\*MERGEFORMAT}{\\fldrslt INDEX}}\n";
1300
1301 break;
1302 }
1303}
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:660
void writeDoc(const IDocNodeAST *ast, const Definition *, const MemberDef *, int) override
Definition rtfgen.cpp:2617
void writePageLink(const QCString &, bool) override
Definition rtfgen.cpp:1305
void beginRTFSection()
Definition rtfgen.cpp:680
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:54
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 1480 of file rtfgen.cpp.

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

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

◆ endInlineHeader()

void RTFGenerator::endInlineHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2732 of file rtfgen.cpp.

2733{
2734 DBG_RTF(m_t << "{\\comment (endInlineHeader)}\n")
2735 endBold();
2736 m_t << "\\par";
2737 m_t << "}\n";
2738}
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 2817 of file rtfgen.cpp.

2818{
2819 DBG_RTF(m_t << "{\\comment (endInlineMemberDoc)}\n")
2820 m_t << "\\cell }{\\row }\n";
2821}

References DBG_RTF, and OutputGenerator::m_t.

◆ endInlineMemberName()

void RTFGenerator::endInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2805 of file rtfgen.cpp.

2806{
2807 DBG_RTF(m_t << "{\\comment (endInlineMemberName)}\n")
2808 m_t << "\\cell }";
2809}

References DBG_RTF, and OutputGenerator::m_t.

◆ endInlineMemberType()

void RTFGenerator::endInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2793 of file rtfgen.cpp.

2794{
2795 DBG_RTF(m_t << "{\\comment (endInlineMemberType)}\n")
2796 m_t << "\\cell }";
2797}

References DBG_RTF, and OutputGenerator::m_t.

◆ endItemList()

void RTFGenerator::endItemList ( )
overridevirtual

end bullet list

Implements OutputGenIntf.

Definition at line 1377 of file rtfgen.cpp.

1378{
1379 newParagraph();
1380 DBG_RTF(m_t << "{\\comment (endItemList level=" << indentLevel() << ")}\n")
1381 m_t << "}";
1384}
int indentLevel() const
Definition rtfgen.cpp:2030

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

◆ endItemListItem()

void RTFGenerator::endItemListItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1406 of file rtfgen.cpp.

1407{
1408 DBG_RTF(m_t << "{\\comment (endItemListItem)}\n")
1409}

References DBG_RTF, and OutputGenerator::m_t.

◆ endLabels()

void RTFGenerator::endLabels ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2833 of file rtfgen.cpp.

2834{
2835}

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

1784{
1785 DBG_RTF(m_t << "{\\comment (endMemberDescription)}\n")
1786 endEmphasis();
1788 m_t << "\\par";
1789 m_t << "}\n";
1791}

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

◆ endMemberDoc()

void RTFGenerator::endMemberDoc ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 1697 of file rtfgen.cpp.

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

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

265{}

◆ endMemberDocPrefixItem()

void RTFGenerator::endMemberDocPrefixItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 263 of file rtfgen.h.

263{}

◆ endMemberDocSimple()

void RTFGenerator::endMemberDocSimple ( bool )
overridevirtual

Implements OutputGenIntf.

Definition at line 2781 of file rtfgen.cpp.

2782{
2783 DBG_RTF(m_t << "{\\comment (endMemberDocSimple)}\n")
2784 m_t << "}\n";
2785}

References DBG_RTF, and OutputGenerator::m_t.

◆ endMemberGroup()

void RTFGenerator::endMemberGroup ( bool hasHeader)
overridevirtual

Implements OutputGenIntf.

Definition at line 2556 of file rtfgen.cpp.

2557{
2558 DBG_RTF(m_t << "{\\comment endMemberGroup}\n")
2559 if (hasHeader) decIndentLevel();
2560 m_t << "}";
2561}

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

◆ endMemberGroupDocs()

void RTFGenerator::endMemberGroupDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2543 of file rtfgen.cpp.

2544{
2545 DBG_RTF(m_t << "{\\comment endMemberGroupDocs}\n")
2546 endEmphasis();
2547 newParagraph();
2548}

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

◆ endMemberGroupHeader()

void RTFGenerator::endMemberGroupHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2530 of file rtfgen.cpp.

2531{
2532 DBG_RTF(m_t << "{\\comment endMemberGroupHeader}\n")
2533 newParagraph();
2535}
QCString rtf_CList_DepthStyle()
Definition rtfgen.cpp:2058

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:1660

References endGroupHeader(), and FALSE.

◆ endMemberItem()

void RTFGenerator::endMemberItem ( MemberItemType )
overridevirtual

Implements OutputGenIntf.

Definition at line 1884 of file rtfgen.cpp.

1885{
1886 DBG_RTF(m_t << "{\\comment endMemberItem }\n")
1887 newParagraph();
1888}

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

◆ endMemberList()

void RTFGenerator::endMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1936 of file rtfgen.cpp.

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

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

2147{
2148 DBG_RTF(m_t << "{\\comment endMemberSubtitle}\n")
2149 newParagraph();
2150 m_t << "}\n";
2151}

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

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

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

◆ endParagraph()

void RTFGenerator::endParagraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2132 of file rtfgen.cpp.

2133{
2134 DBG_RTF(m_t << "{\\comment endParagraph}\n")
2135 m_t << "}\\par\n";
2137}

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

◆ endParameterDefVal()

void RTFGenerator::endParameterDefVal ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 273 of file rtfgen.h.

273{ 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 2855 of file rtfgen.cpp.

2856{
2857 if (last && closeBracket)
2858 {
2859 m_t << ")";
2860 }
2861}

References OutputGenerator::m_t.

◆ endParameterList()

void RTFGenerator::endParameterList ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 275 of file rtfgen.h.

275{}

◆ endParameterName()

void RTFGenerator::endParameterName ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 269 of file rtfgen.h.

269{}

◆ endParameterType()

void RTFGenerator::endParameterType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2597 of file rtfgen.cpp.

2598{
2599 DBG_RTF(m_t << "{\\comment (endParameterType)}\n")
2600 m_t << " ";
2601}

References DBG_RTF, and OutputGenerator::m_t.

◆ endPlainFile()

void RTFGenerator::endPlainFile ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 303 of file rtfgen.h.

References OutputGenerator::endPlainFile().

Referenced by endFile().

◆ endProjectNumber()

void RTFGenerator::endProjectNumber ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 730 of file rtfgen.cpp.

731{
732 DBG_RTF(m_t << "{\\comment endProjectNumber }\n")
733}

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

1832{
1833 DBG_RTF(m_t << "{\\comment (endSection)}\n")
1834 // make bookmark
1836 newParagraph();
1837 writeAnchor(QCString(),lab);
1838 m_t << "}";
1839}
void writeAnchor(const QCString &fileName, const QCString &name) override
Definition rtfgen.cpp:1890

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

2107{
2108 newParagraph();
2109 DBG_RTF(m_t << "{\\comment endTextBlock}\n")
2110 m_t << "}\n";
2111 //m_omitParagraph = TRUE;
2112}

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

◆ endTextLink()

void RTFGenerator::endTextLink ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1537 of file rtfgen.cpp.

1538{
1539 if (Config_getBool(RTF_HYPERLINKS))
1540 {
1541 m_t << "}}}\n";
1542 }
1543}

References Config_getBool, and OutputGenerator::m_t.

◆ endTitleHead()

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

Implements OutputGenIntf.

Definition at line 1619 of file rtfgen.cpp.

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

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

◆ endTypewriter()

void RTFGenerator::endTypewriter ( )
inlineoverridevirtual

Implements OutputGenIntf.

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

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

References DBG_RTF, OutputGenerator::m_t, and prefix.

◆ incIndentLevel()

void RTFGenerator::incIndentLevel ( )
private

Definition at line 2035 of file rtfgen.cpp.

2036{
2037 m_indentLevel++;
2039 {
2041 err("Maximum indent level (%d) exceeded while generating RTF output!\n",maxIndentLevels);
2042 }
2043 m_codeGen->setIndentLevel(m_indentLevel);
2044}
static const int maxIndentLevels
Definition rtfgen.h:332

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

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

References Config_getString, copyFile(), createSubDirs(), Rtf_Style_Default::definition, OutputGenerator::dir(), err, Dir::exists(), FileInfo::exists(), FileInfo::fileName(), QCString::isEmpty(), loadExtensions(), loadStylesheet(), Dir::mkdir(), Rtf_Style_Default::name, qPrint(), Rtf_Style_Default::reference, rtf_logoFilename, rtf_Style, rtf_Style_Default, 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 1313 of file rtfgen.cpp.

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

References DBG_RTF, OutputGenerator::m_t, and rtf_Style.

◆ lineBreak()

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

Implements OutputGenIntf.

Definition at line 1329 of file rtfgen.cpp.

1330{
1331 DBG_RTF(m_t << "{\\comment (lineBreak)}" << "\n")
1332 m_t << "\\par\n";
1334}

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

◆ newParagraph()

◆ operator=() [1/2]

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

Definition at line 356 of file rtfgen.cpp.

357{
358 if (this!=&og)
359 {
360 m_dir = og.m_dir;
361 m_codeList = std::make_unique<OutputCodeList>(*og.m_codeList);
362 m_codeGen = m_codeList->get<RTFCodeGenerator>(OutputType::RTF);
363 m_codeGen->setTextStream(&m_t);
366 m_numCols = og.m_numCols;
367 m_relPath = og.m_relPath;
370 }
371 return *this;
372}

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

2458{
2459 static bool rtfDebug = Debug::isFlagSet(Debug::Rtf);
2460
2461 Dir d(path.str());
2462 // store the original directory
2463 if (!d.exists())
2464 {
2465 err("Output dir %s does not exist!\n",qPrint(path));
2466 return FALSE;
2467 }
2468 std::string oldDir = Dir::currentDirPath();
2469
2470 // go to the html output directory (i.e. path)
2471 Dir::setCurrent(d.absPath());
2472 Dir thisDir;
2473
2474 QCString combinedName = path+"/combined.rtf";
2475 QCString mainRTFName = path+"/"+name;
2476
2477 std::ofstream f = Portable::openOutputStream(combinedName);
2478 if (!f.is_open())
2479 {
2480 err("Failed to open %s for writing!\n",combinedName.data());
2481 Dir::setCurrent(oldDir);
2482 return FALSE;
2483 }
2484 TextStream outt(&f);
2485
2486 if (!preProcessFile(thisDir,mainRTFName,outt,true,false))
2487 {
2488 // it failed, remove the temp file
2489 outt.flush();
2490 f.close();
2491 if (!rtfDebug) removeSet.insert(FileInfo(thisDir.filePath(combinedName.str())).absFilePath());
2492 Dir::setCurrent(oldDir);
2493 return FALSE;
2494 }
2495
2496 // everything worked, move the files
2497 outt.flush();
2498 f.close();
2499 if (!rtfDebug)
2500 {
2501 thisDir.remove(mainRTFName.str());
2502 }
2503 else
2504 {
2505 thisDir.rename(mainRTFName.str(),mainRTFName.str() + ".org");
2506 }
2507 thisDir.rename(combinedName.str(),mainRTFName.str());
2508
2509 testRTFOutput(mainRTFName);
2510
2511 QCString rtfOutputDir = Dir::currentDirPath();
2512 for (auto &s : removeSet)
2513 {
2514 QCString s1(s.c_str());
2515 if (s1.startsWith(rtfOutputDir)) Portable::unlink(s1);
2516 }
2517
2518 Dir::setCurrent(oldDir);
2519 return TRUE;
2520}
@ Rtf
Definition debug.h:42
static bool isFlagSet(const DebugMask mask)
Definition debug.cpp:135
static std::string currentDirPath()
Definition dir.cpp:340
bool remove(const std::string &path, bool acceptsAbsPath=true) const
Definition dir.cpp:314
std::string filePath(const std::string &path, bool acceptsAbsPath=true) const
Definition dir.cpp:280
bool rename(const std::string &orgName, const std::string &newName, bool acceptsAbsPath=true) const
Definition dir.cpp:321
static bool setCurrent(const std::string &path)
Definition dir.cpp:348
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Definition qcstring.h:159
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:2412
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:2245

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

Referenced by generateOutput().

◆ rtf_BList_DepthStyle()

QCString RTFGenerator::rtf_BList_DepthStyle ( )
private

Definition at line 2072 of file rtfgen.cpp.

2073{
2074 QCString n=makeIndexName("ListBullet",indentLevel());
2075 return rtf_Style[n.str()].reference();
2076}
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 2058 of file rtfgen.cpp.

2059{
2060 QCString n=makeIndexName("ListContinue",indentLevel());
2061 return rtf_Style[n.str()].reference();
2062}

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

2086{
2087 QCString n=makeIndexName("DescContinue",indentLevel());
2088 return rtf_Style[n.str()].reference();
2089}

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

2080{
2081 QCString n=makeIndexName("ListEnum",indentLevel());
2082 return rtf_Style[n.str()].reference();
2083}

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

Referenced by startItemListItem().

◆ rtf_LCList_DepthStyle()

QCString RTFGenerator::rtf_LCList_DepthStyle ( )
private

Definition at line 2065 of file rtfgen.cpp.

2066{
2067 QCString n=makeIndexName("LatexTOC",indentLevel());
2068 return rtf_Style[n.str()].reference();
2069}

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

Referenced by startIndexList().

◆ rtfwriteRuler_doubleline()

void RTFGenerator::rtfwriteRuler_doubleline ( )
private

Definition at line 2628 of file rtfgen.cpp.

2629{
2630 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_doubleline)}\n")
2631 m_t << "{\\pard\\widctlpar\\brdrb\\brdrdb\\brdrw15\\brsp20 \\adjustright \\par}\n";
2632}

References DBG_RTF, and OutputGenerator::m_t.

◆ rtfwriteRuler_emboss()

void RTFGenerator::rtfwriteRuler_emboss ( )
private

Definition at line 2634 of file rtfgen.cpp.

2635{
2636 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_emboss)}\n")
2637 m_t << "{\\pard\\widctlpar\\brdrb\\brdremboss\\brdrw15\\brsp20 \\adjustright \\par}\n";
2638}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by beginRTFSection().

◆ rtfwriteRuler_thick()

void RTFGenerator::rtfwriteRuler_thick ( )
private

Definition at line 2640 of file rtfgen.cpp.

2641{
2642 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_thick)}\n")
2643 m_t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw75\\brsp20 \\adjustright \\par}\n";
2644}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by beginRTFChapter().

◆ rtfwriteRuler_thin()

void RTFGenerator::rtfwriteRuler_thin ( )
private

Definition at line 2646 of file rtfgen.cpp.

2647{
2648 DBG_RTF(m_t << "{\\comment (rtfwriteRuler_thin)}\n")
2649 m_t << "{\\pard\\widctlpar\\brdrb\\brdrs\\brdrw5\\brsp20 \\adjustright \\par}\n";
2650}

References DBG_RTF, and OutputGenerator::m_t.

Referenced by writeRuler().

◆ setRelativePath()

void RTFGenerator::setRelativePath ( const QCString & path)

Definition at line 381 of file rtfgen.cpp.

382{
383 m_relPath = path;
384}

References m_relPath.

Referenced by startFile().

◆ setSourceFileName()

void RTFGenerator::setSourceFileName ( const QCString & sourceFileName)

Definition at line 386 of file rtfgen.cpp.

387{
388 m_codeGen->setSourceFileName(name);
389}

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

2366{
2367 DBG_RTF(m_t << "{\\comment (startCallGraph)}\n")
2368}

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

1857{
1858 DBG_RTF(m_t << "{\\comment startClassDiagram }\n")
1859}

References DBG_RTF, and OutputGenerator::m_t.

◆ startCompoundTemplateParams()

void RTFGenerator::startCompoundTemplateParams ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1499 of file rtfgen.cpp.

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

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

2694{
2695 DBG_RTF(m_t << "{\\comment (startConstraintDocs)}\n")
2696}

References DBG_RTF, and OutputGenerator::m_t.

◆ startConstraintList()

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

Implements OutputGenIntf.

Definition at line 2652 of file rtfgen.cpp.

2653{
2654 DBG_RTF(m_t << "{\\comment (startConstraintList)}\n")
2655 m_t << "{"; // ends at endConstraintList
2656 m_t << "{";
2657 startBold();
2658 newParagraph();
2659 docify(header);
2660 endBold();
2661 m_t << "}";
2662 newParagraph();
2665}
void incIndentLevel()
Definition rtfgen.cpp:2035
void startBold() override
Definition rtfgen.h:180
QCString rtf_DList_DepthStyle()
Definition rtfgen.cpp:2085

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

2668{
2669 DBG_RTF(m_t << "{\\comment (startConstraintParam)}\n")
2670 startEmphasis();
2671}
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 2680 of file rtfgen.cpp.

2681{
2682 DBG_RTF(m_t << "{\\comment (startConstraintType)}\n")
2683 startEmphasis();
2684}

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

◆ startContents()

void RTFGenerator::startContents ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 224 of file rtfgen.h.

224{}

◆ startDescForItem()

void RTFGenerator::startDescForItem ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1793 of file rtfgen.cpp.

1794{
1795 DBG_RTF(m_t << "{\\comment (startDescForItem) }\n")
1796}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDescTable()

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

Implements OutputGenIntf.

Definition at line 1946 of file rtfgen.cpp.

1947{
1948 DBG_RTF(m_t << "{\\comment (startDescTable) }\n")
1949 m_t << "{\\par\n";
1950 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
1951 docify(title);
1952 m_t << ":\\par}\n";
1954 m_t << "\\trowd \\trgaph108\\trleft426\\tblind426"
1955 "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1956 "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1957 "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1958 "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
1959 "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
1960 "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 \n";
1961 int columnPos2[2] = { 25, 100 };
1962 int columnPos3[3] = { 25, 45, 100 };
1963 for (int i=0;i<(hasInits?3:2);i++)
1964 {
1965 m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
1966 "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
1967 "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
1968 "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
1969 "\\cltxlrtb "
1970 "\\cellx" << (rtf_pageWidth*(hasInits?columnPos3[i]:columnPos2[i])/100) << "\n";
1971 }
1972 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
1973}
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 2016 of file rtfgen.cpp.

2017{
2018 DBG_RTF(m_t << "{\\comment (startDescTableData) }\n")
2019 m_t << "{";
2020}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDescTableInit()

void RTFGenerator::startDescTableInit ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2002 of file rtfgen.cpp.

2003{
2004 DBG_RTF(m_t << "{\\comment (startDescTableInit) }" << endl)
2005 m_t << "{";
2006 m_t << rtf_Style["BodyText"].reference();
2007 m_t << "\\qr ";
2008}

References DBG_RTF, OutputGenerator::m_t, and rtf_Style.

◆ startDescTableRow()

void RTFGenerator::startDescTableRow ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1981 of file rtfgen.cpp.

1982{
1983}

◆ startDescTableTitle()

void RTFGenerator::startDescTableTitle ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1989 of file rtfgen.cpp.

1990{
1991 DBG_RTF(m_t << "{\\comment (startDescTableTitle) }\n")
1992 m_t << "{";
1993 m_t << rtf_Style["BodyText"].reference();
1994}

References DBG_RTF, OutputGenerator::m_t, and rtf_Style.

◆ startDirDepGraph()

void RTFGenerator::startDirDepGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2387 of file rtfgen.cpp.

2388{
2389 DBG_RTF(m_t << "{\\comment (startDirDepGraph)}\n")
2390}

References DBG_RTF, and OutputGenerator::m_t.

◆ startDotGraph()

void RTFGenerator::startDotGraph ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2312 of file rtfgen.cpp.

2313{
2314 DBG_RTF(m_t << "{\\comment (startDotGraph)}\n")
2315}

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

1712{
1713 DBG_RTF(m_t << "{\\comment startDoxyAnchor}\n")
1714}

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

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

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

702{
703 //setEncoding(QCString().sprintf("CP%s",theTranslator->trRTFansicp()));
704 QCString fileName=name;
706 m_hierarchyLevel = hierarchyLevel;
707
708 if (!fileName.endsWith(".rtf")) fileName+=".rtf";
713}
void startPlainFile(const QCString &name) override
Definition rtfgen.h:302
void beginRTFDocument()
Definition rtfgen.cpp:523
void setRelativePath(const QCString &path)
Definition rtfgen.cpp:381
QCString relativePathToRoot(const QCString &name)
Definition util.cpp:3933

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

◆ startGroupCollaboration()

void RTFGenerator::startGroupCollaboration ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2357 of file rtfgen.cpp.

2358{
2359}

◆ startGroupHeader()

void RTFGenerator::startGroupHeader ( int extraIndent)
overridevirtual

Implements OutputGenIntf.

Definition at line 1640 of file rtfgen.cpp.

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

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

2336{
2337 DBG_RTF(m_t << "{\\comment (startInclDepGraph)}\n")
2338}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndent()

void RTFGenerator::startIndent ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1759 of file rtfgen.cpp.

1760{
1762 DBG_RTF(m_t << "{\\comment (startIndent) }\n")
1763 m_t << "{\n";
1765}

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

1412{
1413 DBG_RTF(m_t << "{\\comment (startIndexItem)}\n")
1414
1416 {
1417 m_t << "\\par\n";
1419 }
1420}

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

◆ startIndexKey()

void RTFGenerator::startIndexKey ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1462 of file rtfgen.cpp.

1463{
1464 DBG_RTF(m_t << "{\\comment (startIndexKey)}\n")
1465 m_t << "{\\b ";
1466}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndexList()

void RTFGenerator::startIndexList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1341 of file rtfgen.cpp.

1342{
1343 DBG_RTF(m_t << "{\\comment (startIndexList)}\n")
1344 m_t << "{\n";
1345 m_t << "\\par\n";
1349}
QCString rtf_LCList_DepthStyle()
Definition rtfgen.cpp:2065

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

2714{
2715 DBG_RTF(m_t << "{\\comment (startIndexListItem)}\n")
2716}

References DBG_RTF, and OutputGenerator::m_t.

◆ startIndexSection()

void RTFGenerator::startIndexSection ( IndexSection is)
overridevirtual

Implements OutputGenIntf.

Definition at line 735 of file rtfgen.cpp.

736{
737 //QCString paperName;
738
739 //m_indentLevel = 0;
740
741 switch (is)
742 {
744 // basic RTFstart
745 // get readyfor author etc
746
747 m_t << "{\\info \n";
748 m_t << "{\\title {\\comment ";
749 break;
751 m_t << "}\n";
752 if (!rtf_subject.isEmpty()) m_t << "{\\subject " << rtf_subject << "}\n";
753 if (!rtf_comments.isEmpty()) m_t << "{\\comment " << rtf_comments << "}\n";
754 if (!rtf_company.isEmpty()) m_t << "{\\company " << rtf_company << "}\n";
755 if (!rtf_author.isEmpty()) m_t << "{\\author " << rtf_author << "}\n";
756 if (!rtf_manager.isEmpty()) m_t << "{\\manager " << rtf_manager << "}\n";
757 if (!rtf_documentType.isEmpty()) m_t << "{\\category " << rtf_documentType << "}\n";
758 if (!rtf_keywords.isEmpty()) m_t << "{\\keywords " << rtf_keywords << "}\n";
759 m_t << "{\\comment ";
760 break;
762 //Introduction
764 break;
766 //Topic Index
768 break;
770 //Module Index
772 break;
774 //Directory Index
776 break;
778 //Namespace Index
780 break;
782 //Concept Index
784 break;
786 //Hierarchical Index
787 DBG_RTF(m_t << "{\\comment start classhierarchy}\n")
789 break;
791 //Annotated Compound Index
793 break;
795 //Annotated File Index
797 break;
799 //Related Page Index
801 break;
803 {
804 //Topic Documentation
805 for (const auto &gd : *Doxygen::groupLinkedMap)
806 {
807 if (!gd->isReference())
808 {
810 break;
811 }
812 }
813 }
814 break;
816 {
817 //Module Documentation
818 for (const auto &mod : ModuleManager::instance().modules())
819 {
820 if (!mod->isReference() && mod->isPrimaryInterface())
821 {
823 break;
824 }
825 }
826 }
827 break;
829 {
830 //Directory Documentation
831 for (const auto &dd : *Doxygen::dirLinkedMap)
832 {
833 if (dd->isLinkableInProject())
834 {
836 break;
837 }
838 }
839 }
840 break;
842 {
843 // Namespace Documentation
844 for (const auto &nd : *Doxygen::namespaceLinkedMap)
845 {
846 if (nd->isLinkableInProject())
847 {
849 break;
850 }
851 }
852 }
853 break;
855 {
856 // Concept Documentation
857 for (const auto &cd : *Doxygen::conceptLinkedMap)
858 {
859 if (cd->isLinkableInProject())
860 {
862 break;
863 }
864 }
865 }
866 break;
868 {
869 //Compound Documentation
870 for (const auto &cd : *Doxygen::classLinkedMap)
871 {
872 if (cd->isLinkableInProject() &&
873 cd->templateMaster()==nullptr &&
874 !cd->isEmbeddedInOuterScope() &&
875 !cd->isAlias()
876 )
877 {
879 break;
880 }
881 }
882 }
883 break;
885 {
886 //File Documentation
887 bool isFirst=TRUE;
888 for (const auto &fn : *Doxygen::inputNameLinkedMap)
889 {
890 for (const auto &fd : *fn)
891 {
892 if (fd->isLinkableInProject() || fd->generateSourceFile())
893 {
894 if (isFirst)
895 {
897 isFirst=FALSE;
898 break;
899 }
900 }
901 }
902 if (!isFirst)
903 {
904 break;
905 }
906 }
907 }
908 break;
910 {
911 //Example Documentation
913 }
914 break;
916 break;
918 break;
920 break;
921 }
922}
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 1473 of file rtfgen.cpp.

1474{
1475 DBG_RTF(m_t << "{\\comment (startIndexValue)}\n")
1476 m_t << " ";
1477 if (hasBrief) m_t << "(";
1478}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineHeader()

void RTFGenerator::startInlineHeader ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2724 of file rtfgen.cpp.

2725{
2726 DBG_RTF(m_t << "{\\comment (startInlineHeader)}\n")
2727 m_t << "{\n";
2728 m_t << rtf_Style_Reset << rtf_Style["Heading5"].reference();
2729 startBold();
2730}

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

◆ startInlineMemberDoc()

void RTFGenerator::startInlineMemberDoc ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2811 of file rtfgen.cpp.

2812{
2813 DBG_RTF(m_t << "{\\comment (startInlineMemberDoc)}\n")
2814 m_t << "{";
2815}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineMemberName()

void RTFGenerator::startInlineMemberName ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2799 of file rtfgen.cpp.

2800{
2801 DBG_RTF(m_t << "{\\comment (startInlineMemberName)}\n")
2802 m_t << "{";
2803}

References DBG_RTF, and OutputGenerator::m_t.

◆ startInlineMemberType()

void RTFGenerator::startInlineMemberType ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2787 of file rtfgen.cpp.

2788{
2789 DBG_RTF(m_t << "{\\comment (startInlineMemberType)}\n")
2790 m_t << "{\\qr ";
2791}

References DBG_RTF, and OutputGenerator::m_t.

◆ startItemList()

void RTFGenerator::startItemList ( )
overridevirtual

start bullet list

Implements OutputGenIntf.

Definition at line 1364 of file rtfgen.cpp.

1365{
1366 newParagraph();
1368 int level = indentLevel();
1369 DBG_RTF(m_t << "{\\comment (startItemList level=" << level << ") }\n")
1370 m_t << "{";
1371 m_listItemInfo[level].number = 1;
1372 m_listItemInfo[level].isEnum = false;
1373 m_listItemInfo[level].type = '1';
1374}
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 1387 of file rtfgen.cpp.

1388{
1389 DBG_RTF(m_t << "{\\comment (startItemListItem)}\n")
1390 newParagraph();
1392 int level = indentLevel();
1393 if (m_listItemInfo[level].isEnum)
1394 {
1395 m_t << rtf_EList_DepthStyle() << "\n";
1396 m_t << m_listItemInfo[level].number << ".\\tab ";
1397 m_listItemInfo[level].number++;
1398 }
1399 else
1400 {
1401 m_t << rtf_BList_DepthStyle() << "\n";
1402 }
1404}
QCString rtf_EList_DepthStyle()
Definition rtfgen.cpp:2079
QCString rtf_BList_DepthStyle()
Definition rtfgen.cpp:2072

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

2824{
2825}

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

1775{
1776 DBG_RTF(m_t << "{\\comment (startMemberDescription)}\n")
1777 m_t << "{\n";
1780 startEmphasis();
1781}

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

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

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

264{}

◆ startMemberDocPrefixItem()

void RTFGenerator::startMemberDocPrefixItem ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 262 of file rtfgen.h.

262{}

◆ startMemberDocSimple()

void RTFGenerator::startMemberDocSimple ( bool isEnum)
overridevirtual

Implements OutputGenIntf.

Definition at line 2740 of file rtfgen.cpp.

2741{
2742 DBG_RTF(m_t << "{\\comment (startMemberDocSimple)}\n")
2743 m_t << "{\\par\n";
2744 m_t << "{" << rtf_Style["Heading5"].reference() << "\n";
2745 if (isEnum)
2746 {
2748 }
2749 else
2750 {
2752 }
2753 m_t << ":\\par}\n";
2755 m_t << "\\trowd \\trgaph108\\trleft426\\tblind426"
2756 "\\trbrdrt\\brdrs\\brdrw10\\brdrcf15 "
2757 "\\trbrdrl\\brdrs\\brdrw10\\brdrcf15 "
2758 "\\trbrdrb\\brdrs\\brdrw10\\brdrcf15 "
2759 "\\trbrdrr\\brdrs\\brdrw10\\brdrcf15 "
2760 "\\trbrdrh\\brdrs\\brdrw10\\brdrcf15 "
2761 "\\trbrdrv\\brdrs\\brdrw10\\brdrcf15 \n";
2762 int n=3,columnPos[3] = { 25, 50, 100 };
2763 if (isEnum)
2764 {
2765 columnPos[0]=30;
2766 columnPos[1]=100;
2767 n=2;
2768 }
2769 for (int i=0;i<n;i++)
2770 {
2771 m_t << "\\clvertalt\\clbrdrt\\brdrs\\brdrw10\\brdrcf15 "
2772 "\\clbrdrl\\brdrs\\brdrw10\\brdrcf15 "
2773 "\\clbrdrb\\brdrs\\brdrw10\\brdrcf15 "
2774 "\\clbrdrr \\brdrs\\brdrw10\\brdrcf15 "
2775 "\\cltxlrtb "
2776 "\\cellx" << (rtf_pageWidth*columnPos[i]/100) << "\n";
2777 }
2778 m_t << "\\pard \\widctlpar\\intbl\\adjustright\n";
2779}
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 2550 of file rtfgen.cpp.

2551{
2552 DBG_RTF(m_t << "{\\comment startMemberGroup}\n")
2554}

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

◆ startMemberGroupDocs()

void RTFGenerator::startMemberGroupDocs ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 2537 of file rtfgen.cpp.

2538{
2539 DBG_RTF(m_t << "{\\comment startMemberGroupDocs}\n")
2540 startEmphasis();
2541}

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

◆ startMemberGroupHeader()

void RTFGenerator::startMemberGroupHeader ( bool hasHeader)
overridevirtual

Implements OutputGenIntf.

Definition at line 2522 of file rtfgen.cpp.

2523{
2524 DBG_RTF(m_t << "{\\comment startMemberGroupHeader}\n")
2525 m_t << "{\n";
2526 if (hasHeader) incIndentLevel();
2527 m_t << rtf_Style_Reset << rtf_Style["GroupHeader"].reference();
2528}

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(int) override
Definition rtfgen.cpp:1640

References startGroupHeader().

◆ startMemberItem()

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

Implements OutputGenIntf.

Definition at line 1878 of file rtfgen.cpp.

1879{
1880 DBG_RTF(m_t << "{\\comment startMemberItem }\n")
1881 m_t << rtf_Style_Reset << rtf_BList_DepthStyle() << "\n"; // set style to appropriate depth
1882}

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

◆ startMemberList()

void RTFGenerator::startMemberList ( )
overridevirtual

Implements OutputGenIntf.

Definition at line 1925 of file rtfgen.cpp.

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

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

2140{
2141 DBG_RTF(m_t << "{\\comment startMemberSubtitle}\n")
2142 m_t << "{\n";
2144}

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

1587{
1588 m_t << " (";
1589 startEmphasis();
1590}

References OutputGenerator::m_t, and startEmphasis().

◆ startParagraph()

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

Implements OutputGenIntf.

Definition at line 2124 of file rtfgen.cpp.

2125{
2126 DBG_RTF(m_t << "{\\comment startParagraph}\n")
2127 newParagraph();
2128 m_t << "{\n";
2129 if (QCString(txt) == "reference") m_t << "\\ql\n";
2130}

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

◆ startParameterDefVal()

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

Implements OutputGenIntf.

Definition at line 272 of file rtfgen.h.

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

References docify(), and startTypewriter().

◆ startParameterExtra()

void RTFGenerator::startParameterExtra ( )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 270 of file rtfgen.h.

270{}

◆ startParameterList()

void RTFGenerator::startParameterList ( bool openBracket)
overridevirtual

Implements OutputGenIntf.

Definition at line 2850 of file rtfgen.cpp.

2851{
2852 if (openBracket) m_t << "(";
2853}

References OutputGenerator::m_t.

◆ startParameterName()

void RTFGenerator::startParameterName ( bool )
inlineoverridevirtual

Implements OutputGenIntf.

Definition at line 268 of file rtfgen.h.

268{}

◆ startParameterType()

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

Implements OutputGenIntf.

Definition at line 2588 of file rtfgen.cpp.

2589{
2590 DBG_RTF(m_t << "{\\comment (startParameterType)}\n")
2591 if (!first && !key.isEmpty())
2592 {
2593 m_t << " " << key << " ";
2594 }
2595}

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

◆ startPlainFile()

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

Implements OutputGenIntf.

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

725{
726 DBG_RTF(m_t << "{\\comment startProjectNumber }\n")
727 m_t << " ";
728}

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

1804{
1805 DBG_RTF(m_t << "{\\comment (startSection)}\n")
1806 m_t << "{";
1808 int num=SectionType::MaxLevel;
1809 switch(type.level())
1810 {
1811 case SectionType::Page: num=2+m_hierarchyLevel; break;
1812 case SectionType::Section: num=3+m_hierarchyLevel; break;
1813 case SectionType::Subsection: // fall through
1814 case SectionType::Subsubsection: // fall through
1815 case SectionType::Paragraph: // fall through
1816 case SectionType::Subparagraph: // fall through
1818 default: ASSERT(0); break;
1819 }
1820 num = std::clamp(num, SectionType::MinLevel, SectionType::MaxLevel);
1821 QCString heading;
1822 heading.sprintf("Heading%d",num);
1823 // set style
1824 m_t << rtf_Style[heading.str()].reference();
1825 // make table of contents entry
1826 m_t << "{\\tc\\tcl" << num << " \\v ";
1827 docify(title);
1828 m_t << "}\n";
1829}
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 2091 of file rtfgen.cpp.

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

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

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

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

◆ startTitleHead()

void RTFGenerator::startTitleHead ( const QCString & )
overridevirtual

Implements OutputGenIntf.

Definition at line 1609 of file rtfgen.cpp.

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

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

◆ startTypewriter()

void RTFGenerator::startTypewriter ( )
inlineoverridevirtual

Implements OutputGenIntf.

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

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

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

1849{
1850 char cs[2];
1851 cs[0]=c;
1852 cs[1]=0;
1853 docify(cs);
1854}

References docify().

◆ writeDoc()

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

Implements OutputGenIntf.

Definition at line 2617 of file rtfgen.cpp.

2618{
2619 auto astImpl = dynamic_cast<const DocNodeAST*>(ast);
2620 if (astImpl)
2621 {
2622 RTFDocVisitor visitor(m_t,*m_codeList,ctx?ctx->getDefFileExtension():QCString(""),m_hierarchyLevel);
2623 std::visit(visitor,astImpl->root);
2624 }
2626}
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 406 of file rtfgen.cpp.

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

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

249{}

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

2841{
2843 m_t << rtf_Style["Heading4"].reference();
2844 m_t << "\n";
2845 m_t << theTranslator->trInheritedFrom(docifyToString(title), objectLinkToString(ref, file, anchor, name));
2846 m_t << "\\par\n";
2847 m_t << rtf_Style_Reset << "\n";
2848}
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 2827 of file rtfgen.cpp.

2828{
2829 m_t << "{\\f2 [" << l << "]}";
2830 if (!isLast) m_t << ", ";
2831}

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}"; }

◆ writeLocalToc()

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

Implements OutputGenIntf.

Definition at line 300 of file rtfgen.h.

300{}

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

1920{
1921 m_t << "\\~ ";
1922}

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

1582{
1583 m_t << objectLinkToString(ref,f,anchor,text);
1584}

References OutputGenerator::m_t, and objectLinkToString().

◆ writePageLink()

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

Implements OutputGenIntf.

Definition at line 1305 of file rtfgen.cpp.

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

References OutputGenerator::m_t, and rtf_Style_Reset.

Referenced by endIndexSection().

◆ writeQuickLinks()

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

Implements OutputGenIntf.

Definition at line 222 of file rtfgen.h.

222{}

◆ writeRTFReference()

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

Definition at line 1912 of file rtfgen.cpp.

1913{
1914 m_t << "{\\field\\fldedit {\\*\\fldinst PAGEREF ";
1915 m_t << rtfFormatBmkStr(stripPath(label));
1916 m_t << " \\\\*MERGEFORMAT}{\\fldrslt pagenum}}";
1917}

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:2646

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 & )
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 1438 of file rtfgen.cpp.

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

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

1337{
1338 m_t << text;
1339}

References OutputGenerator::m_t.

◆ writeStyleInfo()

void RTFGenerator::writeStyleInfo ( int part)
overridevirtual

Implements OutputGenIntf.

Definition at line 1325 of file rtfgen.cpp.

1326{
1327}

◆ writeStyleSheetFile()

void RTFGenerator::writeStyleSheetFile ( TextStream & t)
static

Definition at line 391 of file rtfgen.cpp.

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

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 325 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 341 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 333 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 340 of file rtfgen.h.

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

◆ m_numCols

int RTFGenerator::m_numCols = 0
private

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

Referenced by incIndentLevel(), and indentLevel().


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