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
30 /// Set \param data using \param font and \param toggle. Return success.
31 bool font2string(Font const & font, bool toggle, std::string & data);
33 /// Set \param font and \param toggle using \param data. Return success.
34 bool string2font(std::string const & data, Font & font, bool & toggle);
36 /** Returns the current freefont, encoded as a std::string to be passed to the
39 std::string const freefont2string();
41 Point getPos(BufferView const & bv, DocIterator const & dit, bool boundary);
50 CurStatus status(BufferView const * bv, DocIterator const & dit);
53 Point coordOffset(BufferView const & bv, DocIterator const & dit, bool boundary);
55 /// Moves cursor to the next inset with one of the given codes.
56 void gotoInset(BufferView * bv, std::vector<Inset_code> const & codes,
59 /// Moves cursor to the next inset with given code.
60 void gotoInset(BufferView * bv, Inset_code code, bool same_content);
62 /// Looks for next inset with one of the the given code
63 bool findInset(DocIterator & dit, std::vector<Inset_code> const & codes,
66 /// Looks for next inset with the given code
67 void findInset(DocIterator & dit, Inset_code code, bool same_content);
70 } // namespace bv_funcs