Add TEXT flavor, just in case we need it.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31973 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-11-14 12:54:12 +00:00
parent 0ed809d7b0
commit 7814909d3b
2 changed files with 9 additions and 8 deletions

View File

@ -3135,8 +3135,10 @@ bool Buffer::doExport(string const & format, bool put_in_tempdir,
updateMacroInstances(); updateMacroInstances();
// Plain text backend // Plain text backend
if (backend_format == "text") if (backend_format == "text") {
runparams.flavor = OutputParams::TEXT;
writePlaintextFile(*this, FileName(filename), runparams); writePlaintextFile(*this, FileName(filename), runparams);
}
// HTML backend // HTML backend
else if (backend_format == "xhtml") { else if (backend_format == "xhtml") {
runparams.flavor = OutputParams::HTML; runparams.flavor = OutputParams::HTML;
@ -3269,12 +3271,10 @@ vector<Format const *> Buffer::exportableFormats(bool only_viewable) const
vector<string> Buffer::backends() const vector<string> Buffer::backends() const
{ {
vector<string> v; vector<string> v;
if (params().baseClass()->isTeXClassAvailable()) { v.push_back(bufferFormat());
v.push_back(bufferFormat()); // FIXME: Don't hardcode format names here, but use a flag
// FIXME: Don't hardcode format names here, but use a flag if (v.back() == "latex")
if (v.back() == "latex") v.push_back("pdflatex");
v.push_back("pdflatex");
}
v.push_back("xhtml"); v.push_back("xhtml");
v.push_back("text"); v.push_back("text");
v.push_back("lyx"); v.push_back("lyx");

View File

@ -35,7 +35,8 @@ public:
PDFLATEX, PDFLATEX,
XETEX, XETEX,
XML, XML,
HTML HTML,
TEXT
}; };
enum TableCell { enum TableCell {