]> git.lyx.org Git - lyx.git/blob - src/bufferview_funcs.h
Add support for the jurabib package (www.jurabib.org), a package for elegant BibTeX...
[lyx.git] / src / bufferview_funcs.h
1 // -*- C++ -*-
2 /**
3  * \file bufferview_funcs.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  * \author Jean-Marc Lasgouttes
9  * \author Angus Leeming
10  *
11  * Full author contact details are available in file CREDITS.
12  */
13
14 #ifndef BUFFERVIEW_FUNCS_H
15 #define BUFFERVIEW_FUNCS_H
16
17 #include <string>
18
19 class LCursor;
20 class LyXFont;
21 class LyXText;
22
23
24 namespace bv_funcs {
25
26 /// Set \param data using \param font and \param toggle. Return success.
27 bool font2string(LyXFont const & font, bool toggle, std::string & data);
28
29 /// Set \param font and \param toggle using \param data. Return success.
30 bool string2font(std::string const & data, LyXFont & font, bool & toggle);
31
32 /** Returns the current freefont, encoded as a std::string to be passed to the
33  *  frontends.
34  */
35 std::string const freefont2string();
36
37
38 /// what type of depth change to make
39 enum DEPTH_CHANGE {
40         INC_DEPTH,
41         DEC_DEPTH
42 };
43
44 /// Returns whether something would be changed by changeDepth
45 bool changeDepthAllowed(LCursor & cur, LyXText * text, DEPTH_CHANGE);
46
47 } // namespace bv_funcs
48
49 #endif