Font const & font, Font const & display_font);
/** Needed to propagate font changes to all text cells of insets
- * that are not allowed inside a font change (bug 1973).
+ * that are not allowed inside a font change (bugs 1973, 6919).
* Must not be called if \p pos denotes an ordinary character or an
* inset that is alowed inside a font change.
- * FIXME: This should be removed, see documentation of noFontChange
- * in insetbase.h
*/
void setInsetFont(BufferView const & bv, pit_type pit, pos_type pos,
Font const & font, bool toggleall = false);
///
docstring asString(pit_type beg, pit_type end,
int options = AS_STR_NONE) const;
+ /// Appends a possibly abbreviated representation of our text
+ /// to \param os, where \param maxlen defines the maximum size
+ /// of \param os. If \param shorten is true, then we will shorten
+ /// \param os to maxlen chars and replace the final three by "...,
+ /// if \param os is longer than maxlen chars.
+ void forToc(docstring & os, size_t maxlen, bool shorten = true) const;
/// insert a character at cursor position
/// FIXME: replace Cursor with DocIterator.
/* these things are for search and replace */
/// needed to insert the selection
- void insertStringAsLines(DocIterator const & dit, docstring const & str,
+ void insertStringAsLines(Cursor & cur, docstring const & str,
Font const & font);
/// needed to insert the selection
- void insertStringAsParagraphs(DocIterator const & dit, docstring const & str,
+ void insertStringAsParagraphs(Cursor & cur, docstring const & str,
Font const & font);
/// access to our paragraphs