]> git.lyx.org Git - lyx.git/blobdiff - src/insets/ExternalSupport.h
Fix bug #8782.
[lyx.git] / src / insets / ExternalSupport.h
index aa6c9894be2e3eb4a861d86fe3829dc25d8d5c82..1000735fb9208cdaf3fedf11848152c6687fb08f 100644 (file)
 #ifndef EXTERNALSUPPORT_H
 #define EXTERNALSUPPORT_H
 
-#include <iosfwd>
-#include <string>
+#include "texstream.h"
+
+namespace lyx {
 
 class Buffer;
 class ExportData;
 class InsetExternalParams;
 
-namespace lyx {
 namespace external {
 
 class Template;
@@ -37,7 +37,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
@@ -49,9 +50,10 @@ enum Substitute {
 */
 std::string const doSubstitution(InsetExternalParams const & params,
                                 Buffer const & buffer,
-                                 std::string const & s,
-                                 bool external_in_tmpdir = false,
-                                 Substitute what = ALL);
+                                std::string const & s,
+                                bool use_latex_path,
+                                bool external_in_tmpdir = false,
+                                Substitute what = ALL);
 
 
 /** Write the output for a specific file format
@@ -59,12 +61,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 &,
-                 std::ostream &,
-                 ExportData &,
-                 bool external_in_tmpdir = false);
+void writeExternal(InsetExternalParams const &,
+                  std::string const & format,
+                  Buffer const &,
+                  otexstream &,
+                  ExportData &,
+                  bool external_in_tmpdir,
+                  bool dryrun);
 
 } // namespace external
 } // namespace lyx