#include "support/gettext.h"
#include "support/lstrings.h"
#include "support/lyxalgo.h"
-#include "support/lyxlib.h"
#include "support/os.h"
#include "support/Package.h"
void editExternal(InsetExternalParams const & params, Buffer const & buffer)
{
- formats.edit(buffer, params.filename,
+ formats.edit(buffer, params.filename.availableFile(),
formats.getFormatFromFile(params.filename));
}
relToParentPath, use_latex_path,
PROTECT_EXTENSION,
ESCAPE_DOTS);
- if (absolutePath(filename)) {
+ if (FileName(filename).isAbsolute()) {
result = subst_path(result, "$$AbsOrRelPathMaster",
abspath, use_latex_path,
PROTECT_EXTENSION,
if (from_checksum != temp_checksum) {
Mover const & mover = getMover(from_format);
- if (!mover.copy(params.filename, temp_file)) {
+ if (!mover.copy(params.filename.availableFile(), temp_file)) {
LYXERR(Debug::EXTERNAL, "external::updateExternal. "
<< "Unable to copy " << params.filename << " to " << temp_file);
return; // FAILURE
ErrorList el;
bool const success =
theConverters().convert(&buffer, temp_file, abs_to_file,
- params.filename, from_format, to_format, el,
+ params.filename.availableFile(), from_format, to_format, el,
Converters::try_default | Converters::try_cache);
if (!success) {