]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsConverter.cpp
getting rid of superfluous std:: statements.
[lyx.git] / src / graphics / GraphicsConverter.cpp
index 1dd8be961eff0945fc22f3257340e414b21b5122..817768e489f21d5686ae0578f018a985dbabca50 100644 (file)
 #include "GraphicsConverter.h"
 
 #include "Converter.h"
-#include "support/debug.h"
 #include "Format.h"
 
-#include "support/filetools.h"
-#include "support/ForkedCallQueue.h"
 #include "support/convert.h"
+#include "support/debug.h"
+#include "support/filetools.h"
+#include "support/ForkedCalls.h"
 #include "support/lstrings.h"
 #include "support/lyxlib.h"
 #include "support/os.h"
 #include <sstream>
 #include <fstream>
 
-namespace support = lyx::support;
-
-using support::addExtension;
-using support::changeExtension;
-using support::FileName;
-using support::Forkedcall;
-using support::ForkedCallQueue;
-using support::getExtension;
-using support::libScriptSearch;
-using support::onlyPath;
-using support::onlyFilename;
-using support::quoteName;
-using support::quote_python;
-using support::subst;
-using support::tempName;
-
-using std::endl;
-using std::ostream;
-using std::ostringstream;
-using std::string;
-
+using namespace std;
+using namespace lyx::support;
 
 namespace lyx {
+
 namespace graphics {
 
 class Converter::Impl : public boost::signals::trackable {
@@ -161,12 +143,12 @@ Converter::Impl::Impl(FileName const & from_file, string const & to_file_base,
        script_file_ = FileName(onlyPath(to_file_base) + "lyxconvert" +
                convert<string>(counter++) + ".py");
 
-       std::ofstream fs(script_file_.toFilesystemEncoding().c_str());
+       ofstream fs(script_file_.toFilesystemEncoding().c_str());
        if (!fs.good()) {
                lyxerr << "Unable to write the conversion script to \""
                       << script_file_ << '\n'
                       << "Please check your directory permissions."
-                      << std::endl;
+                      << endl;
                return;
        }
 
@@ -193,9 +175,8 @@ void Converter::Impl::startConversion()
                return;
        }
 
-       Forkedcall::SignalTypePtr
-               ptr = ForkedCallQueue::get().add(script_command_);
-
+       ForkedCall::SignalTypePtr ptr =
+               support::ForkedCallQueue::add(script_command_);
        ptr->connect(boost::bind(&Impl::converted, this, _1, _2));
 }