X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverter.h;h=942f33acd14939a4c2a13d981df647e39025d927;hb=1ab314f8e6e145dc73d0a26b7e82a280b497ea3c;hp=2849e877e4f873c89bd5fd17da5a89733ea01ed8;hpb=f630be890494c849981e4fb52ea4740506e92bed;p=lyx.git diff --git a/src/Converter.h b/src/Converter.h index 2849e877e4..942f33acd1 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 @@ -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 const getReachable(std::string const & from, bool only_viewable, bool clear_visited); + + std::vector importableFormats(); + + std::vector 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: