#include "support/package.h"
#include "support/path.h"
-#include "support/std_ostream.h"
-
-namespace support = lyx::support;
-
using std::endl;
-
-using std::ostream;
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, 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, ostream & os,
+ Buffer const & buffer, odocstream & os,
ExportData & exportdata,
bool external_in_tmpdir,
bool external_in_comment)
use_latex_path, external_in_tmpdir);
str = substituteCommands(params, str, format);
str = substituteOptions(params, str, format);
- os << str;
+ // FIXME UNICODE
+ os << from_utf8(str);
return int(lyx::count(str.begin(), str.end(),'\n'));
}
return sanitizeLatexOption(opt);
if (format == "DocBook")
return sanitizeDocBookOption(opt);
- if (format == "LinuxDoc")
- return sanitizeLinuxDocOption(opt);
return opt;
}
}
return output;
- }
+}
} // namespace anon
} // namespace external
+
} // namespace lyx