@@ -38,7 +38,7 @@ static void visitCaption(XmlDocVisitor *parent, const DocNodeList &children)
38
38
static void visitPreStart (TextStream &t, const char *cmd, bool doCaption,
39
39
XmlDocVisitor *parent, const DocNodeList &children,
40
40
const QCString &name, bool writeType, DocImage::Type type, const QCString &width,
41
- const QCString &height, const QCString &alt = QCString(" " ), bool inlineImage = FALSE)
41
+ const QCString &height, const QCString engine, const QCString &alt = QCString(" " ), bool inlineImage = FALSE)
42
42
{
43
43
t << " <" << cmd;
44
44
if (writeType)
@@ -66,6 +66,10 @@ static void visitPreStart(TextStream &t, const char *cmd, bool doCaption,
66
66
{
67
67
t << " height=\" " << convertToXML (height) << " \" " ;
68
68
}
69
+ if (!engine.isEmpty ())
70
+ {
71
+ t << " engine=\" " << convertToXML (engine) << " \" " ;
72
+ }
69
73
if (!alt.isEmpty ())
70
74
{
71
75
t << " alt=\" " << convertToXML (alt) << " \" " ;
@@ -300,17 +304,17 @@ void XmlDocVisitor::visit(DocVerbatim *s)
300
304
m_t << s->text ();
301
305
break ;
302
306
case DocVerbatim::Dot:
303
- visitPreStart (m_t , " dot" , s->hasCaption (), this , s->children (), QCString (" " ), FALSE , DocImage::Html, s->width (), s->height ());
307
+ visitPreStart (m_t , " dot" , s->hasCaption (), this , s->children (), QCString (" " ), FALSE , DocImage::Html, s->width (), s->height (), QCString () );
304
308
filter (s->text ());
305
309
visitPostEnd (m_t , " dot" );
306
310
break ;
307
311
case DocVerbatim::Msc:
308
- visitPreStart (m_t , " msc" , s->hasCaption (), this , s->children (), QCString (" " ), FALSE , DocImage::Html, s->width (), s->height ());
312
+ visitPreStart (m_t , " msc" , s->hasCaption (), this , s->children (), QCString (" " ), FALSE , DocImage::Html, s->width (), s->height (), QCString () );
309
313
filter (s->text ());
310
314
visitPostEnd (m_t , " msc" );
311
315
break ;
312
316
case DocVerbatim::PlantUML:
313
- visitPreStart (m_t , " plantuml" , s->hasCaption (), this , s->children (), QCString (" " ), FALSE , DocImage::Html, s->width (), s->height ());
317
+ visitPreStart (m_t , " plantuml" , s->hasCaption (), this , s->children (), QCString (" " ), FALSE , DocImage::Html, s->width (), s->height (), s-> engine () );
314
318
filter (s->text ());
315
319
visitPostEnd (m_t , " plantuml" );
316
320
break ;
@@ -945,7 +949,7 @@ void XmlDocVisitor::visitPre(DocImage *img)
945
949
[](const auto &att) { return att.name ==" alt" ; });
946
950
QCString altValue = it!=attribs.end () ? it->value : " " ;
947
951
visitPreStart (m_t , " image" , FALSE , this , img->children (), baseName, TRUE ,
948
- img->type (), img->width (), img->height (),
952
+ img->type (), img->width (), img->height (), QCString (),
949
953
altValue, img->isInlineImage ());
950
954
951
955
// copy the image to the output dir
@@ -966,7 +970,7 @@ void XmlDocVisitor::visitPost(DocImage *)
966
970
void XmlDocVisitor::visitPre (DocDotFile *df)
967
971
{
968
972
if (m_hide) return ;
969
- visitPreStart (m_t , " dotfile" , FALSE , this , df->children (), df->file (), FALSE , DocImage::Html, df->width (), df->height ());
973
+ visitPreStart (m_t , " dotfile" , FALSE , this , df->children (), df->file (), FALSE , DocImage::Html, df->width (), df->height (), QCString () );
970
974
}
971
975
972
976
void XmlDocVisitor::visitPost (DocDotFile *)
@@ -978,7 +982,7 @@ void XmlDocVisitor::visitPost(DocDotFile *)
978
982
void XmlDocVisitor::visitPre (DocMscFile *df)
979
983
{
980
984
if (m_hide) return ;
981
- visitPreStart (m_t , " mscfile" , FALSE , this , df->children (), df->file (), FALSE , DocImage::Html, df->width (), df->height ());
985
+ visitPreStart (m_t , " mscfile" , FALSE , this , df->children (), df->file (), FALSE , DocImage::Html, df->width (), df->height (), QCString () );
982
986
}
983
987
984
988
void XmlDocVisitor::visitPost (DocMscFile *)
@@ -990,7 +994,7 @@ void XmlDocVisitor::visitPost(DocMscFile *)
990
994
void XmlDocVisitor::visitPre (DocDiaFile *df)
991
995
{
992
996
if (m_hide) return ;
993
- visitPreStart (m_t , " diafile" , FALSE , this , df->children (), df->file (), FALSE , DocImage::Html, df->width (), df->height ());
997
+ visitPreStart (m_t , " diafile" , FALSE , this , df->children (), df->file (), FALSE , DocImage::Html, df->width (), df->height (), QCString () );
994
998
}
995
999
996
1000
void XmlDocVisitor::visitPost (DocDiaFile *)
0 commit comments