X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FConverter.h;h=f71f123a611618451cf1466d3d57d2f5349da5c4;hb=612109bb6e5e61ba3c3693696f329eac3a288b5b;hp=46e5bfdf202379e700c7edbb9008052875d81aff;hpb=3d362bf35c3e84effea416f28a90a524a21f3730;p=lyx.git diff --git a/src/Converter.h b/src/Converter.h index 46e5bfdf20..f71f123a61 100644 --- a/src/Converter.h +++ b/src/Converter.h @@ -16,6 +16,7 @@ #include "OutputParams.h" #include +#include #include @@ -53,6 +54,8 @@ public: /// The converter is latex or its derivatives bool latex; + /// The latex derivate + std::string latex_flavor; /// The converter is xml bool xml; /// This converter needs the .aux files @@ -71,16 +74,15 @@ public: /// class Converters { public: - /// - typedef std::vector EdgePath; // to be removed SOON /// typedef std::vector ConverterList; /// typedef ConverterList::const_iterator const_iterator; /// - Converter const & get(int i) const { - return converterlist_[i]; - } + typedef std::vector FormatList; + + /// + Converter const & get(int i) const { return converterlist_[i]; } /// Converter const * getConverter(std::string const & from, std::string const & to) const; @@ -92,18 +94,24 @@ public: // void erase(std::string const & from, std::string const & to); /// - void sort(); - /// std::vector const getReachableTo(std::string const & target, bool clear_visited); /// std::vector const getReachable(std::string const & from, bool only_viewable, - bool clear_visited); + bool clear_visited, + std::set const & excludes = std::set()); + + std::vector importableFormats(); + std::vector exportableFormats(bool only_viewable); + + std::vector loaders() const; + std::vector savers() const; + /// 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); + Graph::EdgePath getPath(std::string const & from, std::string const & to); /// OutputParams::FLAVOR getFlavor(Graph::EdgePath const & path); /// Flags for converting files @@ -128,12 +136,9 @@ public: /// bool formatIsUsed(std::string const & format); /// - const_iterator begin() const { - return converterlist_.begin(); - } - const_iterator end() const { - return converterlist_.end(); - } + const_iterator begin() const { return converterlist_.begin(); } + /// + const_iterator end() const { return converterlist_.end(); } /// void buildGraph(); private: @@ -150,6 +155,8 @@ private: ConverterList converterlist_; /// std::string latex_command_; + /// + std::string xelatex_command_; /// 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,