#ifndef EXTERNALSUPPORT_H
#define EXTERNALSUPPORT_H
-#include <iosfwd>
#include <string>
+
+namespace lyx {
+
class Buffer;
class ExportData;
class InsetExternalParams;
+class otexstream;
-namespace lyx {
namespace external {
+enum RetVal {
+ SUCCESS,
+ NOT_NEEDED,
+ FAILURE,
+ KILLED
+};
+
class Template;
/// A shorthand, helper function
enum Substitute {
ALL,
PATHS,
- ALL_BUT_PATHS
+ ALL_BUT_PATHS,
+ FORMATS
};
/** Substitute meta-variables in string \p s, making use of \p params and
If \p external_in_tmpdir == true, then the generated file is
place in the buffer's temporary directory.
*/
-int writeExternal(InsetExternalParams const &,
- std::string const & format,
- Buffer const &,
- std::ostream &,
- ExportData &,
- bool external_in_tmpdir,
- bool external_in_comment);
+RetVal writeExternal(InsetExternalParams const &,
+ std::string const & format,
+ Buffer const &,
+ otexstream &,
+ ExportData &,
+ bool external_in_tmpdir,
+ bool dryrun);
} // namespace external
} // namespace lyx