]> git.lyx.org Git - lyx.git/blobdiff - src/mover.C
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / mover.C
index 4ffb3458fde4676549aa92ef2d96488ab4609e7f..24950a870691af7de9cd53dc9be1f0402acd73ac 100644 (file)
@@ -8,6 +8,8 @@
  * Full author contact details are available in file CREDITS.
  */
 
+#include <config.h>
+
 #include "mover.h"
 
 #include "support/filetools.h"
 
 #include <sstream>
 
-using std::ostringstream;
-using std::string;
 
-namespace support = lyx::support;
+namespace lyx {
+
+using std::string;
 
 Movers movers;
 Movers system_movers;
 
 
 bool Mover::do_copy(string const & from, string const & to,
-                    string const &) const
+                   string const &) const
 {
        return support::copy(from, to);
 }
 
 
 bool Mover::do_rename(string const & from, string const & to,
-                      string const &) const
+                     string const &) const
 {
        return support::rename(from, to);
 }
 
 
 bool SpecialisedMover::do_copy(string const & from, string const & to,
-                               string const & latex) const
+                              string const & latex) const
 {
        if (command_.empty())
                return Mover::do_copy(from, to, latex);
 
-       string command = support::LibScriptSearch(command_);
+       string command = support::libScriptSearch(command_);
        command = support::subst(command, "$$i", from);
        command = support::subst(command, "$$o", to);
        command = support::subst(command, "$$l", latex);
@@ -57,7 +59,7 @@ bool SpecialisedMover::do_copy(string const & from, string const & to,
 
 
 bool SpecialisedMover::do_rename(string const & from, string const & to,
-                                 string const & latex) const
+                                string const & latex) const
 {
        if (command_.empty())
                return Mover::do_rename(from, to, latex);
@@ -86,3 +88,6 @@ string const Movers::command(string  const & fmt) const
        SpecialsMap::const_iterator const it = specials_.find(fmt);
        return (it == specials_.end()) ? string() : it->second.command();
 }
+
+
+} // namespace lyx