4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
8 * \author Lars Gullik Bjønnes
9 * \author Alfredo Braunstein
11 * Full author contact details are available in file CREDITS.
17 #include "support/types.h"
33 std::vector<std::string> const availableSelections(Buffer const & buffer);
36 void cutSelection(LCursor & cur, bool doclear, bool realcut);
39 * Sets the selection from the current cursor position to length
40 * characters to the right. No safety checks.
42 void setSelectionRange(LCursor & cur, lyx::pos_type length);
43 /// simply replace using the font of the first selected character
44 void replaceSelectionWithString(LCursor & cur, std::string const & str);
45 /// replace selection helper
46 void replaceSelection(LCursor & cur);
49 void cutSelection(LCursor & cur, bool doclear = true, bool realcut = true);
51 void copySelection(LCursor & cur);
53 void pasteSelection(LCursor & cur, size_t sel_index = 0);
55 /** Needed to switch between different classes. This works
56 for a list of paragraphs beginning with the specified par
57 return value is the number of wrong conversions.
59 int SwitchLayoutsBetweenClasses(lyx::textclass_type c1,
60 lyx::textclass_type c2,
64 bool checkPastePossible();
66 // only used by the spellchecker
67 void replaceWord(LCursor & cur, std::string const & replacestring);