X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FExternalSupport.h;h=b28e42304e275e0f3d742c589a50072d0037aced;hb=e28331ed63062dea10d0a21b9ec12034b4b17b9a;hp=1e5bbc5583852f9b23ec176bc32f8f098b2bdf92;hpb=fa29d7ee984e9240554f093862fe53239f776582;p=lyx.git diff --git a/src/insets/ExternalSupport.h b/src/insets/ExternalSupport.h index 1e5bbc5583..b28e42304e 100644 --- a/src/insets/ExternalSupport.h +++ b/src/insets/ExternalSupport.h @@ -13,14 +13,14 @@ #ifndef EXTERNALSUPPORT_H #define EXTERNALSUPPORT_H -#include -#include +#include "support/docstream.h" + +namespace lyx { class Buffer; class ExportData; class InsetExternalParams; -namespace lyx { namespace external { class Template; @@ -34,6 +34,12 @@ void editExternal(InsetExternalParams const & params, Buffer const & buffer); +enum Substitute { + ALL, + PATHS, + ALL_BUT_PATHS +}; + /** Substitute meta-variables in string \p s, making use of \p params and \p buffer. If \p external_in_tmpdir is true, all files are assumed to be in the @@ -43,21 +49,24 @@ void editExternal(InsetExternalParams const & params, */ std::string const doSubstitution(InsetExternalParams const & params, Buffer const & buffer, - std::string const & s, - bool external_in_tmpdir = false); + std::string const & s, + bool use_latex_path, + bool external_in_tmpdir = false, + Substitute what = ALL); /** Write the output for a specific file format and generate any external data files. - If \param external_in_tmpdir == true, then the generated file is + 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 &, + odocstream &, ExportData &, - bool external_in_tmpdir = false); + bool external_in_tmpdir, + bool external_in_comment); } // namespace external } // namespace lyx