]> git.lyx.org Git - lyx.git/blob - src/text_funcs.h
Point fix, earlier forgotten
[lyx.git] / src / text_funcs.h
1 // -*- C++ -*-
2 /**
3  * \file text_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 John Levon
9  *
10  * Full author contact details are available in file CREDITS.
11  *
12  * This file contains some utility functions for actually mutating
13  * the text contents of a document 
14  */
15
16 #ifndef TEXT_FUNCS_H
17 #define TEXT_FUNCS_H
18
19 #include "support/types.h"
20
21 class LyXCursor;
22 class ParagraphList;
23
24
25 // do no use LyXText or BufferView here
26
27
28 ///
29 bool transposeChars(LyXCursor const & cursor);
30 ///
31 void cursorLeftOneWord(LyXCursor &, ParagraphList const &);
32 ///
33 void cursorRightOneWord(LyXCursor &, ParagraphList const &);
34
35 // Select current word. This depends on behaviour of
36 // CursorLeftOneWord(), so it is patched as well.
37 void getWord(LyXCursor & from, LyXCursor & to, lyx::word_location const loc,
38         ParagraphList const & pars);
39
40 #endif // TEXT_FUNCS_H