lyx_mirror/src/callback.h
Bo Peng b762358eec Lyx now starts and asks for reconfigure if no textclass is found (bug 2829)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20522 a592a061-630c-0410-9148-cb99ea01b6c8
2007-09-26 19:36:09 +00:00

48 lines
1.0 KiB
C++

// -*- C++ -*-
/**
* \file callback.h
* This file is part of LyX, the document processor.
* Licence details can be found in the file COPYING.
*
* \author Lars Gullik Bjønnes
*
* Full author contact details are available in file CREDITS.
*/
#ifndef CALLBACK_H
#define CALLBACK_H
#include "support/docstring.h"
namespace lyx {
class Buffer;
class BufferView;
namespace frontend {
class LyXView;
}
///
extern bool quitting;
///
bool menuWrite(Buffer * buffer);
/// write the given file, or ask if no name given
bool writeAs(Buffer * buffer, std::string const & filename = std::string());
///
void autoSave(BufferView * bv);
///
void newFile(frontend::LyXView & lv, std::string const & filename);
///
void insertPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph);
/// read plain text file (if \p f is empty, prompt for a filename)
docstring const getContentsOfPlaintextFile(BufferView * bv,
std::string const & f, bool asParagraph);
///
void reconfigure(frontend::LyXView & lv, std::string const & option);
} // namespace lyx
#endif