]> git.lyx.org Git - lyx.git/blobdiff - src/importer.C
Remove unused font variable which caused a warning.
[lyx.git] / src / importer.C
index 1f6d77025734a4bd6ffc272dc4e3604b16024b26..21310d7e02bf406c7342ddeafd7e6cc304c946d4 100644 (file)
@@ -4,7 +4,7 @@
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
@@ -25,6 +25,7 @@
 #include "support/filetools.h"
 #include "lyx_gui_misc.h" //WriteAlert
 #include "gettext.h"
+#include "BufferView.h"
 
 using std::vector;
 using std::find;
@@ -37,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->message(s1);
+       ostringstream s1;
+       s1 << _("Importing") << ' ' << displaypath << "...";
+       lv->message(s1.str().c_str());
 
        string const lyxfile = ChangeExtension(filename, ".lyx");
 
@@ -76,7 +78,7 @@ bool Importer::Import(LyXView * lv, string const & filename,
                        : ChangeExtension(filename,
                                          formats.Extension(loader_format));
                InsertAsciiFile(lv->view(), filename2, as_paragraphs);
-               lv->getLyXFunc()->Dispatch(LFUN_MARK_OFF);
+               lv->getLyXFunc()->dispatch(LFUN_MARK_OFF);
        }
 
        // we are done
@@ -84,6 +86,7 @@ bool Importer::Import(LyXView * lv, string const & filename,
        return true;
 }
 
+
 #if 0
 bool Importer::IsImportable(string const & format)
 {
@@ -96,6 +99,7 @@ bool Importer::IsImportable(string const & format)
 }
 #endif
 
+
 vector<Format const *> const Importer::GetImportableFormats()
 {
        vector<string> loaders = Loaders();