]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalSupport.h
reorder entries
[lyx.git] / src / insets / ExternalSupport.h
index b28e42304e275e0f3d742c589a50072d0037aced..5c5619c13b84520f582c70ba455c4d3ced9cabe3 100644 (file)
 #ifndef EXTERNALSUPPORT_H
 #define EXTERNALSUPPORT_H
 
-#include "support/docstream.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
@@ -37,7 +46,8 @@ void editExternal(InsetExternalParams const & params,
 enum Substitute {
        ALL,
        PATHS,
-       ALL_BUT_PATHS
+       ALL_BUT_PATHS,
+       FORMATS
 };
 
 /** Substitute meta-variables in string \p s, making use of \p params and
@@ -60,13 +70,13 @@ 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.
 */
-int writeExternal(InsetExternalParams const &,
-                 std::string const & format,
-                 Buffer const &,
-                 odocstream &,
-                 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