]> git.lyx.org Git - lyx.git/blobdiff - src/exporter.C
ws changes only
[lyx.git] / src / exporter.C
index b204da466d4e2fec0bdf8489a539ff5772ff5510..6905871c23987d274d59600020692061abaa4a18 100644 (file)
 #include <config.h>
 
 #include "exporter.h"
+
 #include "buffer.h"
 #include "buffer_funcs.h"
-#include "support/filetools.h"
-#include "lyxrc.h"
+#include "bufferparams.h"
 #include "converter.h"
 #include "format.h"
-#include "frontends/Alert.h"
 #include "gettext.h"
+#include "latexrunparams.h"
+#include "lyxrc.h"
 
+#include "frontends/Alert.h"
 
-using namespace lyx::support;
+#include "support/filetools.h"
+
+using lyx::support::AddName;
+using lyx::support::bformat;
+using lyx::support::ChangeExtension;
+using lyx::support::contains;
+using lyx::support::MakeDisplayPath;
 
-using std::vector;
 using std::find;
+using std::string;
+using std::vector;
 
 
 namespace {
@@ -38,7 +47,7 @@ namespace {
 vector<string> const Backends(Buffer const & buffer)
 {
        vector<string> v;
-       if (buffer.params.getLyXTextClass().isTeXClassAvailable())
+       if (buffer.params().getLyXTextClass().isTeXClassAvailable())
                v.push_back(BufferFormat(buffer));
        v.push_back("text");
        return v;
@@ -76,8 +85,8 @@ bool Exporter::Export(Buffer * buffer, string const & format,
                backend_format = format;
 
        string filename = buffer->getLatexName(false);
-       if (!buffer->tmppath.empty())
-               filename = AddName(buffer->tmppath, filename);
+       if (!buffer->temppath().empty())
+               filename = AddName(buffer->temppath(), filename);
        filename = ChangeExtension(filename,
                                   formats.extension(backend_format));