Small adjustments for graphics export in docbook (Andreas Vox).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9051 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2004-10-05 13:38:31 +00:00
parent 724834176a
commit 89aa915ad7
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,10 @@
2004-10-05 Andreas Vox <vox@isp.uni-luebeck.de>
* insetgraphics.C (docbook) : using mediaobject for XML;
correcting bug with SGML output (now '>' instead of '/>')
2004-10-05 José Matos <jamatos@lyx.org>
* insetfloatlist.C (read):
* insetquotes.C (read):
* insetspace.C (read):

View File

@ -800,11 +800,13 @@ int InsetGraphics::docbook(Buffer const &, ostream & os,
if (runparams.flavor == OutputParams::XML) {
runparams.exportdata->addExternalFile("docbook-xml",
params().filename.absFilename());
os << "<inlinegraphic fileref=\"&" << graphic_label << ";\" " + createDocBookAttributes() + "/>";
os << "<inlinemediaobject><imageobject><imagedata fileref=\"&"
<< graphic_label << ";\" " << createDocBookAttributes()
<< "/></imageobject></inlinemediaobject>";
} else {
runparams.exportdata->addExternalFile("docbook",
params().filename.absFilename());
os << "<inlinegraphic fileref=\"&" << graphic_label << ";\" " + createDocBookAttributes() + "/>";
os << "<inlinegraphic fileref=\"&" << graphic_label << ";\" " + createDocBookAttributes() + ">";
}
return 0;
}