]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.h
Unneeded include
[lyx.git] / src / Converter.h
index 2849e877e4f873c89bd5fd17da5a89733ea01ed8..c5a752004ad09be0e91b1ec9a8a2034420b2fc5b 100644 (file)
@@ -55,8 +55,6 @@ public:
        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
        bool need_aux;
        /// If the converter put the result in a directory, then result_dir
@@ -73,16 +71,12 @@ public:
 ///
 class Converters {
 public:
-       ///
-       typedef std::vector<int> EdgePath; // to be removed SOON
        ///
        typedef std::vector<Converter> ConverterList;
        ///
        typedef ConverterList::const_iterator const_iterator;
        ///
-       Converter const & get(int i) const {
-               return converterlist_[i];
-       }
+       Converter const & get(int i) const { return converterlist_[i]; }
        ///
        Converter const * getConverter(std::string const & from,
                                       std::string const & to) const;
@@ -102,10 +96,17 @@ public:
        std::vector<Format const *> const
        getReachable(std::string const & from, bool only_viewable,
                     bool clear_visited);
+
+       std::vector<Format const *> importableFormats();
+       std::vector<Format const *> exportableFormats(bool only_viewable);
+
+       std::vector<std::string> loaders() const;
+       std::vector<std::string> 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
@@ -119,10 +120,10 @@ public:
        };
        ///
        bool convert(Buffer const * buffer,
-                    support::FileName const & from_file, support::FileName const & to_file,
-                    support::FileName const & orig_from,
-                    std::string const & from_format, std::string const & to_format,
-                    ErrorList & errorList, int conversionflags = none);
+                    support::FileName const & from_file, support::FileName const & to_file,
+                    support::FileName const & orig_from,
+                    std::string const & from_format, std::string const & to_format,
+                    ErrorList & errorList, int conversionflags = none);
        ///
        void update(Formats const & formats);
        ///
@@ -130,12 +131,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: