2003-06-20 12:46:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* \file buffer_funcs.h
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* \author Lars Gullik Bjønnes
|
|
|
|
* \author Alfredo Braunstein
|
|
|
|
*
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
*/
|
|
|
|
|
2003-06-24 20:42:15 +00:00
|
|
|
#ifndef BUFFER_FUNCS_H
|
|
|
|
#define BUFFER_FUNCS_H
|
|
|
|
|
2003-06-20 12:46:28 +00:00
|
|
|
#include "LString.h"
|
|
|
|
|
|
|
|
class Buffer;
|
2003-06-24 20:42:15 +00:00
|
|
|
class TeXErrors;
|
|
|
|
class ErrorList;
|
2003-06-20 12:46:28 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Loads a LyX file \c filename into \c Buffer
|
|
|
|
* and \return success status.
|
|
|
|
*/
|
|
|
|
bool loadLyXFile(Buffer *, string const & filename);
|
|
|
|
|
|
|
|
/* Make a new file (buffer) with name \c filename based on a template
|
|
|
|
* named \c templatename
|
|
|
|
*/
|
|
|
|
Buffer * newFile(string const & filename, string const & templatename,
|
|
|
|
bool isNamed = false);
|
2003-06-24 20:42:15 +00:00
|
|
|
|
|
|
|
///return the format of the buffer on a string
|
|
|
|
string const BufferFormat(Buffer const & buffer);
|
|
|
|
|
2003-07-07 08:37:02 +00:00
|
|
|
void bufferErrors(Buffer const &, TeXErrors const &);
|
2003-06-24 20:42:15 +00:00
|
|
|
|
2003-07-07 08:37:02 +00:00
|
|
|
void bufferErrors(Buffer const &, ErrorList const &);
|
2003-06-24 20:42:15 +00:00
|
|
|
|
|
|
|
#endif // BUFFER_FUNCS_H
|