3 * \file ExternalSupport.h
4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Asger Alstrup Nielsen
8 * \author Angus Leeming
10 * Full author contact details are available in file CREDITS.
13 #ifndef EXTERNALSUPPORT_H
14 #define EXTERNALSUPPORT_H
20 class InsetExternalParams;
27 /// A shorthand, helper function
28 Template const * getTemplatePtr(InsetExternalParams const & params);
31 /// Invoke the external editor.
32 void editExternal(InsetExternalParams const & params,
33 Buffer const & buffer);
36 /// Substitute meta-variables in string s, making use of params and buffer.
37 std::string const doSubstitution(InsetExternalParams const & params,
38 Buffer const & buffer,
39 std::string const & s);
42 /** Write the output for a specific file format
43 and generate any external data files.
44 If \param external_in_tmpdir == true, then the generated file is
45 place in the buffer's temporary directory.
47 int writeExternal(InsetExternalParams const &,
48 std::string const & format,
51 bool external_in_tmpdir = false);
53 } // namespace external
56 #endif // NOT EXTERNALSUPPORT_H