// -*- C++ -*- /** * \file ExternalSupport.h * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * * \author Asger Alstrup Nielsen * \author Angus Leeming * * Full author contact details are available in file CREDITS. */ #ifndef EXTERNALSUPPORT_H #define EXTERNALSUPPORT_H #include #include class Buffer; class InsetExternalParams; namespace lyx { namespace external { class Template; /// A shorthand, helper function Template const * getTemplatePtr(InsetExternalParams const & params); /// Invoke the external editor. void editExternal(InsetExternalParams const & params, Buffer const & buffer); /// Substitute meta-variables in string s, making use of params and buffer. std::string const doSubstitution(InsetExternalParams const & params, Buffer const & buffer, std::string const & s); /** 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 place in the buffer's temporary directory. */ int writeExternal(InsetExternalParams const &, std::string const & format, Buffer const &, std::ostream &, bool external_in_tmpdir = false); } // namespace external } // namespace lyx #endif // NOT EXTERNALSUPPORT_H