|
Doxygen
|
#include "rtfgen.h"#include <algorithm>#include <mutex>#include <stdlib.h>#include <unordered_map>#include "classlist.h"#include "conceptdef.h"#include "config.h"#include "datetime.h"#include "debug.h"#include "diagram.h"#include "dir.h"#include "dirdef.h"#include "docparser.h"#include "dot.h"#include "dotcallgraph.h"#include "dotclassgraph.h"#include "dotdirdeps.h"#include "dotincldepgraph.h"#include "doxygen.h"#include "fileinfo.h"#include "filename.h"#include "groupdef.h"#include "language.h"#include "message.h"#include "moduledef.h"#include "namespacedef.h"#include "outputlist.h"#include "pagedef.h"#include "portable.h"#include "rtfdocvisitor.h"#include "rtfstyle.h"#include "utf8.h"#include "util.h"#include "version.h"#include "vhdldocgen.h"Go to the source code of this file.
Macros | |
| #define | DBG_RTF(x) |
Functions | |
| static DString | dateToRTFDateString () |
| static DString | docifyToString (const DString &str) |
| static DString | makeIndexName (const DString &s, int i) |
| static DString | objectLinkToString (const DString &ref, const DString &f, const DString &anchor, const DString &text) |
| bool | isLeadBytes (int c) |
| static void | encodeForOutput (TextStream &t, const DString &s) |
| static bool | preProcessFile (Dir &d, const DString &infName, TextStream &t, bool bIncludeHeader=true, bool removeFile=true) |
| VERY brittle routine inline RTF's included by other RTF's. | |
| void | testRTFOutput (const DString &name) |
| Tests the integrity of the result by counting brackets. | |
| DString | rtfFormatBmkStr (const DString &name) |
Variables | |
| static StringSet | removeSet |
| static std::mutex | g_rtfFormatMutex |
| static std::unordered_map< std::string, std::string > | g_tagMap |
| static DString | g_nextTag ("AAAAAAAAAA") |
| #define DBG_RTF | ( | x | ) |
Definition at line 58 of file rtfgen.cpp.
Referenced by preProcessFile().
|
static |
Definition at line 62 of file rtfgen.cpp.
References Config_getEnum, getCurrentDateTime(), and DString::sprintf().
Referenced by RTFGenerator::endIndexSection().
Definition at line 84 of file rtfgen.cpp.
References DString::data(), DString::empty(), DString::length(), and DString::reserve().
Referenced by RTFGenerator::docify(), objectLinkToString(), and RTFGenerator::writeInheritedSectionTitle().
|
static |
Definition at line 2188 of file rtfgen.cpp.
References DString::data(), DString::empty(), isLeadBytes(), DString::length(), portable_iconv(), portable_iconv_close(), portable_iconv_open(), qPrint(), DString::sprintf(), theTranslator, and Translator::trRTFansicp().
Referenced by preProcessFile().
| bool isLeadBytes | ( | int | c | ) |
Definition at line 2160 of file rtfgen.cpp.
References theTranslator, and Translator::trRTFansicp().
Referenced by encodeForOutput().
Definition at line 107 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 1551 of file rtfgen.cpp.
References Config_getBool, docifyToString(), DString::empty(), rtfFormatBmkStr(), and stripPath().
Referenced by RTFGenerator::writeInheritedSectionTitle(), and RTFGenerator::writeObjectLink().
|
static |
VERY brittle routine inline RTF's included by other RTF's.
it is recursive and ugly.
Definition at line 2252 of file rtfgen.cpp.
References FileInfo::absFilePath(), DBG_RTF, encodeForOutput(), err, DString::ExplicitSize, Dir::filePath(), Debug::isFlagSet(), Portable::openInputStream(), preProcessFile(), removeSet, Debug::Rtf, DString::str(), and DString::substr().
Referenced by preProcessFile(), and RTFGenerator::preProcessFileInplace().
Definition at line 2876 of file rtfgen.cpp.
References g_nextTag, g_rtfFormatMutex, g_tagMap, DString::length(), Rtf_Style_Default::name, Debug::print(), DString::rawData(), Debug::Rtf, and DString::str().
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 DString & | name | ) |
Tests the integrity of the result by counting brackets.
Definition at line 2419 of file rtfgen.cpp.
References err, Rtf_Style_Default::name, and Portable::openInputStream().
Referenced by RTFGenerator::preProcessFileInplace().
|
static |
Referenced by rtfFormatBmkStr().
|
static |
Definition at line 2872 of file rtfgen.cpp.
Referenced by rtfFormatBmkStr().
|
static |
Definition at line 2873 of file rtfgen.cpp.
Referenced by rtfFormatBmkStr().
|
static |
Definition at line 60 of file rtfgen.cpp.
Referenced by preProcessFile(), and RTFGenerator::preProcessFileInplace().