]> git.lyx.org Git - lyx.git/blobdiff - src/Converter.h
* cosmetic
[lyx.git] / src / Converter.h
index 2849e877e4f873c89bd5fd17da5a89733ea01ed8..942f33acd14939a4c2a13d981df647e39025d927 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
@@ -80,9 +78,7 @@ public:
        ///
        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 +98,15 @@ public:
        std::vector<Format const *> const
        getReachable(std::string const & from, bool only_viewable,
                     bool clear_visited);
+
+       std::vector<Format const *> importableFormats();
+
+       std::vector<std::string> loaders() 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: