mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
59aa19e920
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19564 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);
|
|
|
|
} // namespace lyx
|
|
|
|
#endif
|