]> git.lyx.org Git - lyx.git/blob - src/callback.h
SCons: msvc does not need this /TP option any more after we rename .C => .cpp. Also...
[lyx.git] / src / callback.h
1 // -*- C++ -*-
2 /**
3  * \file callback.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author Lars Gullik Bjønnes
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef CALLBACK_H
13 #define CALLBACK_H
14
15 #include "support/docstring.h"
16
17 namespace lyx {
18
19 class Buffer;
20 class BufferView;
21
22 namespace frontend {
23 class LyXView;
24 }
25
26 ///
27 extern bool quitting;
28
29 ///
30 bool menuWrite(Buffer * buffer);
31 /// write the given file, or ask if no name given
32 bool writeAs(Buffer * buffer, std::string const & filename = std::string());
33 ///
34 void autoSave(BufferView * bv);
35 ///
36 void newFile(frontend::LyXView & lv, std::string const & filename);
37 ///
38 void insertPlaintextFile(BufferView * bv, std::string const & f, bool asParagraph);
39 /// read plain text file (if \p f is empty, prompt for a filename)
40 docstring const getContentsOfPlaintextFile(BufferView * bv,
41                 std::string const & f, bool asParagraph);
42 ///
43 void reconfigure(frontend::LyXView & lv);
44
45 } // namespace lyx
46
47 #endif