Doxygen
xmldocvisitor.cpp 文件参考
#include "xmldocvisitor.h"
#include "docparser.h"
#include "language.h"
#include "doxygen.h"
#include "outputgen.h"
#include "xmlgen.h"
#include "dot.h"
#include "message.h"
#include "util.h"
#include "parserintf.h"
#include "filename.h"
#include "config.h"
#include "htmlentity.h"
#include "emoji.h"
#include "filedef.h"
#include "fileinfo.h"
+ xmldocvisitor.cpp 的引用(Include)关系图:

浏览源代码.

函数

static void visitCaption (XmlDocVisitor *parent, const DocNodeList &children)
 
static void visitPreStart (TextStream &t, const char *cmd, bool doCaption, XmlDocVisitor *parent, const DocNodeList &children, const QCString &name, bool writeType, DocImage::Type type, const QCString &width, const QCString &height, const QCString engine=QCString(), const QCString &alt=QCString(), bool inlineImage=FALSE)
 
static void visitPostEnd (TextStream &t, const char *cmd)
 

函数说明

◆ visitCaption()

static void visitCaption ( XmlDocVisitor parent,
const DocNodeList children 
)
static

在文件 xmldocvisitor.cpp33 行定义.

34 {
35  for (const auto &n : children) n->accept(parent);
36 }

被这些函数引用 visitPreStart().

◆ visitPostEnd()

static void visitPostEnd ( TextStream t,
const char *  cmd 
)
static

在文件 xmldocvisitor.cpp90 行定义.

91 {
92  t << "</" << cmd << ">\n";
93 }

被这些函数引用 XmlDocVisitor::visit() , 以及 XmlDocVisitor::visitPost().

◆ visitPreStart()

static void visitPreStart ( TextStream t,
const char *  cmd,
bool  doCaption,
XmlDocVisitor parent,
const DocNodeList children,
const QCString name,
bool  writeType,
DocImage::Type  type,
const QCString width,
const QCString height,
const QCString  engine = QCString(),
const QCString alt = QCString(),
bool  inlineImage = FALSE 
)
static

在文件 xmldocvisitor.cpp38 行定义.

42 {
43  t << "<" << cmd;
44  if (writeType)
45  {
46  t << " type=\"";
47  switch(type)
48  {
49  case DocImage::Html: t << "html"; break;
50  case DocImage::Latex: t << "latex"; break;
51  case DocImage::Rtf: t << "rtf"; break;
52  case DocImage::DocBook: t << "docbook"; break;
53  case DocImage::Xml: t << "xml"; break;
54  }
55  t << "\"";
56  }
57  if (!name.isEmpty())
58  {
59  t << " name=\"" << convertToXML(name, TRUE) << "\"";
60  }
61  if (!width.isEmpty())
62  {
63  t << " width=\"" << convertToXML(width) << "\"";
64  }
65  if (!height.isEmpty())
66  {
67  t << " height=\"" << convertToXML(height) << "\"";
68  }
69  if (!engine.isEmpty())
70  {
71  t << " engine=\"" << convertToXML(engine) << "\"";
72  }
73  if (!alt.isEmpty())
74  {
75  t << " alt=\"" << convertToXML(alt) << "\"";
76  }
77  if (inlineImage)
78  {
79  t << " inline=\"yes\"";
80  }
81  if (doCaption)
82  {
83  t << " caption=\"";
84  visitCaption(parent, children);
85  t << "\"";
86  }
87  t << ">";
88 }

引用了 convertToXML(), DocImage::DocBook, DocImage::Html, QCString::isEmpty(), DocImage::Latex, DocImage::Rtf, TRUE, visitCaption() , 以及 DocImage::Xml.

被这些函数引用 XmlDocVisitor::visit() , 以及 XmlDocVisitor::visitPre().

DocImage::Xml
@ Xml
Definition: docparser.h:774
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty
Definition: qcstring.h:144
visitCaption
static void visitCaption(XmlDocVisitor *parent, const DocNodeList &children)
Definition: xmldocvisitor.cpp:33
DocImage::DocBook
@ DocBook
Definition: docparser.h:774
DocImage::Html
@ Html
Definition: docparser.h:774
DocImage::Latex
@ Latex
Definition: docparser.h:774
DocImage::Rtf
@ Rtf
Definition: docparser.h:774
TRUE
#define TRUE
Definition: qcstring.h:36
convertToXML
QCString convertToXML(const QCString &s, bool keepEntities)
Definition: util.cpp:3948