mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
724834176a
commit
89aa915ad7
@ -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):
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user