]> git.lyx.org Git - lyx.git/blobdiff - src/importer.C
fix "make dist" target
[lyx.git] / src / importer.C
index e331f6670f29f7ef768ca231fe7ad6c333e2f49b..119be0ea82a2e0c6b8ff067d861db46639894e17 100644 (file)
@@ -20,6 +20,7 @@
 #include "converter.h"
 #include "LyXView.h"
 #include "lyxfunc.h"
+
 #include "bufferlist.h"
 #include "support/filetools.h"
 #include "lyx_gui_misc.h" //WriteAlert
@@ -37,7 +38,7 @@ bool Importer::Import(LyXView * lv, string const & filename,
 {
        string const displaypath = MakeDisplayPath(filename);
        string const s1 = _("Importing") + ' ' + displaypath + "...";
-       lv->getLyXFunc()->Dispatch(LFUN_MESSAGE, s1);
+       lv->message(s1);
 
        string const lyxfile = ChangeExtension(filename, ".lyx");
 
@@ -79,10 +80,11 @@ bool Importer::Import(LyXView * lv, string const & filename,
        }
 
        // we are done
-       lv->getLyXFunc()->Dispatch(LFUN_MESSAGE, _("imported."));
+       lv->message(_("imported."));
        return true;
 }
 
+
 #if 0
 bool Importer::IsImportable(string const & format)
 {
@@ -95,6 +97,7 @@ bool Importer::IsImportable(string const & format)
 }
 #endif
 
+
 vector<Format const *> const Importer::GetImportableFormats()
 {
        vector<string> loaders = Loaders();