summaryrefslogtreecommitdiffstats
path: root/src/docbookgen.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/docbookgen.cpp')
-rw-r--r--src/docbookgen.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/docbookgen.cpp b/src/docbookgen.cpp
index 48b5d9e..97c602d 100644
--- a/src/docbookgen.cpp
+++ b/src/docbookgen.cpp
@@ -904,9 +904,15 @@ DB_GEN_C
void DocbookGenerator::endClassDiagram(const ClassDiagram &d, const char *fileName,const char *)
{
DB_GEN_C
- visitPreStart(t, FALSE, relPath + fileName + ".png", NULL, NULL);
+ t << " <informalfigure>" << endl;
+ t << " <mediaobject>" << endl;
+ t << " <imageobject>" << endl;
+ t << " <imagedata width=\"50%\" align=\"center\" valign=\"middle\" scalefit=\"0\" fileref=\""
+ << relPath << fileName << ".png\">" << "</imagedata>" << endl;
+ t << " </imageobject>" << endl;
d.writeImage(t,dir,relPath,fileName,FALSE);
- visitPostEnd(t, FALSE);
+ t << " </mediaobject>" << endl;
+ t << " </informalfigure>" << endl;
t << "</para>" << endl;
}
void DocbookGenerator::startLabels()