cur.message(_("Paste"));
cap::replaceSelection(cur);
if (cmd.argument().empty() && !theClipboard().isInternal())
- pasteClipboard(cur, bv->buffer()->errorList("Paste"));
+ pasteClipboard(cur, bv->buffer().errorList("Paste"));
else {
string const arg(to_utf8(cmd.argument()));
- pasteFromStack(cur, bv->buffer()->errorList("Paste"),
+ pasteFromStack(cur, bv->buffer().errorList("Paste"),
isStrUnsignedInt(arg) ?
convert<unsigned int>(arg) :
0);
}
- bv->buffer()->errors("Paste");
+ bv->buffer().errors("Paste");
cur.clearSelection(); // bug 393
finishUndo();
break;
// Derive layout number from given argument (string)
// and current buffer's textclass (number)
- TextClass const & tclass = bv->buffer()->params().getTextClass();
+ TextClass const & tclass = bv->buffer().params().getTextClass();
if (layout.empty())
layout = tclass.defaultLayoutName();
bool hasLayout = tclass.hasLayout(layout);
case LFUN_CLIPBOARD_PASTE:
cur.clearSelection();
- pasteClipboard(cur, bv->buffer()->errorList("Paste"),
+ pasteClipboard(cur, bv->buffer().errorList("Paste"),
cmd.argument() == "paragraph");
- bv->buffer()->errors("Paste");
+ bv->buffer().errors("Paste");
break;
case LFUN_PRIMARY_SELECTION_PASTE:
case LFUN_QUOTE_INSERT: {
Paragraph & par = cur.paragraph();
pos_type pos = cur.pos();
- BufferParams const & bufparams = bv->buffer()->params();
+ BufferParams const & bufparams = bv->buffer().params();
Layout_ptr const & style = par.layout();
if (!style->pass_thru
&& par.getFontSettings(bufparams, pos).language()->lang() != "hebrew") {
cap::copySelectionToStack();
cap::pasteSelection(bv->cursor(),
- bv->buffer()->errorList("Paste"));
- bv->buffer()->errors("Paste");
- bv->buffer()->markDirty();
+ bv->buffer().errorList("Paste"));
+ bv->buffer().errors("Paste");
+ bv->buffer().markDirty();
finishUndo();
} else {
lyx::dispatch(FuncRequest(LFUN_PRIMARY_SELECTION_PASTE, "paragraph"));
// inside it.
doInsertInset(cur, this, cmd, true, true);
cur.posRight();
- updateLabels(*bv->buffer());
+ updateLabels(bv->buffer());
break;
case LFUN_NOTE_INSERT:
case LFUN_CHARSTYLE_INSERT:
cur.posRight();
ParagraphList & pars = cur.text()->paragraphs();
- TextClass const & tclass = bv->buffer()->params().getTextClass();
+ TextClass const & tclass = bv->buffer().params().getTextClass();
// add a separate paragraph for the caption inset
pars.push_back(Paragraph());
break;
case LFUN_FLOAT_LIST: {
- TextClass const & tclass = bv->buffer()->params().getTextClass();
+ TextClass const & tclass = bv->buffer().params().getTextClass();
if (tclass.floats().typeExist(to_utf8(cmd.argument()))) {
recordUndo(cur);
if (cur.selection())
break;
case LFUN_INSET_DISSOLVE:
- enable = !isMainText(*cur.bv().buffer()) && cur.inset().nargs() == 1;
+ enable = !isMainText(cur.bv().buffer()) && cur.inset().nargs() == 1;
break;
case LFUN_CHANGE_ACCEPT: