}
-void Text::acceptChanges(BufferParams const & bparams)
+void Text::acceptChanges()
{
+ BufferParams const & bparams = owner_->buffer().params();
lyx::acceptChanges(pars_, bparams);
deleteEmptyParagraphMechanism(0, pars_.size() - 1, bparams.trackChanges);
}
-void Text::rejectChanges(BufferParams const & bparams)
+void Text::rejectChanges()
{
+ BufferParams const & bparams = owner_->buffer().params();
pit_type pars_size = static_cast<pit_type>(pars_.size());
// first, reject changes within each individual paragraph
namespace lyx {
-class BufferParams;
class BufferView;
class CompletionList;
class CursorSlice;
/// accept or reject the selected change
void acceptOrRejectChanges(Cursor & cur, ChangeOp op);
/// accept the changes within the complete Text
- void acceptChanges(BufferParams const & bparams);
+ void acceptChanges();
/// reject the changes within the complete Text
- void rejectChanges(BufferParams const & bparams);
+ void rejectChanges();
/// returns true if par was empty and was removed
bool setCursor(Cursor & cur, pit_type par, pos_type pos,
void InsetText::acceptChanges()
{
- text_.acceptChanges(buffer().params());
+ text_.acceptChanges();
}
void InsetText::rejectChanges()
{
- text_.rejectChanges(buffer().params());
+ text_.rejectChanges();
}