#define CONVERTER_H
#include "graph.h"
+#include "outputparams.h"
#include <vector>
#include <string>
class Buffer;
class Format;
class Formats;
-class LatexRunParams;
+class OutputParams;
///
/// The converter is latex or its derivatives
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
return converterlist_[i];
}
///
- Converter const * getConverter(std::string const & from, std::string const & to);
+ Converter const * getConverter(std::string const & from,
+ std::string const & to) const;
///
- int getNumber(std::string const & from, std::string const & to);
+ int getNumber(std::string const & from, std::string const & to) const;
///
void add(std::string const & from, std::string const & to,
std::string const & command, std::string const & flags);
///
Graph::EdgePath const getPath(std::string const & from, std::string const & to);
///
- bool usePdflatex(Graph::EdgePath const & path);
+ OutputParams::FLAVOR getFlavor(Graph::EdgePath const & path);
///
bool convert(Buffer const * buffer,
std::string const & from_file, std::string const & to_file_base,
private:
///
std::vector<Format const *> const
- Converters::intToFormat(std::vector<int> const & input);
+ intToFormat(std::vector<int> const & input);
///
bool scanLog(Buffer const & buffer, std::string const & command,
std::string const & filename);
///
bool runLaTeX(Buffer const & buffer, std::string const & command,
- LatexRunParams const &);
+ OutputParams const &);
///
ConverterList converterlist_;
///
std::string latex_command_;
///
- bool move(std::string const & from, std::string const & to, bool copy);
+ bool move(std::string const & fmt,
+ std::string const & from, std::string const & to,
+ bool copy);
///
Graph G_;
};