mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
exclude latex and pdflatex formats from the converter
graph when using nonTeXFonts git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38167 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1a0852630a
commit
bdc2dc042f
@ -3712,12 +3712,17 @@ bool Buffer::isExportable(string const & format) const
|
||||
vector<Format const *> Buffer::exportableFormats(bool only_viewable) const
|
||||
{
|
||||
vector<string> const backs = backends();
|
||||
vector<string> excludes;
|
||||
if (params().useNonTeXFonts) {
|
||||
excludes.push_back("latex");
|
||||
excludes.push_back("pdflatex");
|
||||
}
|
||||
vector<Format const *> result =
|
||||
theConverters().getReachable(backs[0], only_viewable, true);
|
||||
theConverters().getReachable(backs[0], only_viewable, true, excludes);
|
||||
for (vector<string>::const_iterator it = backs.begin() + 1;
|
||||
it != backs.end(); ++it) {
|
||||
vector<Format const *> r =
|
||||
theConverters().getReachable(*it, only_viewable, false);
|
||||
theConverters().getReachable(*it, only_viewable, false, excludes);
|
||||
result.insert(result.end(), r.begin(), r.end());
|
||||
}
|
||||
return result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user