2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
26 Command(string const & f, string const & t, string const & c,
28 : from(f), to(t), command(c), original_dir(o) {}
40 std::vector<Command>::iterator previous;
45 Format() : in_degree(0) {}
47 Format(string const & n);
62 void Add(string const & name);
65 void SetViewer(string const & name, string const & command);
68 bool View(string const & filename);
71 Format * GetFormat(string const & name);
74 string PrettyName(string const & name);
78 std::map<string, Format> formats;
85 void Add(string const & from, string const & to,
86 string const & command, string const & flags);
89 std::vector<std::pair<string, string> > GetReachable(string const & from,
90 bool only_viewable = false);
93 bool convert(Buffer * buffer, string const & from_file,
94 string const & to_format);
97 string SplitFormat(string const & str, string & format);
101 bool runLaTeX(Buffer * buffer, string const & command);
104 std::vector<Command> commands;