]> git.lyx.org Git - lyx.git/blobdiff - src/importer.C
fix typo that put too many include paths for most people
[lyx.git] / src / importer.C
index 144b76200b3973887f12afd4bfbb5fa527e6e533..563651d465e372b6db207709067a1845c16f8008 100644 (file)
@@ -1,8 +1,8 @@
 /* This file is part of
- * ====================================================== 
- * 
+ * ======================================================
+ *
  *           LyX, The Document Processor
- *        
+ *
  *           Copyright 1995 Matthias Ettrich
  *           Copyright 1995-2001 The LyX Team.
  *
@@ -23,7 +23,7 @@
 
 #include "bufferlist.h"
 #include "support/filetools.h"
-#include "lyx_gui_misc.h" //WriteAlert
+#include "frontends/Alert.h"
 #include "gettext.h"
 #include "BufferView.h"
 
@@ -34,7 +34,7 @@ extern BufferList bufferlist;
 extern void InsertAsciiFile(BufferView *, string const &, bool);
 
 
-bool Importer::Import(LyXView * lv, string const & filename, 
+bool Importer::Import(LyXView * lv, string const & filename,
                      string const & format)
 {
        string const displaypath = MakeDisplayPath(filename);
@@ -58,7 +58,7 @@ bool Importer::Import(LyXView * lv, string const & filename,
                        }
                }
                if (loader_format.empty()) {
-                       WriteAlert(_("Can not import file"),
+                       Alert::alert(_("Cannot import file"),
                                   _("No information for importing from ")
                                   + formats.prettyName(format));
                        return false;
@@ -103,7 +103,7 @@ bool Importer::IsImportable(string const & format)
 vector<Format const *> const Importer::GetImportableFormats()
 {
        vector<string> loaders = Loaders();
-       vector<Format const *> result = 
+       vector<Format const *> result =
                converters.getReachableTo(loaders[0], true);
        for (vector<string>::const_iterator it = loaders.begin() + 1;
             it != loaders.end(); ++it) {