#ifndef EXTERNALSUPPORT_H
#define EXTERNALSUPPORT_H
-#include "texstream.h"
+#include <string>
+
namespace lyx {
class Buffer;
class ExportData;
class InsetExternalParams;
+class otexstream;
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.
*/
-void writeExternal(InsetExternalParams const &,
+RetVal writeExternal(InsetExternalParams const &,
std::string const & format,
Buffer const &,
otexstream &,