class Format {
public:
///
- Format() : in_degree(0) {}
+ Format() {}
///
Format(string const & n);
///
string prettyname;
///
string viewer;
+};
+
+class FormatPair {
+public:
+ ///
+ Format * format;
+ ///
+ Format * from;
+ ///
+ string command;
///
- int in_degree;
+ FormatPair(Format * f1, Format * f2, string c)
+ : format(f1), from(f2), command(c) {}
};
///
void Add(string const & from, string const & to,
string const & command, string const & flags);
///
+
+ ///
static
- std::vector<std::pair<string, string> > const
+ std::vector<FormatPair> const
GetReachable(string const & from,
bool only_viewable = false);
///
static
+ bool IsReachable(string const & from, string const & target_format);
+ ///
+ static
bool Convert(Buffer const * buffer, string const & from_file,
string const & to_file, string const & using_format,
string * view_file = 0);
///
static
string const dvips_options(Buffer const * buffer);
+ ///
+ static
+ void init();
private:
///
static