#include "support/package.h"
#include "support/path.h"
-namespace support = lyx::support;
-
using std::endl;
-
using std::string;
using std::vector;
// Yes if to_file does not exist or if from_file is newer than to_file
if (support::compare_timestamps(temp_file, abs_to_file) < 0)
return; // SUCCESS
- string const to_file_base =
- support::changeExtension(to_file, string());
// FIXME (Abdel 12/08/06): Is there a need to show these errors?
ErrorList el;
/* bool const success = */
- converters.convert(&buffer, temp_file, to_file_base,
- from_format, to_format, el, true);
+ converters.convert(&buffer, temp_file, abs_to_file,
+ abs_from_file, from_format, to_format, el,
+ Converters::try_default | Converters::try_cache);
// return success
}
int writeExternal(InsetExternalParams const & params,
string const & format,
- Buffer const & buffer, lyx::odocstream & os,
+ Buffer const & buffer, odocstream & os,
ExportData & exportdata,
bool external_in_tmpdir,
bool external_in_comment)
str = substituteCommands(params, str, format);
str = substituteOptions(params, str, format);
// FIXME UNICODE
- os << lyx::from_utf8(str);
+ os << from_utf8(str);
return int(lyx::count(str.begin(), str.end(),'\n'));
}
}
return output;
- }
+}
} // namespace anon
} // namespace external
+
} // namespace lyx