#include "BufferView.h"
#include "buffer_funcs.h"
+using lyx::docstring;
using lyx::support::bformat;
using lyx::support::changeExtension;
using lyx::support::makeDisplayPath;
bool Importer::Import(LyXView * lv, string const & filename,
- string const & format)
+ string const & format, ErrorList & errorList)
{
- string const displaypath = makeDisplayPath(filename);
+ docstring const displaypath = makeDisplayPath(filename);
lv->message(bformat(_("Importing %1$s..."), displaypath));
string const lyxfile = changeExtension(filename, ".lyx");
it != loaders.end(); ++it) {
if (converters.isReachable(format, *it)) {
if (!converters.convert(0, filename, filename,
- format, *it))
+ format, *it, errorList))
return false;
loader_format = *it;
break;