X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fimporter.C;h=8b7193954714b8cdf0e17414fcc8646f8be44466;hb=ab254289c832cd045c56e6012d14b048618cb833;hp=e331f6670f29f7ef768ca231fe7ad6c333e2f49b;hpb=b17500c1c47d7bdd4508743c27fb72f0e57a5105;p=lyx.git diff --git a/src/importer.C b/src/importer.C index e331f6670f..8b71939547 100644 --- a/src/importer.C +++ b/src/importer.C @@ -4,7 +4,7 @@ * LyX, The Document Processor * * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * * ====================================================== */ @@ -20,10 +20,12 @@ #include "converter.h" #include "LyXView.h" #include "lyxfunc.h" + #include "bufferlist.h" #include "support/filetools.h" #include "lyx_gui_misc.h" //WriteAlert #include "gettext.h" +#include "BufferView.h" using std::vector; using std::find; @@ -36,8 +38,9 @@ bool Importer::Import(LyXView * lv, string const & filename, string const & format) { string const displaypath = MakeDisplayPath(filename); - string const s1 = _("Importing") + ' ' + displaypath + "..."; - lv->getLyXFunc()->Dispatch(LFUN_MESSAGE, s1); + ostringstream s1; + s1 << _("Importing") << ' ' << displaypath << "..."; + lv->message(s1.str().c_str()); string const lyxfile = ChangeExtension(filename, ".lyx"); @@ -79,10 +82,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 +99,7 @@ bool Importer::IsImportable(string const & format) } #endif + vector const Importer::GetImportableFormats() { vector loaders = Loaders();