mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-24 13:48:59 +00:00
Let getOutputFlavor return the correct flavors for the latex varieties
(cherry picked from commit 4698ebd2b7
)
Conflicts:
src/BufferParams.cpp
This commit is contained in:
parent
7e4a2ae1e8
commit
622b0f9151
@ -2167,10 +2167,20 @@ OutputParams::FLAVOR BufferParams::getOutputFlavor(string const format) const
|
||||
|
||||
OutputParams::FLAVOR result = OutputParams::LATEX;
|
||||
|
||||
// FIXME It'd be better not to hardcode this, but to do
|
||||
// something with formats.
|
||||
if (dformat == "xhtml")
|
||||
result = OutputParams::HTML;
|
||||
else if (dformat == "text")
|
||||
result = OutputParams::TEXT;
|
||||
else if (dformat == "pdflatex")
|
||||
result = OutputParams::PDFLATEX;
|
||||
else if (dformat == "xetex")
|
||||
result = OutputParams::XETEX;
|
||||
else if (dformat == "luatex")
|
||||
result = OutputParams::LUATEX;
|
||||
else if (dformat == "dviluatex")
|
||||
result = OutputParams::DVILUATEX;
|
||||
else {
|
||||
// Try to determine flavor of default output format
|
||||
vector<string> backs = backends();
|
||||
|
Loading…
Reference in New Issue
Block a user