mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
amend d4f58c96b5
avoid having to validate the whole buffer just for this information
This commit is contained in:
parent
ca4fc01847
commit
5c3b788999
@ -1888,6 +1888,7 @@ Buffer::ExportStatus Buffer::writeLaTeXSource(otexstream & os,
|
|||||||
runparams.use_CJK = features.mustProvide("CJK");
|
runparams.use_CJK = features.mustProvide("CJK");
|
||||||
runparams.use_memindex = features.isProvided("memoir-idx");
|
runparams.use_memindex = features.isProvided("memoir-idx");
|
||||||
}
|
}
|
||||||
|
params().use_memindex = features.isProvided("memoir-idx");
|
||||||
LYXERR(Debug::OUTFILE, " Buffer validation done.");
|
LYXERR(Debug::OUTFILE, " Buffer validation done.");
|
||||||
|
|
||||||
bool const output_preamble =
|
bool const output_preamble =
|
||||||
|
@ -413,6 +413,7 @@ BufferParams::BufferParams()
|
|||||||
use_bibtopic = false;
|
use_bibtopic = false;
|
||||||
multibib = string();
|
multibib = string();
|
||||||
use_indices = false;
|
use_indices = false;
|
||||||
|
use_memindex = false;
|
||||||
save_transient_properties = true;
|
save_transient_properties = true;
|
||||||
track_changes = false;
|
track_changes = false;
|
||||||
output_changes = false;
|
output_changes = false;
|
||||||
|
@ -454,6 +454,8 @@ public:
|
|||||||
std::string multibib;
|
std::string multibib;
|
||||||
/// Split the index?
|
/// Split the index?
|
||||||
bool use_indices;
|
bool use_indices;
|
||||||
|
/// do we use the memoir way to split indexes?
|
||||||
|
mutable bool use_memindex;
|
||||||
/// Save transient properties?
|
/// Save transient properties?
|
||||||
bool save_transient_properties;
|
bool save_transient_properties;
|
||||||
/// revision tracking for this buffer ? (this is a transient property)
|
/// revision tracking for this buffer ? (this is a transient property)
|
||||||
|
@ -503,6 +503,7 @@ Converters::RetVal Converters::convert(Buffer const * buffer,
|
|||||||
&& !bp.useBibtopic()
|
&& !bp.useBibtopic()
|
||||||
&& bp.multibib == "child";
|
&& bp.multibib == "child";
|
||||||
runparams.includeall = includeall;
|
runparams.includeall = includeall;
|
||||||
|
runparams.use_memindex = bp.use_memindex;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some converters (e.g. lilypond) can only output files to the
|
// Some converters (e.g. lilypond) can only output files to the
|
||||||
@ -556,15 +557,6 @@ Converters::RetVal Converters::convert(Buffer const * buffer,
|
|||||||
"tmpfile.out"));
|
"tmpfile.out"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buffer && buffer->params().use_indices && conv.latex()) {
|
|
||||||
// We need to validate the buffer to get access to features.
|
|
||||||
// FIXME Not nice that we need to do this here.
|
|
||||||
LYXERR(Debug::OUTFILE, " Validating buffer...");
|
|
||||||
LaTeXFeatures features(*buffer, buffer->params(), runparams);
|
|
||||||
buffer->validate(features);
|
|
||||||
runparams.use_memindex = features.isProvided("memoir-idx");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (buffer && buffer->params().use_minted
|
if (buffer && buffer->params().use_minted
|
||||||
&& lyxrc.pygmentize_command.empty() && conv.latex()) {
|
&& lyxrc.pygmentize_command.empty() && conv.latex()) {
|
||||||
bool dowarn = false;
|
bool dowarn = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user