* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
#include "converter.h"
#include "LyXView.h"
#include "lyxfunc.h"
-#include "minibuffer.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;
bool Importer::Import(LyXView * lv, string const & filename,
string const & format)
{
- string displaypath = MakeDisplayPath(filename);
- lv->getMiniBuffer()->Set(_("Importing"), displaypath, "...");
+ string const displaypath = MakeDisplayPath(filename);
+ ostringstream s1;
+ s1 << _("Importing") << ' ' << displaypath << "...";
+ lv->message(s1.str().c_str());
- string lyxfile = ChangeExtension(filename, ".lyx");
+ string const lyxfile = ChangeExtension(filename, ".lyx");
string loader_format;
vector<string> loaders = Loaders();
}
// we are done
- lv->getMiniBuffer()->Set(displaypath, _("imported."));
+ lv->message(_("imported."));
return true;
}
+
#if 0
bool Importer::IsImportable(string const & format)
{
}
#endif
+
vector<Format const *> const Importer::GetImportableFormats()
{
vector<string> loaders = Loaders();