X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fimporter.C;h=563651d465e372b6db207709067a1845c16f8008;hb=98c966c64594611e469313314abd1e59524adb4a;hp=961cb23b8b5ff55f40a3e74d95463b352a9a98d6;hpb=7abb718a67d2e0d263dbd713433cb6d060499cc0;p=lyx.git diff --git a/src/importer.C b/src/importer.C index 961cb23b8b..563651d465 100644 --- a/src/importer.C +++ b/src/importer.C @@ -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(_("Cannot 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 const Importer::GetImportableFormats() { vector loaders = Loaders(); - vector result = + vector result = converters.getReachableTo(loaders[0], true); for (vector::const_iterator it = loaders.begin() + 1; it != loaders.end(); ++it) {