lyx_mirror/src/callback.h
Abdelrazak Younes 59aa19e920 * callback.cpp: newFile() takes a LyXView instead of a BufferView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19564 a592a061-630c-0410-9148-cb99ea01b6c8
2007-08-14 15:32:58 +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);
} // namespace lyx
#endif