]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.h
listerrors.lyx : Update a link.
[lyx.git] / src / Converter.h
index 481968eff1ee1ba335c524590698898755919a14..f71f123a611618451cf1466d3d57d2f5349da5c4 100644 (file)
@@ -16,6 +16,7 @@
 #include "OutputParams.h"
 
 #include <vector>
+#include <set>
 #include <string>
 
 
@@ -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,12 +74,13 @@ public:
 ///
 class Converters {
 public:
-       ///
-       typedef std::vector<int> EdgePath; // to be removed SOON
        ///
        typedef std::vector<Converter> ConverterList;
        ///
        typedef ConverterList::const_iterator const_iterator;
+       ///
+       typedef std::vector<std::string> FormatList;
+
        ///
        Converter const & get(int i) const { return converterlist_[i]; }
        ///
@@ -90,14 +94,13 @@ public:
        //
        void erase(std::string const & from, std::string const & to);
        ///
-       void sort();
-       ///
        std::vector<Format const *> const
        getReachableTo(std::string const & target, bool clear_visited);
        ///
        std::vector<Format const *> const
        getReachable(std::string const & from, bool only_viewable,
-                    bool clear_visited);
+              bool clear_visited,
+              std::set<std::string> const & excludes = std::set<std::string>());
 
        std::vector<Format const *> importableFormats();
        std::vector<Format const *> exportableFormats(bool only_viewable);
@@ -152,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,