diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2018-11-11 13:57:38 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2018-11-11 14:07:44 (GMT) |
commit | 70c7e8f3491e1fa30a2eaa89b960dd5b4d7a2185 (patch) | |
tree | 2f1d9530d716cc9328c7f6644b778d4fb33d0504 /src/xmldocvisitor.cpp | |
parent | 933a6e3d74f9109ad6ec921aded645d87111585b (diff) | |
parent | 4682b91364247aafe66b6af472e321511e115e7c (diff) | |
download | Doxygen-70c7e8f3491e1fa30a2eaa89b960dd5b4d7a2185.zip Doxygen-70c7e8f3491e1fa30a2eaa89b960dd5b4d7a2185.tar.gz Doxygen-70c7e8f3491e1fa30a2eaa89b960dd5b4d7a2185.tar.bz2 |
Merge branch 'feature/bug_inline_image' of https://github.com/albert-github/doxygen into albert-github-feature/bug_inline_image
Diffstat (limited to 'src/xmldocvisitor.cpp')
-rw-r--r-- | src/xmldocvisitor.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp index 04d9d8e..4aa81ca 100644 --- a/src/xmldocvisitor.cpp +++ b/src/xmldocvisitor.cpp @@ -40,10 +40,10 @@ static void visitCaption(XmlDocVisitor *parent, QList<DocNode> children) for (cli.toFirst();(n=cli.current());++cli) n->accept(parent); } -static void visitPreStart(FTextStream &t, const char *cmd, const bool doCaption, +static void visitPreStart(FTextStream &t, const char *cmd, bool doCaption, XmlDocVisitor *parent, QList<DocNode> children, const QCString &name, bool writeType, DocImage::Type type, const QCString &width, - const QCString &height) + const QCString &height, bool inlineImage = FALSE) { t << "<" << cmd; if (writeType) @@ -70,6 +70,7 @@ static void visitPreStart(FTextStream &t, const char *cmd, const bool doCaption, { t << " height=\"" << convertToXML(height) << "\""; } + if (inlineImage) t << " inline=\"yes\">"; if (doCaption) { t << " caption=\""; @@ -788,7 +789,7 @@ void XmlDocVisitor::visitPre(DocImage *img) { baseName=baseName.right(baseName.length()-i-1); } - visitPreStart(m_t, "image", FALSE, this, img->children(), baseName, TRUE, img->type(), img->width(), img->height()); + visitPreStart(m_t, "image", FALSE, this, img->children(), baseName, TRUE, img->type(), img->width(), img->height(), img ->isInlineImage()); // copy the image to the output dir FileDef *fd; |