#include "support/lyxalgo.h"
#include "support/filetools.h"
#include "support/fs_extras.h"
-#ifdef USE_COMPRESSION
# include <boost/iostreams/filtering_stream.hpp>
# include <boost/iostreams/filter/gzip.hpp>
# include <boost/iostreams/device/file.hpp>
namespace io = boost::iostreams;
-#endif
#include "support/lyxlib.h"
#include "support/os.h"
#include "support/path.h"
namespace {
-int const LYX_FORMAT = 245;
+int const LYX_FORMAT = 248;
} // namespace anon
return false;
}
ostringstream command;
- command << "python " << quoteName(lyx2lyx)
+ command << os::python() << ' ' << quoteName(lyx2lyx)
<< " -t " << convert<string>(LYX_FORMAT)
<< " -o " << quoteName(tmpfile) << ' '
<< quoteName(filename);
bool retval = false;
if (params().compressed) {
-#ifdef USE_COMPRESSION
io::filtering_ostream ofs(io::gzip_compressor() | io::file_sink(fname));
if (!ofs)
return false;
retval = do_writeFile(ofs);
-#else
- return false;
-#endif
} else {
ofstream ofs(fname.c_str(), ios::out|ios::trunc);
if (!ofs)
bool dispatched = true;
switch (func.action) {
- case LFUN_EXPORT: {
+ case LFUN_BUFFER_EXPORT: {
bool const tmp = Exporter::Export(this, func.argument, false);
if (result)
*result = tmp;
BOOST_ASSERT(from);
BOOST_ASSERT(to);
- lyxerr << "Changing Language!" << endl;
-
// Take care of l10n/i18n
updateDocLang(to);