]> git.lyx.org Git - lyx.git/blob - src/text_funcs.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / text_funcs.h
1 /**
2  * \file text_funcs.h
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author Lars Gullik Bjønnes
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  *
11  * This file contains some utility functions for actually mutating
12  * the text contents of a document 
13  */
14
15 #ifndef TEXT_FUNCS_H
16 #define TEXT_FUNCS_H
17
18 #include <config.h>
19
20 #include "support/types.h"
21
22 class LyXCursor;
23 class ParagraphList;
24
25
26 // do no use LyXText or BufferView here
27
28
29 ///
30 bool transposeChars(LyXCursor const & cursor);
31 ///
32 void cursorLeftOneWord(LyXCursor &, ParagraphList const &);
33 ///
34 void cursorRightOneWord(LyXCursor &, ParagraphList const &);
35
36 // Select current word. This depends on behaviour of
37 // CursorLeftOneWord(), so it is patched as well.
38 void getWord(LyXCursor & from, LyXCursor & to, lyx::word_location const loc,
39         ParagraphList const & pars);
40
41 #endif // TEXT_FUNCS_H