2003-04-02 00:51:46 +00:00
|
|
|
|
/**
|
|
|
|
|
* \file text_funcs.h
|
|
|
|
|
* This file is part of LyX, the document processor.
|
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
|
*
|
|
|
|
|
* \author Lars Gullik Bj<EFBFBD>nnes
|
|
|
|
|
* \author John Levon
|
|
|
|
|
*
|
|
|
|
|
* Full author contact details are available in file CREDITS
|
|
|
|
|
*
|
|
|
|
|
* This file contains some utility functions for actually mutating
|
|
|
|
|
* the text contents of a document
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef TEXT_FUNCS_H
|
|
|
|
|
#define TEXT_FUNCS_H
|
|
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
2003-07-01 11:51:20 +00:00
|
|
|
|
#include "support/types.h"
|
|
|
|
|
|
2003-04-02 00:51:46 +00:00
|
|
|
|
class LyXCursor;
|
2003-07-01 11:51:20 +00:00
|
|
|
|
class ParagraphList;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// do no use LyXText or BufferView here
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///
|
|
|
|
|
bool transposeChars(LyXCursor const & cursor);
|
|
|
|
|
///
|
|
|
|
|
void cursorLeftOneWord(LyXCursor &, ParagraphList const &);
|
|
|
|
|
///
|
|
|
|
|
void cursorRightOneWord(LyXCursor &, ParagraphList const &);
|
2003-04-02 00:51:46 +00:00
|
|
|
|
|
2003-07-01 11:51:20 +00:00
|
|
|
|
// Select current word. This depends on behaviour of
|
|
|
|
|
// CursorLeftOneWord(), so it is patched as well.
|
|
|
|
|
void getWord(LyXCursor & from, LyXCursor & to, lyx::word_location const loc,
|
|
|
|
|
ParagraphList const & pars);
|
2003-04-02 00:51:46 +00:00
|
|
|
|
|
|
|
|
|
#endif // TEXT_FUNCS_H
|