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 * ====================================================== */
28 Command(string const & f, string const & t, string const & c,
30 : from(f), to(t), command(c), original_dir(o) {}
42 std::vector<Command>::iterator previous;
49 Format() : in_degree(0) {}
51 Format(string const & n);
67 void Add(string const & name);
70 void SetViewer(string const & name, string const & command);
73 bool View(Buffer * buffer, string const & filename);
76 Format * GetFormat(string const & name);
79 string const PrettyName(string const & name);
83 std::map<string, Format> formats;
91 void Add(string const & from, string const & to,
92 string const & command, string const & flags);
95 std::vector<std::pair<string, string> > const
96 GetReachable(string const & from,
97 bool only_viewable = false);
100 bool Convert(Buffer * buffer, string const & from_file,
101 string const & to_file, string const & using_format);
103 string const SplitFormat(string const & str, string & format);
106 string dvi_papersize(Buffer * buffer);
109 string dvips_options(Buffer * buffer);
113 bool runLaTeX(Buffer * buffer, string const & command);
116 std::vector<Command> commands;