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.
7 * \author Lars Gullik Bjønnes
8 * \author Jean-Marc Lasgouttes
9 * \author Angus Leeming
11 * Full author contact details are available in file CREDITS.
14 #ifndef BUFFERVIEW_FUNCS_H
15 #define BUFFERVIEW_FUNCS_H
29 /** Set \param data using \param font and \param toggle.
30 * If successful, returns true.
32 bool font2string(LyXFont const & font, bool toggle, std::string & data);
33 /** Set \param font and \param toggle using \param data.
34 * If successful, returns true.
36 bool string2font(std::string const & data, LyXFont & font, bool & toggle);
37 /** Returns the current freefont, encoded as a std::string to be passed to the
40 std::string const freefont2string();
43 /// what type of depth change to make
49 /// Returns whether something would be changed by changeDepth
50 bool changeDepthAllowed(LCursor & cur, LyXText * text, DEPTH_CHANGE);
52 }; // namespace bv_funcs