+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
+ master buffers temp path, and the mangled filename is used.
+ Otherwise, the output filename (absolute or relative to the parent
+ document, as written in the .lyx file) is used.
+*/