2003-08-23 00:17:00 +00:00
|
|
|
|
// -*- C++ -*-
|
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
|
|
|
|
|
*
|
2003-08-23 00:17:00 +00:00
|
|
|
|
* Full author contact details are available in file CREDITS.
|
2003-04-02 00:51:46 +00:00
|
|
|
|
*
|
|
|
|
|
* This file contains some utility functions for actually mutating
|
2003-09-09 18:27:24 +00:00
|
|
|
|
* the text contents of a document
|
2003-04-02 00:51:46 +00:00
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef TEXT_FUNCS_H
|
|
|
|
|
#define TEXT_FUNCS_H
|
|
|
|
|
|
2003-09-06 12:36:58 +00:00
|
|
|
|
#include "ParagraphList_fwd.h"
|
2003-07-01 11:51:20 +00:00
|
|
|
|
#include "support/types.h"
|
|
|
|
|
|
2003-04-02 00:51:46 +00:00
|
|
|
|
class LyXCursor;
|
2003-10-09 10:52:12 +00:00
|
|
|
|
class LyXText;
|
2003-07-01 11:51:20 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// do no use LyXText or BufferView here
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
///
|
2003-10-09 10:52:12 +00:00
|
|
|
|
bool transposeChars(LyXText &, LyXCursor const & cursor);
|
2003-07-01 11:51:20 +00:00
|
|
|
|
///
|
2003-10-09 10:52:12 +00:00
|
|
|
|
void cursorLeftOneWord(LyXText &, LyXCursor &, ParagraphList const &);
|
2003-07-01 11:51:20 +00:00
|
|
|
|
///
|
2003-10-09 10:52:12 +00:00
|
|
|
|
void cursorRightOneWord(LyXText &, 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.
|
2003-10-09 10:52:12 +00:00
|
|
|
|
void getWord(LyXText &, LyXCursor & from, LyXCursor & to, lyx::word_location const loc,
|
2003-07-01 11:51:20 +00:00
|
|
|
|
ParagraphList const & pars);
|
2003-04-02 00:51:46 +00:00
|
|
|
|
|
|
|
|
|
#endif // TEXT_FUNCS_H
|