/// return the lyxtext we are using
LyXText * getLyXText() const;
- /// return the parent language of the given inset
- Language const * getParentLanguage(InsetOld * inset) const;
-
/// simple replacing. Use the font of the first selected character
void replaceSelectionWithString(std::string const & str);
LyXText * text() const;
///
void setCursor(ParIterator const & par, lyx::pos_type pos);
- ///
+ /* Sets the selection. When \c backwards == false, set anchor
+ * to \c cur and cursor to \c cur + \c length. When \c
+ * backwards == true, set anchor to \c cur and cursor to \c
+ * cur + \c length.
+ */
void putSelectionAt(DocIterator const & cur,
int length, bool backwards);