mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 10:58:52 +00:00
Change the backends() routine so it only gives us backends that
are appropriate for the current document. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40899 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
9fb84bc437
commit
02f28635d3
@ -2133,17 +2133,24 @@ bool BufferParams::isExportableFormat(string const & format) const
|
|||||||
vector<string> BufferParams::backends() const
|
vector<string> BufferParams::backends() const
|
||||||
{
|
{
|
||||||
vector<string> v;
|
vector<string> v;
|
||||||
v.push_back(bufferFormat());
|
string const buffmt = 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 (buffmt == "latex") {
|
||||||
v.push_back("pdflatex");
|
if (!useNonTeXFonts) {
|
||||||
|
v.push_back("pdflatex");
|
||||||
|
v.push_back("latex");
|
||||||
|
}
|
||||||
v.push_back("luatex");
|
v.push_back("luatex");
|
||||||
v.push_back("dviluatex");
|
v.push_back("dviluatex");
|
||||||
v.push_back("xetex");
|
v.push_back("xetex");
|
||||||
} else if (v.back() == "xetex") {
|
} else if (buffmt == "xetex") {
|
||||||
|
v.push_back("xetex");
|
||||||
v.push_back("luatex");
|
v.push_back("luatex");
|
||||||
v.push_back("dviluatex");
|
v.push_back("dviluatex");
|
||||||
}
|
} else
|
||||||
|
v.push_back(buffmt);
|
||||||
|
|
||||||
v.push_back("xhtml");
|
v.push_back("xhtml");
|
||||||
v.push_back("text");
|
v.push_back("text");
|
||||||
v.push_back("lyx");
|
v.push_back("lyx");
|
||||||
|
@ -176,7 +176,8 @@ public:
|
|||||||
std::vector<Format const *> exportableFormats(bool only_viewable) const;
|
std::vector<Format const *> exportableFormats(bool only_viewable) const;
|
||||||
///
|
///
|
||||||
bool isExportableFormat(std::string const & format) const;
|
bool isExportableFormat(std::string const & format) const;
|
||||||
///
|
/// the backends appropriate for use with this document.
|
||||||
|
/// so, e.g., latex is excluded , if we're using non-TeX fonts
|
||||||
std::vector<std::string> backends() const;
|
std::vector<std::string> backends() const;
|
||||||
|
|
||||||
/// List of included children (for includeonly)
|
/// List of included children (for includeonly)
|
||||||
|
Loading…
Reference in New Issue
Block a user