Doxygen
|
#include <mutex>
#include <stdlib.h>
#include <algorithm>
#include <unordered_map>
#include "rtfgen.h"
#include "config.h"
#include "message.h"
#include "doxygen.h"
#include "util.h"
#include "diagram.h"
#include "language.h"
#include "dot.h"
#include "dotcallgraph.h"
#include "dotclassgraph.h"
#include "dotdirdeps.h"
#include "dotincldepgraph.h"
#include "version.h"
#include "pagedef.h"
#include "rtfstyle.h"
#include "rtfdocvisitor.h"
#include "docparser.h"
#include "dirdef.h"
#include "vhdldocgen.h"
#include "portable.h"
#include "groupdef.h"
#include "classlist.h"
#include "filename.h"
#include "namespacedef.h"
#include "dir.h"
#include "utf8.h"
#include "debug.h"
#include "datetime.h"
#include "outputlist.h"
#include "moduledef.h"
Go to the source code of this file.
Macros | |
#define | DBG_RTF(x) |
Functions | |
static QCString | dateToRTFDateString () |
static QCString | docifyToString (const QCString &str) |
static QCString | makeIndexName (const QCString &s, int i) |
static QCString | objectLinkToString (const QCString &ref, const QCString &f, const QCString &anchor, const QCString &text) |
bool | isLeadBytes (int c) |
static void | encodeForOutput (TextStream &t, const QCString &s) |
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. | |
void | testRTFOutput (const QCString &name) |
Tests the integrity of the result by counting brackets. | |
QCString | rtfFormatBmkStr (const QCString &name) |
Variables | |
static StringSet | removeSet |
static std::mutex | g_rtfFormatMutex |
static std::unordered_map< std::string, std::string > | g_tagMap |
static QCString | g_nextTag ("AAAAAAAAAA") |
#define DBG_RTF | ( | x | ) |
Definition at line 55 of file rtfgen.cpp.
Referenced by preProcessFile().
|
static |
Definition at line 59 of file rtfgen.cpp.
References Config_getEnum, getCurrentDateTime(), and QCString::sprintf().
Referenced by RTFGenerator::endIndexSection().
Definition at line 81 of file rtfgen.cpp.
References QCString::data(), QCString::isEmpty(), QCString::length(), and QCString::reserve().
Referenced by objectLinkToString().
|
static |
Definition at line 2181 of file rtfgen.cpp.
References QCString::data(), FALSE, QCString::isEmpty(), isLeadBytes(), QCString::length(), portable_iconv(), portable_iconv_close(), portable_iconv_open(), qPrint(), qsnprintf, QCString::sprintf(), theTranslator, and TRUE.
Referenced by preProcessFile().
bool isLeadBytes | ( | int | c | ) |
Definition at line 2153 of file rtfgen.cpp.
References theTranslator.
Referenced by encodeForOutput().
Definition at line 104 of file rtfgen.cpp.
Referenced by RTFGenerator::rtf_BList_DepthStyle(), RTFGenerator::rtf_CList_DepthStyle(), RTFCodeGenerator::rtf_Code_DepthStyle(), RTFGenerator::rtf_DList_DepthStyle(), RTFGenerator::rtf_EList_DepthStyle(), and RTFGenerator::rtf_LCList_DepthStyle().
|
static |
Definition at line 1545 of file rtfgen.cpp.
References Config_getBool, docifyToString(), QCString::isEmpty(), rtfFormatBmkStr(), and stripPath().
|
static |
VERY brittle routine inline RTF's included by other RTF's.
it is recursive and ugly.
Definition at line 2245 of file rtfgen.cpp.
References FileInfo::absFilePath(), QCString::data(), DBG_RTF, encodeForOutput(), err, QCString::ExplicitSize, FALSE, Dir::filePath(), Debug::isFlagSet(), Portable::openInputStream(), preProcessFile(), removeSet, Debug::Rtf, QCString::str(), and TRUE.
Referenced by preProcessFile(), and RTFGenerator::preProcessFileInplace().
Definition at line 2869 of file rtfgen.cpp.
References g_nextTag, g_rtfFormatMutex, g_tagMap, Rtf_Style_Default::name, Debug::print(), qPrint(), and Debug::Rtf.
Referenced by RTFGenerator::endDoxyAnchor(), objectLinkToString(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::operator()(), RTFDocVisitor::startLink(), RTFGenerator::startTextLink(), RTFGenerator::writeAnchor(), RTFCodeGenerator::writeCodeLink(), RTFCodeGenerator::writeLineNumber(), RTFGenerator::writeRTFReference(), and RTFGenerator::writeStartAnnoItem().
void testRTFOutput | ( | const QCString & | name | ) |
Tests the integrity of the result by counting brackets.
Definition at line 2412 of file rtfgen.cpp.
References err, Rtf_Style_Default::name, Portable::openInputStream(), and qPrint().
Referenced by RTFGenerator::preProcessFileInplace().
|
static |
Referenced by rtfFormatBmkStr().
|
static |
Definition at line 2865 of file rtfgen.cpp.
Referenced by rtfFormatBmkStr().
|
static |
Definition at line 2866 of file rtfgen.cpp.
Referenced by rtfFormatBmkStr().
|
static |
Definition at line 57 of file rtfgen.cpp.
Referenced by preProcessFile(), and RTFGenerator::preProcessFileInplace().