X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FExternalSupport.h;h=5c5619c13b84520f582c70ba455c4d3ced9cabe3;hb=87a7f728ca9b8b4d358cf06de980f61b67a927ac;hp=1000735fb9208cdaf3fedf11848152c6687fb08f;hpb=0f4c5df9f45e71ac52c59e9d6022a1bce5c8183b;p=lyx.git diff --git a/src/insets/ExternalSupport.h b/src/insets/ExternalSupport.h index 1000735fb9..5c5619c13b 100644 --- a/src/insets/ExternalSupport.h +++ b/src/insets/ExternalSupport.h @@ -13,16 +13,25 @@ #ifndef EXTERNALSUPPORT_H #define EXTERNALSUPPORT_H -#include "texstream.h" +#include + 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 @@ -61,7 +70,7 @@ std::string const doSubstitution(InsetExternalParams const & params, 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 &,