X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fconverter.h;h=f5f66ed810eddb1c9caf77c99bf25ef01c6c34bc;hb=9ee46b846e5e84ad40ceda4f4af94aeb86cd90a2;hp=6775fb0f1afacc2b2449bff06d50586753ab7b37;hpb=3420904448b247cc270597c31b52d777e38ac647;p=lyx.git diff --git a/src/converter.h b/src/converter.h index 6775fb0f1a..f5f66ed810 100644 --- a/src/converter.h +++ b/src/converter.h @@ -48,6 +48,8 @@ public: /// The converter is latex or its derivatives bool latex; + /// The converter is xml + bool xml; /// Do we need to run the converter in the original directory? bool original_dir; /// This converter needs the .aux files @@ -95,7 +97,7 @@ public: std::vector const getReachable(std::string const & from, bool only_viewable, bool clear_visited); - /// + /// Does a conversion path from format \p from to format \p to exist? bool isReachable(std::string const & from, std::string const & to); /// Graph::EdgePath const getPath(std::string const & from, std::string const & to); @@ -105,11 +107,12 @@ public: bool convert(Buffer const * buffer, std::string const & from_file, std::string const & to_file_base, std::string const & from_format, std::string const & to_format, - std::string & to_file); + std::string & to_file, bool try_default = false); /// bool convert(Buffer const * buffer, std::string const & from_file, std::string const & to_file_base, - std::string const & from_format, std::string const & to_format); + std::string const & from_format, std::string const & to_format, + bool try_default = false); /// void update(Formats const & formats); /// @@ -139,8 +142,11 @@ private: ConverterList converterlist_; /// std::string latex_command_; - /// - bool move(std::string const & from, std::string const & to, bool copy); + /// If \p from = /path/file.ext and \p to = /path2/file2.ext2 then + /// this method moves each /path/file*.ext file to /path2/file2*.ext2 + bool move(std::string const & fmt, + std::string const & from, std::string const & to, + bool copy); /// Graph G_; };