Font const & font, bool toggleall = false);
/// what you expect when pressing \<enter\> at cursor position
+ /// \param inverse_logic if false, the same layout is set for the
+ /// new paragraph if the layout is an environment; if true, the
+ /// same layout is set if it is not an environment
void breakParagraph(Cursor & cur, bool inverse_logic = false);
/// set layout over selection
///
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.
/// accept the changes within the complete ParagraphList
void acceptChanges(ParagraphList & pars, BufferParams const & bparams);
+/// reject the changes within the complete ParagraphList
+void rejectChanges(ParagraphList & pars, BufferParams const & bparams);
+
} // namespace lyx
#endif // TEXT_H