X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmover.h;h=1aae717766fb089249c36d50fbe0007dc7a10254;hb=35204f8f33d7400a5fefeffea533fb4cb4097211;hp=a2af0f723a2c9903fe316f40713a3f5330cd3128;hpb=debd34424fdc6b2d610b5c03735b188c2a85940a;p=lyx.git diff --git a/src/mover.h b/src/mover.h index a2af0f723a..1aae717766 100644 --- a/src/mover.h +++ b/src/mover.h @@ -15,6 +15,9 @@ #include #include + +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