X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverter.h;h=c5a752004ad09be0e91b1ec9a8a2034420b2fc5b;hb=0fd75fefc4aa1816f8d5a72ed0e30f8accdd0bfc;hp=2849e877e4f873c89bd5fd17da5a89733ea01ed8;hpb=f630be890494c849981e4fb52ea4740506e92bed;p=lyx.git diff --git a/src/Converter.h b/src/Converter.h index 2849e877e4..c5a752004a 100644 --- a/src/Converter.h +++ b/src/Converter.h @@ -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 EdgePath; // to be removed SOON /// typedef std::vector 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 const getReachable(std::string const & from, bool only_viewable, bool clear_visited); + + 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 @@ -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: