Doxygen
Loading...
Searching...
No Matches
rtfdocvisitor.cpp File Reference
#include <algorithm>
#include "rtfdocvisitor.h"
#include "docparser.h"
#include "language.h"
#include "doxygen.h"
#include "outputgen.h"
#include "dot.h"
#include "msc.h"
#include "util.h"
#include "rtfstyle.h"
#include "rtfgen.h"
#include "message.h"
#include "parserintf.h"
#include "dia.h"
#include "filedef.h"
#include "config.h"
#include "htmlentity.h"
#include "emoji.h"
#include "plantuml.h"
#include "fileinfo.h"
#include "portable.h"
#include "codefragment.h"
+ Include dependency graph for rtfdocvisitor.cpp:

Go to the source code of this file.

Macros

#define DBG_RTF(x)
 

Functions

static QCString align (const DocHtmlCell &cell)
 
static QCString makeBaseName (const QCString &name)
 

Macro Definition Documentation

◆ DBG_RTF

#define DBG_RTF ( x)
Value:
do {} while(0)

Definition at line 42 of file rtfdocvisitor.cpp.

Referenced by RTFGenerator::addLabel(), RTFGenerator::beginRTFChapter(), RTFGenerator::beginRTFDocument(), RTFGenerator::beginRTFSection(), RTFGenerator::endCallGraph(), RTFCodeGenerator::endCodeFragment(), RTFGenerator::endConstraintDocs(), RTFGenerator::endConstraintList(), RTFGenerator::endConstraintParam(), RTFGenerator::endConstraintType(), RTFGenerator::endDescForItem(), RTFGenerator::endDescTable(), RTFGenerator::endDescTableData(), RTFGenerator::endDescTableInit(), RTFGenerator::endDescTableTitle(), RTFGenerator::endDirDepGraph(), RTFGenerator::endDotGraph(), RTFGenerator::endDoxyAnchor(), RTFGenerator::endExamples(), RTFGenerator::endFile(), RTFGenerator::endGroupHeader(), RTFGenerator::endInclDepGraph(), RTFGenerator::endIndexItem(), RTFGenerator::endIndexKey(), RTFGenerator::endIndexList(), RTFGenerator::endIndexListItem(), RTFGenerator::endIndexSection(), RTFGenerator::endIndexValue(), RTFGenerator::endInlineHeader(), RTFGenerator::endInlineMemberDoc(), RTFGenerator::endInlineMemberName(), RTFGenerator::endInlineMemberType(), RTFGenerator::endItemList(), RTFGenerator::endItemListItem(), RTFGenerator::endMemberDescription(), RTFGenerator::endMemberDoc(), RTFGenerator::endMemberDocSimple(), RTFGenerator::endMemberGroup(), RTFGenerator::endMemberGroupDocs(), RTFGenerator::endMemberGroupHeader(), RTFGenerator::endMemberItem(), RTFGenerator::endMemberList(), RTFGenerator::endMemberSubtitle(), RTFGenerator::endParagraph(), RTFGenerator::endParameterType(), RTFGenerator::endProjectNumber(), RTFGenerator::endSection(), RTFGenerator::endTextBlock(), RTFGenerator::endTitleHead(), RTFGenerator::exceptionEntry(), RTFGenerator::lastIndexPage(), RTFGenerator::lineBreak(), RTFGenerator::newParagraph(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFGenerator::rtfwriteRuler_doubleline(), RTFGenerator::rtfwriteRuler_emboss(), RTFGenerator::rtfwriteRuler_thick(), RTFGenerator::rtfwriteRuler_thin(), RTFGenerator::startCallGraph(), RTFGenerator::startClassDiagram(), RTFCodeGenerator::startCodeFragment(), RTFGenerator::startCompoundTemplateParams(), RTFGenerator::startConstraintDocs(), RTFGenerator::startConstraintList(), RTFGenerator::startConstraintParam(), RTFGenerator::startConstraintType(), RTFGenerator::startDescForItem(), RTFGenerator::startDescTable(), RTFGenerator::startDescTableData(), RTFGenerator::startDescTableInit(), RTFGenerator::startDescTableTitle(), RTFGenerator::startDirDepGraph(), RTFGenerator::startDotGraph(), RTFGenerator::startDoxyAnchor(), RTFGenerator::startExamples(), RTFGenerator::startGroupHeader(), RTFGenerator::startInclDepGraph(), RTFGenerator::startIndent(), RTFGenerator::startIndexItem(), RTFGenerator::startIndexKey(), RTFGenerator::startIndexList(), RTFGenerator::startIndexListItem(), RTFGenerator::startIndexSection(), RTFGenerator::startIndexValue(), RTFGenerator::startInlineHeader(), RTFGenerator::startInlineMemberDoc(), RTFGenerator::startInlineMemberName(), RTFGenerator::startInlineMemberType(), RTFGenerator::startItemList(), RTFGenerator::startItemListItem(), RTFGenerator::startMemberDescription(), RTFGenerator::startMemberDoc(), RTFGenerator::startMemberDocSimple(), RTFGenerator::startMemberGroup(), RTFGenerator::startMemberGroupDocs(), RTFGenerator::startMemberGroupHeader(), RTFGenerator::startMemberItem(), RTFGenerator::startMemberList(), RTFGenerator::startMemberSubtitle(), RTFGenerator::startParagraph(), RTFGenerator::startParameterType(), RTFGenerator::startProjectNumber(), RTFGenerator::startSection(), RTFGenerator::startTextBlock(), RTFGenerator::startTitleHead(), RTFGenerator::writeAnchor(), and RTFGenerator::writeStartAnnoItem().

Function Documentation

◆ align()

static QCString align ( const DocHtmlCell & cell)
static

Definition at line 44 of file rtfdocvisitor.cpp.

45{
46 for (const auto &attr : cell.attribs())
47 {
48 if (attr.name.lower()=="align")
49 {
50 if (attr.value.lower()=="center") return "\\qc ";
51 else if (attr.value.lower()=="right") return "\\qr ";
52 else return "";
53 }
54 }
55 return "";
56}
const HtmlAttribList & attribs() const
Definition docnode.h:1185

References DocHtmlCell::attribs().

Referenced by RTFDocVisitor::operator()(), and OutputList::startMemberDocName().

◆ makeBaseName()

static QCString makeBaseName ( const QCString & name)
static

Definition at line 58 of file rtfdocvisitor.cpp.

59{
60 QCString baseName = name;
61 int i = baseName.findRev('/');
62 if (i!=-1)
63 {
64 baseName=baseName.mid(i+1);
65 }
66 return baseName;
67}
This is an alternative implementation of QCString.
Definition qcstring.h:101
QCString mid(size_t index, size_t len=static_cast< size_t >(-1)) const
Definition qcstring.h:226
int findRev(char c, int index=-1, bool cs=TRUE) const
Definition qcstring.cpp:91

References QCString::findRev(), and QCString::mid().