2 /* \file buffer_funcs.h
3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Lars Gullik Bjønnes
7 * \author Alfredo Braunstein
9 * Full author contact details are available in file CREDITS
12 #ifndef BUFFER_FUNCS_H
13 #define BUFFER_FUNCS_H
22 * Loads a LyX file \c filename into \c Buffer
23 * and \return success status.
25 bool loadLyXFile(Buffer *, string const & filename);
27 /* Make a new file (buffer) with name \c filename based on a template
28 * named \c templatename
30 Buffer * newFile(string const & filename, string const & templatename,
31 bool isNamed = false);
33 ///return the format of the buffer on a string
34 string const BufferFormat(Buffer const & buffer);
36 void bufferErrors(Buffer const &, TeXErrors const &);
38 void bufferErrors(Buffer const &, ErrorList const &);
40 #endif // BUFFER_FUNCS_H