#include <algorithm>
+using namespace lyx::support;
+
using std::vector;
using std::find;
if (loader_format == "lyx") {
lv->view()->loadLyXFile(lyxfile);
} else {
- lv->view()->buffer(newFile(lyxfile, string(), true));
+ lv->view()->newFile(lyxfile, string(), true);
bool as_paragraphs = loader_format == "textparagraph";
string filename2 = (loader_format == format) ? filename
: ChangeExtension(filename,