+2004-05-13 José Matos <jamatos@lyx.org>
+
+ * configure.m4: add support for docbook-xml.
+
2004-05-12 José Matos <jamatos@lyx.org>
* layouts/db_stdclass.inc: do not use small caps for name.
\\Format date "" "date command" "" "" ""
\\Format dateout tmp "date (output)" "" "" ""
\\Format docbook sgml DocBook B "" ""
+\\Format docbook-xml xml "Docbook (xml)" "" "" ""
\\Format dvi dvi DVI D "$DVI_VIEWER" ""
\\Format eps eps EPS "" "$EPS_VIEWER" ""
\\Format fax "" Fax "" "" ""
\\Format xpm xpm XPM "" "$RASTERIMAGE_VIEWER" "$RASTERIMAGE_EDITOR"
\\converter date dateout "date +%d-%m-%Y > \$\$o" ""
+\\converter docbook docbook-xml "cp \$\$i \$\$o" "xml"
\\converter docbook dvi "$docbook_to_dvi_command" ""
\\converter docbook html "$docbook_to_html_command" ""
\\converter dvi pdf3 "$dvi_to_pdf_command" ""
+2004-05-13 José Matos <jamatos@lyx.org>
+
+ * converter.h:
+ * converter.C (Converter, readFlags): add xml member.
+ * outputparams.h: add XML flavor.
+ * buffer.C (makeDocBookFile): add support for the sgml/xml distinction.
+
2004-05-03 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxfunc.C (dispatch):
#include "Bullet.h"
#include "Chktex.h"
#include "debug.h"
+#include "encoding.h"
#include "errorlist.h"
#include "exporter.h"
#include "format.h"
string top_element = tclass.latexname();
if (!only_body) {
+ if (runparams.flavor == OutputParams::XML)
+ ofs << "<?xml version=\"1.0\" encoding=\""
+ << params().language->encoding()->Name() << "\"?>\n";
+
ofs << subst(tclass.class_header(), "#", top_element);
string preamble = params().preamble;
}
sgml::openTag(ofs, 0, false, top);
- ofs << "<!-- SGML/XML file was created by LyX " << lyx_version
+ ofs << "<!-- " << ((runparams.flavor == OutputParams::XML)? "XML" : "SGML")
+ << " file was created by LyX " << lyx_version
<< "\n See http://www.lyx.org/ for more information -->\n";
params().getLyXTextClass().counters().reset();
Converter::Converter(string const & f, string const & t, string const & c,
string const & l): from(f), to(t), command(c), flags(l),
- From(0), To(0), latex(false),
+ From(0), To(0), latex(false), xml(false),
original_dir(false), need_aux(false)
{}
flag_value = split(flag_value, flag_name, '=');
if (flag_name == "latex")
latex = true;
+ else if (flag_name == "xml")
+ xml = true;
else if (flag_name == "originaldir")
original_dir = true;
else if (flag_name == "needaux")
if (conv.latex)
if (contains(conv.to, "pdf"))
return OutputParams::PDFLATEX;
+ if (conv.xml)
+ return OutputParams::XML;
}
return OutputParams::LATEX;
}
/// The converter is latex or its derivatives
bool latex;
+ /// The converter is xml
+ bool xml;
/// Do we need to run the converter in the original directory?
bool original_dir;
/// This converter needs the .aux files
//
enum FLAVOR {
LATEX,
- PDFLATEX
+ PDFLATEX,
+ XML
};
OutputParams()