46static const std::array<const char *,g_maxLevels>
g_secLabels =
50 "doxysubsubsubsection",
51 "doxysubsubsubsubsection",
52 "doxysubsubsubsubsubsection",
53 "doxysubsubsubsubsubsubsection"
63 if (compactLatex) l++;
94 static const reg::Ex re(R
"((\d+)%)");
95 std::string s = dimension.str();
103 t << percent/100.0 <<
"\\text" << orientationString;
114 t <<
"\n\\begin{DoxyInlineImage}%\n";
120 t <<
"\n\\begin{DoxyImage}%\n";
124 t <<
"\n\\begin{DoxyImageNoCaption}%\n"
129 t <<
"\\includegraphics";
153 t <<
"[height=\\baselineskip,keepaspectratio=true]";
157 t <<
"[width=\\textwidth,height=\\textheight/2,keepaspectratio=true]";
165 t <<
"{" << name <<
"}";
173 t <<
"%\n\\doxyfigcaption{";
177 t <<
"%\n\\doxyfigcaptionnolink{";
193 t <<
"%\n\\end{DoxyInlineImage}\n";
200 t <<
"\\end{DoxyImage}\n";
204 t <<
"\\end{DoxyImageNoCaption}\n";
211 for (
const auto &n : children)
218 const DString &langExt,
int hierarchyLevel)
267 m_t <<
"\\texorpdfstring{$<$}{<}";
278 m_t <<
"\\texorpdfstring{$>$}{>}";
300 if (!emojiName.
empty())
336 m_t <<
"~\\newline\n";
344 m_t <<
"\\DoxyHorRuler{1}\n";
346 m_t <<
"\\DoxyHorRuler{0}\n";
355 if (s.
enable())
m_t <<
"{\\bfseries{";
else m_t <<
"}}";
375 if (s.
enable())
m_t <<
"\\textsubscript{";
else m_t <<
"}";
378 if (s.
enable())
m_t <<
"\\textsuperscript{";
else m_t <<
"}";
381 if (s.
enable())
m_t <<
"\\begin{center}";
else m_t <<
"\\end{center} ";
384 if (s.
enable())
m_t <<
"\n\\footnotesize ";
else m_t <<
"\n\\normalsize ";
392 m_t <<
"\n\\begin{DoxyPre}";
398 m_t <<
"\\end{DoxyPre}\n";
430 m_t <<
"{\\ttfamily ";
437 m_t <<
"\\begin{DoxyCode}{0}";
439 m_t <<
"\\end{DoxyCode}\n";
443 m_t <<
"\\begin{DoxyVerb}";
445 m_t <<
"\\end{DoxyVerb}\n";
465 if (!fileName.empty())
478 "msc {"+s.
text()+
"}",
480 if (!fileName.empty())
494 for (
const auto &baseName: baseNameVector)
501 if (
Config_getBool(MERMAID_RENDER_MODE)!=MERMAID_RENDER_MODE_t::CLIENT_SIDE)
577 m_t <<
"\\begin{DoxyCode}{0}";
579 m_t <<
"\\end{DoxyCode}\n";
583 m_t <<
"\n\\begin{DoxyVerbInclude}\n";
585 m_t <<
"\\end{DoxyVerbInclude}\n";
624 std::unique_ptr<FileDef> fd;
658 const char *p = s.
data();
666 case '\'':
m_t <<
"\\textnormal{\\textquotesingle}";
break;
667 default:
m_t << c;
break;
696 if (!opt.noPar()) txt +=
"[";
698 if (!opt.noPar()) txt +=
"]";
700 m_t <<
"{\\bfseries ";
710 anchor = anchor.
mid(anchorPrefix.
length());
712 txt =
"\\DoxyCite{" + anchor +
"}";
717 else if (opt.isShortAuthor())
719 txt +=
"{shortauthor}";
721 else if (opt.isYear())
725 if (!opt.noPar()) txt +=
"{1}";
732 if (!opt.noPar()) txt +=
"[";
734 if (!opt.noPar()) txt +=
"]";
735 m_t <<
"{\\bfseries ";
752 m_t <<
"\n\\begin{DoxyEnumerate}";
758 m_t <<
"\n\\begin{DoxyItemize}";
763 m_t <<
"\n\\end{DoxyEnumerate}";
767 m_t <<
"\n\\end{DoxyItemize}";
777 m_t <<
"\n\\item[\\DoxyUnchecked] ";
781 m_t <<
"\n\\item[\\DoxyChecked] ";
798 std::get_if<DocParamSect>(p.
parent())
804 m_t <<
"~\\newline\n";
824 m_t <<
"\\begin{DoxySeeAlso}{";
828 m_t <<
"\\begin{DoxyReturn}{";
832 m_t <<
"\\begin{DoxyAuthor}{";
836 m_t <<
"\\begin{DoxyAuthor}{";
840 m_t <<
"\\begin{DoxyVersion}{";
844 m_t <<
"\\begin{DoxySince}{";
848 m_t <<
"\\begin{DoxyDate}{";
852 m_t <<
"\\begin{DoxyNote}{";
856 m_t <<
"\\begin{DoxyWarning}{";
860 m_t <<
"\\begin{DoxyPrecond}{";
864 m_t <<
"\\begin{DoxyPostcond}{";
868 m_t <<
"\\begin{DoxyCopyright}{";
872 m_t <<
"\\begin{DoxyInvariant}{";
876 m_t <<
"\\begin{DoxyRemark}{";
880 m_t <<
"\\begin{DoxyAttention}{";
884 m_t <<
"\\begin{DoxyImportant}{";
888 m_t <<
"\\begin{DoxyParagraph}{";
891 m_t <<
"\\begin{DoxyParagraph}{";
899 std::visit(*
this,*s.
title());
908 m_t <<
"\n\\end{DoxySeeAlso}\n";
911 m_t <<
"\n\\end{DoxyReturn}\n";
914 m_t <<
"\n\\end{DoxyAuthor}\n";
917 m_t <<
"\n\\end{DoxyAuthor}\n";
920 m_t <<
"\n\\end{DoxyVersion}\n";
923 m_t <<
"\n\\end{DoxySince}\n";
926 m_t <<
"\n\\end{DoxyDate}\n";
929 m_t <<
"\n\\end{DoxyNote}\n";
932 m_t <<
"\n\\end{DoxyWarning}\n";
935 m_t <<
"\n\\end{DoxyPrecond}\n";
938 m_t <<
"\n\\end{DoxyPostcond}\n";
941 m_t <<
"\n\\end{DoxyCopyright}\n";
944 m_t <<
"\n\\end{DoxyInvariant}\n";
947 m_t <<
"\n\\end{DoxyRemark}\n";
950 m_t <<
"\n\\end{DoxyAttention}\n";
953 m_t <<
"\n\\end{DoxyImportant}\n";
956 m_t <<
"\n\\end{DoxyParagraph}\n";
959 m_t <<
"\n\\end{DoxyParagraph}\n";
976 m_t <<
"\\begin{DoxyItemize}\n";
979 m_t <<
"\\end{DoxyItemize}\n";
1005 m_t <<
"\\texorpdfstring{";
1010 std::visit(*
this,*s.
title());
1019 std::visit(*
this,*s.
title());
1036 m_t <<
"\n\\begin{DoxyEnumerate}";
1037 for (
const auto &opt : s.
attribs())
1039 if (opt.name==
"type")
1043 m_t << (first ?
"[":
",");
1044 m_t <<
"label=\\arabic*";
1047 else if (opt.value==
"a")
1049 m_t << (first ?
"[":
",");
1050 m_t <<
"label=\\enumalphalphcnt*";
1053 else if (opt.value==
"A")
1055 m_t << (first ?
"[":
",");
1056 m_t <<
"label=\\enumAlphAlphcnt*";
1059 else if (opt.value==
"i")
1061 m_t << (first ?
"[":
",");
1062 m_t <<
"label=\\roman*";
1065 else if (opt.value==
"I")
1067 m_t << (first ?
"[":
",");
1068 m_t <<
"label=\\Roman*";
1072 else if (opt.name==
"start")
1074 m_t << (first ?
"[":
",");
1076 int val = opt.value.toInt(&ok);
1077 if (ok)
m_t <<
"start=" << val;
1081 if (!first)
m_t <<
"]\n";
1085 m_t <<
"\n\\begin{DoxyItemize}";
1090 m_t <<
"\n\\end{DoxyEnumerate}";
1092 m_t <<
"\n\\end{DoxyItemize}";
1100 for (
const auto &opt : l.
attribs())
1102 if (opt.name==
"value")
1105 int val = opt.value.toInt(&ok);
1123 auto it = std::find_if(attrs.begin(),attrs.end(),
1124 [](
const auto &att) { return att.name==
"class"; });
1125 if (it!=attrs.end() && it->value ==
"reflist")
return true;
1131 bool isNested=
false;
1133 while (n && !isNested)
1135 if (std::get_if<DocHtmlDescList>(n))
1150 m_t <<
"\n\\begin{DoxyRefList}";
1155 m_t <<
"\n\\begin{DoxyDescription}";
1160 m_t <<
"\n\\end{DoxyRefList}";
1164 m_t <<
"\n\\end{DoxyDescription}";
1171 m_t <<
"\n\\item[{\\parbox[t]{\\linewidth}{";
1190 while (n && !isNested)
1202 m_t <<
"\\begin{DoxyTableNested}{" << cols <<
"}";
1206 m_t <<
"\n\\begin{DoxyTable}{" << cols <<
"}";
1214 m_t <<
"\\end{DoxyTableNested}\n";
1218 m_t <<
"\\end{DoxyTable}\n";
1230 if (!c->
file().
empty() && pdfHyperLinks)
1245 std::visit(*
this, *t.
caption());
1285 if (span.rowSpan>0) span.rowSpan--;
1286 if (span.rowSpan<=0)
1290 else if (span.column>col)
1292 col = span.column+span.colSpan;
1296 col = span.column+span.colSpan;
1312 auto appendOpt = [&cellOpts](
const DString &s)
1314 if (!cellOpts.
empty()) cellOpts+=
",";
1317 auto appendSpec = [&cellSpec](
const DString &s)
1319 if (!cellSpec.
empty()) cellSpec+=
",";
1322 auto writeCell = [
this,&cellOpts,&cellSpec]()
1327 if (!cellOpts.
empty())
1329 m_t <<
"[" << cellOpts <<
"]";
1331 m_t <<
"{" << cellSpec <<
"}";
1336 for (
const auto &span :
rowSpans())
1345 for (
size_t i=0;i<span.colSpan;i++)
1371 appendOpt(
"r="+
DString().setNum(rs));
1381 appendOpt(
"c="+
DString().setNum(cs));
1385 appendSpec(
"bg=\\tableheadbgcolor");
1386 appendSpec(
"font=\\bfseries");
1404 for (
int i=0;i<cs-1;i++)
1427 m_t <<
"{\\texttt{";
1435 m_t <<
"{\\bfseries{";
1447 std::visit(*
this,*summary);
1448 m_t <<
"\\begin{adjustwidth}{1em}{0em}\n";
1453 m_t <<
"\\end{adjustwidth}\n";
1492 bool exists =
false;
1500 if (!fileName.empty())
1512 bool exists =
false;
1520 if (!fileName.empty())
1532 bool exists =
false;
1540 if (!fileName.empty())
1561 if (
Config_getBool(MERMAID_RENDER_MODE)==MERMAID_RENDER_MODE_t::CLIENT_SIDE)
return;
1607 m_t <<
"\\item \\contentsline{section}{";
1638 m_t <<
"\\footnotesize\n";
1639 m_t <<
"\\begin{multicols}{2}\n";
1640 m_t <<
"\\begin{DoxyCompactList}\n";
1644 m_t <<
"\\end{DoxyCompactList}\n";
1645 m_t <<
"\\end{multicols}\n";
1646 m_t <<
"\\normalsize\n";
1658 m_t <<
"\n\\begin{DoxyParams}";
1659 if (hasInOutSpecs && hasTypeSpecs)
m_t <<
"[2]";
1660 else if (hasInOutSpecs || hasTypeSpecs)
m_t <<
"[1]";
1665 m_t <<
"\n\\begin{DoxyRetVals}{";
1669 m_t <<
"\n\\begin{DoxyExceptions}{";
1673 m_t <<
"\n\\begin{DoxyTemplParams}{";
1686 m_t <<
"\\end{DoxyParams}\n";
1689 m_t <<
"\\end{DoxyRetVals}\n";
1692 m_t <<
"\\end{DoxyExceptions}\n";
1695 m_t <<
"\\end{DoxyTemplParams}\n";
1715 parentType = sect->
type();
1729 m_t <<
"\\doxymbox{\\texttt{";
1744 if (useTable)
m_t <<
" & ";
1750 std::visit(*
this,type);
1752 if (useTable)
m_t <<
" & ";
1758 if (!first)
m_t <<
",";
else first=
false;
1760 std::visit(*
this,param);
1774 std::visit(*
this,par);
1789 m_t <<
"\\begin{DoxyRefDesc}{";
1792 bool anonymousEnum = x.
file()==
"@";
1794 if (pdfHyperlinks && !anonymousEnum)
1800 m_t <<
"\\textbf{ ";
1805 if (pdfHyperlinks && !anonymousEnum)
1813 m_t <<
"\\end{DoxyRefDesc}\n";
1833 m_t <<
"\\begin{quote}\n";
1836 m_t <<
"\\end{quote}\n";
1864 bool refToTable,
bool refToSection)
1867 if (ref.
empty() && pdfHyperLinks)
1871 m_t <<
"\\doxytablelink{";
1873 else if (refToSection)
1887 if (!anchor.
empty())
m_t << anchor;
1892 else if (ref.
empty() && refToSection)
1894 m_t <<
"\\doxysectref{";
1896 else if (ref.
empty() && refToTable)
1898 m_t <<
"\\doxytableref{";
1900 else if (ref.
empty())
1902 m_t <<
"\\doxyref{";
1906 m_t <<
"\\textbf{ ";
1914 if (ref.
empty() && !pdfHyperLinks)
1918 m_t <<
"}{" << file;
1919 if (!file.empty() && !anchor.
empty())
m_t <<
"_";
1920 m_t << anchor <<
"}";
1923 m_t <<
"{" << sectionType.
level() <<
"}";
1926 if (ref.
empty() && pdfHyperLinks)
1940 int srcLine,
bool newFile
1961 int srcLine,
bool newFile
1994 int srcLine,
bool newFile
2038 bool useBitmap = inBuf.find(
"@startditaa") != std::string::npos;
2042 DString(),srcFile,srcLine,
false);
2044 for (
const auto &bName: baseNameVector)
2068 if (
Config_getBool(MERMAID_RENDER_MODE)==MERMAID_RENDER_MODE_t::CLIENT_SIDE)
return;
2074 if (shortName.find(
'.')==
DString::npos) shortName +=
"." + imgExt;
2089 if (
Config_getBool(MERMAID_RENDER_MODE)==MERMAID_RENDER_MODE_t::CLIENT_SIDE)
return;
2097 outDir,
DString(),inBuf,imageFormat,
2100 if (shortName.find(
'.')==
DString::npos) shortName +=
"." + imgExt;
2121 err(
"Maximum indent level ({}) exceeded while generating LaTeX output!\n",
maxIndentLevels-1);
static CitationManager & instance()
DString anchorPrefix() const
static CodeFragmentManager & instance()
void parseCodeFragment(OutputCodeList &codeOutList, const DString &fileName, const DString &blockId, const DString &scopeName, bool showLineNumbers, bool trimLeft, bool stripCodeComments)
virtual void parseCode(OutputCodeList &codeOutList, const DString &scopeName, const DString &input, SrcLangExt lang, bool stripCodeComments, const CodeParserOptions &options)=0
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
DString mid(size_t index, size_t len=npos) const
bool empty() const
Returns true iff the string is empty (std::string compatible alias for isEmpty()).
static DString integerToRoman(int n, bool upper=true)
static constexpr size_t npos
value used to indicate 'not found' or 'to the end of the string', matching std::string::npos
DString & prepend(const char *s)
size_t find(char c, size_t pos=0) const
int toInt(bool *ok=nullptr, int base=10) const
DString left(size_t len) const
const std::string & str() const
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
bool endsWith(const char *s) const
size_t length() const
Returns the length of the string, not counting the 0-terminator.
Node representing an anchor.
Node representing an auto List.
Node representing an item of a auto list.
Node representing a citation of some bibliographic reference.
CiteInfoOption option() const
Node representing a dia file.
Node representing a dot file.
Node representing an emoji.
Node representing a Hypertext reference.
Node representing a horizontal ruler.
Node representing an HTML blockquote.
Node representing a HTML table caption.
Node representing a HTML table cell.
Valignment valignment() const
Alignment alignment() const
Node representing a HTML description data.
Node representing a Html description list.
const HtmlAttribList & attribs() const
Node representing a Html description item.
const DocNodeVariant * summary() const
Node representing a Html list.
const HtmlAttribList & attribs() const
Node representing a HTML list item.
const HtmlAttribList & attribs() const
Node representing a HTML table row.
Node representing a HTML table.
size_t numberHeaderRows() const
size_t numColumns() const
const DocNodeVariant * caption() const
Node representing an image.
bool isInlineImage() const
Node representing a include/dontinclude operator block.
bool stripCodeComments() const
DString exampleFile() const
DString includeFileName() const
Node representing an included text block from file.
bool stripCodeComments() const
DString exampleFile() const
DString extension() const
Node representing an entry in the index.
Node representing an internal section of documentation.
Node representing an internal reference to some item.
Node representing a line break.
Node representing a link to some item.
Node representing a word that can be linked to something.
Node representing a mermaid file.
Node representing a msc file.
DocNodeVariant * parent()
Node representing an block of paragraphs.
Node representing a paragraph in the documentation tree.
Node representing a parameter list.
const DocNodeList & parameters() const
const DocNodeList & paramTypes() const
DocParamSect::Direction direction() const
const DocNodeList & paragraphs() const
Node representing a parameter section.
bool hasInOutSpecifier() const
bool hasTypeSpecifier() const
Node representing a uml file.
Node representing a reference to some item.
SectionType sectionType() const
bool refToSection() const
DString targetTitle() const
Root node of documentation tree.
Node representing a reference to a section.
Node representing a list of section references.
Node representing a normal section.
const DocNodeVariant * title() const
Node representing a separator.
Node representing a simple list.
Node representing a simple list item.
const DocNodeVariant * paragraph() const
Node representing a simple section.
const DocNodeVariant * title() const
Node representing a separator between two simple sections of the same type.
Node representing a style change.
Node representing a special symbol.
HtmlEntityMapper::SymType symbol() const
Root node of a text fragment.
Node representing a simple section title.
Node representing a URL (or email address).
Node representing a verbatim, unparsed text fragment.
const DocNodeList & children() const
DString exampleFile() const
Node representing a VHDL flow chart.
void pushHidden(bool hide)
CodeParserInterface & getCodeParser(const DString &langExt)
Node representing some amount of white space.
Node representing a word.
Node representing an item of a cross-referenced list.
const char * name(int index) const
Access routine to the name of the Emoji entity.
static EmojiEntityMapper & instance()
Returns the one and only instance of the Emoji entity mapper.
Minimal replacement for QFileInfo.
std::string fileName() const
std::string dirPath(bool absPath=true) const
Class representing a list of HTML attributes.
const char * latex(SymType symb) const
Access routine to the LaTeX code of the HTML entity.
static HtmlEntityMapper & instance()
Returns the one and only instance of the HTML entity mapper.
Generator for LaTeX code fragments.
int usedTableLevel() const
bool insideTabbing() const
void startPlantUmlFile(const DString &fileName, const DString &width, const DString &height, bool hasCaption, const DString &srcFile, int srcLine)
void startMscFile(const DString &fileName, const DString &width, const DString &height, bool hasCaption, const DString &srcFile, int srcLine, bool newFile=true)
void writePlantUMLFile(const DString &fileName, const DocVerbatim &s)
void setCurrentColumn(size_t col)
static const int maxIndentLevels
void endDotFile(bool hasCaption)
void operator()(const DocWord &)
void startLink(const DString &ref, const DString &file, const DString &anchor, bool refToTable=false, bool refToSection=false)
void visitCaption(const DocNodeList &children)
void startDotFile(const DString &fileName, const DString &width, const DString &height, bool hasCaption, const DString &srcFile, int srcLine, bool newFile=true)
void addRowSpan(ActiveRowSpan &&span)
void setNumCols(size_t num)
void writeStartTableCommand(const DocNodeVariant *n, size_t cols)
void writeEndTableCommand(const DocNodeVariant *n)
size_t currentColumn() const
LatexDocVisitor(TextStream &t, OutputCodeList &ci, LatexCodeGenerator &lcg, const DString &langExt, int hierarchyLevel=0)
void startMermaidFile(const DString &fileName, const DString &width, const DString &height, bool hasCaption, const DString &srcFile, int srcLine)
void endMscFile(bool hasCaption)
bool isTableNested(const DocNodeVariant *n) const
LatexListItemInfo m_listItemInfo[maxIndentLevels]
void writeMscFile(const DString &fileName, const DocVerbatim &s, bool newFile=true)
void endDiaFile(bool hasCaption)
void endMermaidFile(bool hasCaption)
const char * getSectionName(int level) const
void writeMermaidFile(const DString &baseName, const DocVerbatim &s)
void startDiaFile(const DString &fileName, const DString &width, const DString &height, bool hasCaption, const DString &srcFile, int srcLine, bool newFile=true)
void filter(const DString &str, const bool retainNewLine=false, const bool citeEntry=false)
void endLink(const DString &ref, const DString &file, const DString &anchor, bool refToTable=false, bool refToSection=false, SectionType sectionType=SectionType::Anchor)
void endPlantUmlFile(bool hasCaption)
void visitChildren(const T &t)
LatexCodeGenerator & m_lcg
static MermaidManager & instance()
static DString imageExtension(ImageFormat imageFormat)
static ImageFormat convertToImageFormat(OutputFormat outputFormat)
void generateMermaidOutput(const DString &baseName, const DString &outDir, ImageFormat format, bool toIndex)
Register a generated Mermaid image with the index.
DString writeMermaidSource(const DString &outDirArg, const DString &fileName, const DString &content, ImageFormat format, const DString &srcFile, int srcLine)
Write a Mermaid source file and register it for CLI rendering.
Class representing a list of different code generators.
void startCodeFragment(const DString &style)
void endCodeFragment(const DString &style)
void generatePlantUMLOutput(const DString &baseName, const DString &outDir, OutputFormat format, bool toIndex)
Convert a PlantUML file to an image.
StringVector writePlantUMLSource(const DString &outDirArg, const DString &fileName, const DString &content, OutputFormat format, const DString &engine, const DString &srcFile, int srcLine, bool inlineCode)
Write a PlantUML compatible file.
static PlantumlManager & instance()
constexpr int level() const
Text streaming class that buffers data.
virtual DString trExceptions()=0
virtual DString trReturns()=0
virtual DString trParameters()=0
virtual DString trCopyright()=0
virtual DString trWarning()=0
virtual DString trSince()=0
virtual DString trNote()=0
virtual DString trAuthor(bool first_capital, bool singular)=0
virtual DString trReturnValues()=0
virtual DString trVersion()=0
virtual DString trTemplateParameters()=0
virtual DString trImportant()=0
virtual DString trPrecondition()=0
virtual DString trAttention()=0
virtual DString trPageAbbreviation()=0
virtual DString trInvariant()=0
virtual DString trRemarks()=0
virtual DString trDate()=0
virtual DString trSeeAlso()=0
virtual DString trPostcondition()=0
Class representing a regular expression.
Object representing the matching results.
#define Config_getBool(name)
#define Config_getString(name)
void writeDiaGraphFromFile(const DString &inFile, const DString &outDir, const DString &outFile, DiaOutputFormat format, const DString &srcFile, int srcLine, bool toIndex)
constexpr bool holds_one_of_alternatives(const DocNodeVariant &v)
returns true iff v holds one of types passed as template parameters
std::variant< DocWord, DocLinkedWord, DocURL, DocLineBreak, DocHorRuler, DocAnchor, DocCite, DocStyleChange, DocSymbol, DocEmoji, DocWhiteSpace, DocSeparator, DocVerbatim, DocInclude, DocIncOperator, DocFormula, DocIndexEntry, DocAutoList, DocAutoListItem, DocTitle, DocXRefItem, DocImage, DocDotFile, DocMscFile, DocDiaFile, DocVhdlFlow, DocLink, DocRef, DocInternalRef, DocHRef, DocHtmlHeader, DocHtmlDescTitle, DocHtmlDescList, DocSection, DocSecRefItem, DocSecRefList, DocInternal, DocParBlock, DocSimpleList, DocHtmlList, DocSimpleSect, DocSimpleSectSep, DocParamSect, DocPara, DocParamList, DocSimpleListItem, DocHtmlListItem, DocHtmlDescData, DocHtmlCell, DocHtmlCaption, DocHtmlRow, DocHtmlTable, DocHtmlBlockQuote, DocText, DocRoot, DocHtmlDetails, DocHtmlSummary, DocPlantUmlFile, DocMermaidFile > DocNodeVariant
constexpr DocNodeVariant * parent(DocNodeVariant *n)
returns the parent node of a given node n or nullptr if the node has no parent.
void writeDotGraphFromFile(const DString &inFile, const DString &outDir, const DString &outFile, GraphOutputFormat format, const DString &srcFile, int srcLine, bool toIndex)
std::unique_ptr< FileDef > createFileDef(const DString &p, const DString &n, const DString &ref, const DString &dn)
Translator * theTranslator
static const char * g_subparagraphLabel
static const int g_maxLevels
static void visitPreStart(TextStream &t, bool hasCaption, DString name, DString width, DString height, bool inlineImage=false)
static void insertDimension(TextStream &t, DString dimension, const char *orientationString)
static const std::array< const char *, g_maxLevels > g_secLabels
static bool listIsNested(const DocHtmlDescList &dl)
static const char * g_paragraphLabel
static bool classEqualsReflist(const DocHtmlDescList &dl)
static void visitPostEnd(TextStream &t, bool hasCaption, bool inlineImage=false)
@ TEX
called through texorpdf as TeX (first) part
@ PDF
called through texorpdf as PDF (second) part
@ NO
not called through texorpdf
DString latexFilterURL(const DString &s)
void filterLatexString(TextStream &t, const DString &str, bool insideTabbing, bool insidePre, bool insideItem, bool insideTable, bool keepSpaces, const bool retainNewline)
void latexWriteIndexItem(TextStream &m_t, const DString &s1, const DString &s2)
void writeMscGraphFromFile(const DString &inFile, const DString &outDir, const DString &outFile, MscOutputFormat format, const DString &srcFile, int srcLine, bool toIndex)
bool search(std::string_view str, Match &match, const Ex &re, size_t pos)
Search in a given string str starting at position pos for a match against regular expression re.
Portable versions of functions that are platform dependent.
Options to configure the code parser.
CodeParserOptions & setStartLine(int lineNr)
CodeParserOptions & setInlineFragment(bool enable)
CodeParserOptions & setShowLineNumbers(bool enable)
CodeParserOptions & setFileDef(const FileDef *fd)
DString writeInlineGraph(const DString &baseName, const DString &extension, const DString &content, bool &exists)
DString getFileNameExtension(const DString &fn)
bool readInputFile(const DString &fileName, std::string &contents, bool filter, bool isSourceCode)
read a file name fileName and optionally filter and transcode it
SrcLangExt getLanguageFromFileName(const DString &fileName, SrcLangExt defLang)
bool copyFile(const DString &src, const DString &dest)
Copies the contents of file with name src to the newly created file with name dest.
DString makeBaseName(const DString &name, const DString &ext)
DString stripPath(const DString &s)
SrcLangExt getLanguageFromCodeLang(DString &fileName)
Routine to handle the language attribute of the \code command.
A bunch of utility functions.