]> git.lyx.org Git - lyx.git/blob - src/lyx_cb.h
* QPrefsDialog::QPrefsDialog():
[lyx.git] / src / lyx_cb.h
1 // -*- C++ -*-
2 /**
3  * \file lyx_cb.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 LYX_CB_H
13 #define LYX_CB_H
14
15 #include <string>
16
17 class Buffer;
18 class BufferView;
19
20 ///
21 extern bool quitting;
22
23 ///
24 bool MenuWrite(Buffer * buffer);
25 /// write the given file, or ask if no name given
26 bool WriteAs(Buffer * buffer, std::string const & filename = std::string());
27 ///
28 void QuitLyX(bool noask);
29 ///
30 void AutoSave(BufferView * bv);
31 ///
32 void NewFile(BufferView * bv, std::string const & filename);
33 ///
34 void InsertAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
35 ///
36 std::string getContentsOfAsciiFile(BufferView * bv, std::string const & f, bool asParagraph);
37 ///
38 void Reconfigure(BufferView * bv);
39 #endif