X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FText3.cpp;h=517fcd28cf968859a3ba672897d91d55f1f9ec84;hb=f8f5a7b28d4c6fb432055911b81d01505696e66b;hp=595c0343a5d443b62ff95c97b9494aa76f3ccb69;hpb=f54ef5c1739f18fe2cdd474a9d0e30a96e506797;p=features.git diff --git a/src/Text3.cpp b/src/Text3.cpp index 595c0343a5..517fcd28cf 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -1,5 +1,5 @@ /** - * \file text3.cpp + * \file Text3.cpp * This file is part of LyX, the document processor. * Licence details can be found in the file COPYING. * @@ -473,7 +473,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) recUndo(cur, pit, pit + 1); cur.finishUndo(); swap(pars_[pit], pars_[pit + 1]); - updateLabels(cur.buffer()); + cur.buffer().updateLabels(); needsUpdate = true; ++cur.pit(); break; @@ -484,7 +484,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) recUndo(cur, pit - 1, pit); cur.finishUndo(); swap(pars_[pit], pars_[pit - 1]); - updateLabels(cur.buffer()); + cur.buffer().updateLabels(); --cur.pit(); needsUpdate = true; break; @@ -510,14 +510,14 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) par.params().startOfAppendix(start); // we can set the refreshing parameters now - updateLabels(cur.buffer()); + cur.buffer().updateLabels(); break; } case LFUN_WORD_DELETE_FORWARD: - if (cur.selection()) { + if (cur.selection()) cutSelection(cur, true, false); - } else + else deleteWordForward(cur); finishChange(cur, false); break; @@ -1417,7 +1417,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) cur.posForward(); // Some insets are numbered, others are shown in the outline pane so // let's update the labels and the toc backend. - updateLabels(bv->buffer()); + bv->buffer().updateLabels(); break; case LFUN_TABULAR_INSERT: @@ -1471,7 +1471,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) // date metrics. FuncRequest cmd_caption(LFUN_CAPTION_INSERT); doInsertInset(cur, cur.text(), cmd_caption, true, false); - updateLabels(bv->buffer()); + bv->buffer().updateLabels(); cur.updateFlags(Update::Force); // FIXME: When leaving the Float (or Wrap) inset we should // delete any empty paragraph left above or below the @@ -1832,26 +1832,26 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd) case LFUN_OUTLINE_UP: outline(OutlineUp, cur); setCursor(cur, cur.pit(), 0); - updateLabels(cur.buffer()); + cur.buffer().updateLabels(); needsUpdate = true; break; case LFUN_OUTLINE_DOWN: outline(OutlineDown, cur); setCursor(cur, cur.pit(), 0); - updateLabels(cur.buffer()); + cur.buffer().updateLabels(); needsUpdate = true; break; case LFUN_OUTLINE_IN: outline(OutlineIn, cur); - updateLabels(cur.buffer()); + cur.buffer().updateLabels(); needsUpdate = true; break; case LFUN_OUTLINE_OUT: outline(OutlineOut, cur); - updateLabels(cur.buffer()); + cur.buffer().updateLabels(); needsUpdate = true; break;