lyx_mirror/src/insets/ExternalSupport.h
Angus Leeming 1e8ce61177 * Rename InsetExternal::Params as InsetExternalParams. Consistent with
other Params structs. Allows it to be forward delclared.
* Unclutter insetexternal.[Ch] by moving helper functions to new files
ExternalSupport.[Ch].
* Fix export to LaTeX and PDFLaTeX without breaking use of the temp dir.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7874 a592a061-630c-0410-9148-cb99ea01b6c8
2003-10-07 20:25:10 +00:00

57 lines
1.3 KiB
C++

// -*- 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 <iosfwd>
#include <string>
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