X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FConverter.h;h=3429ce7154d2322c206bf034b8c238dc1eba685e;hb=f887efedf11c198d9b6cc19911fa0a32a93496f3;hp=942f33acd14939a4c2a13d981df647e39025d927;hpb=93bd28f0404cfedfa912be4892878692775b8d9c;p=lyx.git diff --git a/src/Converter.h b/src/Converter.h index 942f33acd1..3429ce7154 100644 --- a/src/Converter.h +++ b/src/Converter.h @@ -16,6 +16,7 @@ #include "OutputParams.h" #include +#include #include @@ -53,10 +54,14 @@ 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 bool need_aux; + /// we need a "nice" file from the backend, c.f. OutputParams.nice. + bool nice; /// If the converter put the result in a directory, then result_dir /// is the name of the directory std::string result_dir; @@ -71,12 +76,11 @@ 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]; } /// @@ -90,25 +94,27 @@ public: // void erase(std::string const & from, std::string const & to); /// - void sort(); - /// std::vector const getReachableTo(std::string const & target, bool clear_visited); /// std::vector const getReachable(std::string const & from, bool only_viewable, - bool clear_visited); + bool clear_visited, + std::set const & excludes = std::set()); 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 getPath(std::string const & from, std::string const & to); /// - OutputParams::FLAVOR getFlavor(Graph::EdgePath const & path); + OutputParams::FLAVOR getFlavor(Graph::EdgePath const & path, + Buffer const * buffer = 0); /// Flags for converting files enum ConversionFlags { /// No special flags @@ -150,6 +156,14 @@ private: ConverterList converterlist_; /// std::string latex_command_; + /// + std::string dvilualatex_command_; + /// + std::string lualatex_command_; + /// + std::string pdflatex_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,