X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fimporter.C;h=03eb4002b92be0dc35a300a86a8c16468c248f9c;hb=5091380d6bad1686800e384ed1bbb03836a15aab;hp=0bc17cc27d23a39a60193eb1398ffa3e292a44ba;hpb=c10dfd15cd79499dd23f161d8f1716c00a143e09;p=lyx.git diff --git a/src/importer.C b/src/importer.C index 0bc17cc27d..03eb4002b9 100644 --- a/src/importer.C +++ b/src/importer.C @@ -19,7 +19,7 @@ #include "importer.h" #include "converter.h" #include "frontends/LyXView.h" -#include "lyxfunc.h" +#include "funcrequest.h" #include "bufferlist.h" #include "support/filetools.h" @@ -40,7 +40,7 @@ bool Importer::Import(LyXView * lv, string const & filename, string const displaypath = MakeDisplayPath(filename); ostringstream s1; s1 << _("Importing") << ' ' << displaypath << "..."; - lv->message(s1.str().c_str()); + lv->message(STRCONV(s1.str())); string const lyxfile = ChangeExtension(filename, ".lyx"); @@ -78,7 +78,7 @@ bool Importer::Import(LyXView * lv, string const & filename, : ChangeExtension(filename, formats.extension(loader_format)); InsertAsciiFile(lv->view().get(), filename2, as_paragraphs); - lv->getLyXFunc().dispatch(LFUN_MARK_OFF); + lv->dispatch(FuncRequest(LFUN_MARK_OFF)); } // we are done