]> git.lyx.org Git - lyx.git/blob - src/lyx_cb.h
Alfredo's second patch
[lyx.git] / src / lyx_cb.h
1 // -*- C++ -*-
2 #ifndef LYX_CB_H
3 #define LYX_CB_H
4
5 #include "LString.h"
6
7 class Buffer;
8 class BufferView;
9
10 ///
11 extern bool quitting;
12
13 ///
14 void ShowMessage(Buffer const * buf,
15                  string const & msg1,
16                  string const & msg2 = string(),
17                  string const & msg3 = string());
18 ///
19 bool MenuWrite(BufferView * bv, Buffer * buffer);
20 /// write the given file, or ask if no name given
21 bool WriteAs(BufferView * bv, Buffer * buffer,
22              string const & filename = string());
23 ///
24 void QuitLyX();
25 ///
26 void AutoSave(BufferView * bv);
27 ///
28 Buffer * NewFile(string const & filename);
29 ///
30 void InsertAsciiFile(BufferView * bv, string const & f, bool asParagraph);
31 ///
32 string getContentsOfAsciiFile(BufferView * bv, string const & f, bool asParagraph);
33 ///
34 string const getPossibleLabel(BufferView const & bv);
35 ///
36 void Reconfigure(BufferView * bv);
37 #endif