]> git.lyx.org Git - lyx.git/blobdiff - src/importer.C
Fix bug 886 and others not reported related with the document paper size.
[lyx.git] / src / importer.C
index 3e6ccf69e09c3aa9f1ef4dafb818e27504864371..672edcdc6e1e7713bde9654d3239a5dc83bb81b2 100644 (file)
@@ -4,11 +4,12 @@
  * Licence details can be found in the file COPYING.
  *
  * \author unknown
+ * \author Lars Gullik Bjønnes
+ * \author Jean-Marc Lasgouttes
  *
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
  */
 
-
 #include <config.h>
 
 #include "importer.h"
 #include "funcrequest.h"
 
 #include "bufferlist.h"
-#include "buffer_funcs.h"
 #include "support/filetools.h"
 #include "frontends/Alert.h"
 #include "gettext.h"
 #include "BufferView.h"
 
-#include <algorithm>
-
-using namespace lyx::support;
+using lyx::support::bformat;
+using lyx::support::ChangeExtension;
+using lyx::support::MakeDisplayPath;
 
-using std::vector;
 using std::find;
+using std::string;
+using std::vector;
 
 
 extern BufferList bufferlist;
@@ -70,7 +71,7 @@ bool Importer::Import(LyXView * lv, string const & filename,
        if (loader_format == "lyx") {
                lv->view()->loadLyXFile(lyxfile);
        } else {
-               lv->view()->buffer(newFile(lyxfile, string(), true));
+               lv->view()->newFile(lyxfile, string(), true);
                bool as_paragraphs = loader_format == "textparagraph";
                string filename2 = (loader_format == format) ? filename
                        : ChangeExtension(filename,