mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 02:35:20 +00:00
b762358eec
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20522 a592a061-630c-0410-9148-cb99ea01b6c8
48 lines
1.0 KiB
C++
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
|