]> git.lyx.org Git - lyx.git/blobdiff - src/mover.h
hopefully fix tex2lyx linking.
[lyx.git] / src / mover.h
index a2af0f723a2c9903fe316f40713a3f5330cd3128..1aae717766fb089249c36d50fbe0007dc7a10254 100644 (file)
@@ -15,6 +15,9 @@
 #include <map>
 #include <string>
 
+
+namespace lyx {
+
 /**
  *  Utility to copy a file of a specified format from one place to another.
  *  This base class simply invokes the command support::copy().
@@ -31,9 +34,10 @@ public:
         *  \returns true if successful.
         */
        bool
-       copy(std::string const & from, std::string const & to) const
+       copy(std::string const & from, std::string const & to,
+            unsigned long int mode = (unsigned long int)-1) const
        {
-               return do_copy(from, to, to);
+               return do_copy(from, to, to, mode);
        }
 
        /** Copy file @c from to @c to.
@@ -46,9 +50,10 @@ public:
         */
        bool
        copy(std::string const & from, std::string const & to,
-            std::string const & latex) const
+            std::string const & latex,
+            unsigned long int mode = (unsigned long int)-1) const
        {
-               return do_copy(from, to, latex);
+               return do_copy(from, to, latex, mode);
        }
 
        /** Rename file @c from as @c to.
@@ -81,7 +86,7 @@ public:
 protected:
        virtual bool
        do_copy(std::string const & from, std::string const & to,
-               std::string const &) const;
+               std::string const &, unsigned long int mode) const;
 
        virtual bool
        do_rename(std::string const & from, std::string const & to,
@@ -128,7 +133,7 @@ public:
 private:
        virtual bool
        do_copy(std::string const & from, std::string const & to,
-               std::string const & latex) const;
+               std::string const & latex, unsigned long int mode) const;
 
        virtual bool
        do_rename(std::string const & from, std::string const & to,
@@ -174,4 +179,7 @@ private:
 extern Movers movers;
 extern Movers system_movers;
 
+
+} // namespace lyx
+
 #endif // MOVER_H