linuxdoc_ export ascii text if not supporte natively.
docbook _ some changes for docbook 4.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3385
a592a061-630c-0410-9148-
cb99ea01b6c8
+2002-01-16 José Matos <jamatos@fep.up.pt>
+
+ * layouts/db_stdlayouts.inc: Fix name for caption.
+
2002-01-15 Angus Leeming <a.leeming@ic.ac.uk>
* examples/mathed.lyx: a bit of a clean-up. Corrected the contents
2002-01-15 Angus Leeming <a.leeming@ic.ac.uk>
* examples/mathed.lyx: a bit of a clean-up. Corrected the contents
Style Caption
LatexType Paragraph
Style Caption
LatexType Paragraph
End
\ No newline at end of file
End
\ No newline at end of file
+2002-01-16 José Matos <jamatos@fep.up.pt>
+
+ * figinset.C (docbook): removed a old place holder "@".
+ * insetgraphics.C (docbook): remove the file sufix if graphic is eps.
+ * insetinclude.C (linuxdoc): if include is verbatim, then export the
+ ascii text version, clearly guarded inside a CDATA section.
+ (docbook): in docbook 4, inlinegraphics is empty.
+ * insettabular.C (linuxdoc): export the ascii version of the table
+ inside a CDATA section.
+
2002-01-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* insetparent.C (InsetParent):
2002-01-14 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* insetparent.C (InsetParent):
if (suffixIs(figurename, ".eps"))
figurename.erase(figurename.length() - 4);
if (suffixIs(figurename, ".eps"))
figurename.erase(figurename.length() - 4);
- os << "@<graphic fileref=\"" << figurename << "\"></graphic>";
+ os << "<graphic fileref=\"" << figurename << "\"></graphic>";
{
// Change the path to be relative to the main file.
string const buffer_dir = buf->filePath();
{
// Change the path to be relative to the main file.
string const buffer_dir = buf->filePath();
- string const filename = RemoveExtension(
- MakeRelPath(params.filename, buffer_dir));
+ string filename = RemoveExtension(
+ MakeRelPath(params.filename, buffer_dir));
+
+ if (suffixIs(filename, ".eps"))
+ filename.erase(filename.length() - 4);
// In DocBook v5.0, the graphic tag will be eliminated from DocBook, will
// need to switch to MediaObject. However, for now this is sufficient and
// In DocBook v5.0, the graphic tag will be eliminated from DocBook, will
// need to switch to MediaObject. However, for now this is sufficient and
- os << "<inlinegraphic fileref=\"" << '&' << include_label << ';'
- << "\" format=\"linespecific\">"
- << "</inlinegraphic>";
+ os << "<![CDATA["
+ << GetFileContents(getFileName())
+ << "]]>";
} else
os << '&' << include_label << ';';
} else
os << '&' << include_label << ';';
- os << "<inlinegraphic fileref=\"" << '&' << include_label << ';'
+ os << "<inlinegraphic fileref=\""
+ << '&' << include_label << ';'
<< "\" format=\"linespecific\">"
<< "\" format=\"linespecific\">"
} else
os << '&' << include_label << ';';
} else
os << '&' << include_label << ';';
int InsetTabular::linuxdoc(Buffer const * buf, ostream & os) const
{
int InsetTabular::linuxdoc(Buffer const * buf, ostream & os) const
{
- return tabular->ascii(buf,os, (int)parOwner()->params().depth(), false, 0);
+ os << "<![CDATA[";
+ int const ret = tabular->ascii(buf,os,
+ (int)parOwner()->params().depth(),
+ false, 0);
+ os << "]]>";
+ return ret;