]> git.lyx.org Git - lyx.git/blobdiff - src/mover.C
LFUN_UNICODE_INSERT - unicode-insert
[lyx.git] / src / mover.C
index a74ae0795f45f27258c7669d71e75225a0ab0788..24950a870691af7de9cd53dc9be1f0402acd73ac 100644 (file)
 
 #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);
@@ -59,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);
@@ -88,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