]> git.lyx.org Git - lyx.git/blob - src/text_funcs.h
ws changes only
[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 "ParagraphList_fwd.h"
20 #include "support/types.h"
21
22 class LyXCursor;
23 class LyXText;
24
25
26 // do no use LyXText or BufferView here
27
28
29 ///
30 bool transposeChars(LyXText &, LyXCursor const & cursor);
31 ///
32 void cursorLeftOneWord(LyXText &, LyXCursor &, ParagraphList const &);
33 ///
34 void cursorRightOneWord(LyXText &, LyXCursor &, ParagraphList const &);
35
36 // Select current word. This depends on behaviour of
37 // CursorLeftOneWord(), so it is patched as well.
38 void getWord(LyXText &, LyXCursor & from, LyXCursor & to, lyx::word_location const loc,
39         ParagraphList const & pars);
40
41 #endif // TEXT_FUNCS_H