extern char ascii_type;
extern bool math_insert_greek(BufferView *, char);
-extern void sigchldhandler(pid_t pid, int * status);
+extern void sigchldchecker(pid_t pid, int * status);
extern int bibitemMaxWidth(BufferView *, LyXFont const &);
bool paste_internally = false;
if (button == 2
&& bv_->text->selection.set()) {
- owner_->getLyXFunc()->Dispatch(LFUN_COPY);
+ owner_->getLyXFunc()->dispatch(LFUN_COPY);
paste_internally = true;
}
// insert this
if (button == 2) {
if (paste_internally)
- owner_->getLyXFunc()->Dispatch(LFUN_PASTE);
+ owner_->getLyXFunc()->dispatch(LFUN_PASTE);
else
- owner_->getLyXFunc()->Dispatch(LFUN_PASTESELECTION,
+ owner_->getLyXFunc()->dispatch(LFUN_PASTESELECTION,
"paragraph");
selection_possible = false;
return;
if (pid == -1) // error find out what is wrong
; // ignore it for now.
else if (pid > 0)
- sigchldhandler(pid, &status);
+ sigchldchecker(pid, &status);
updatelist.update(bv_);
void BufferView::Pimpl::toggleSelection(bool b)
{
- if (screen_.get())
+ if (screen_.get()) {
+ if (bv_->theLockingInset())
+ bv_->theLockingInset()->toggleSelection(bv_, b);
screen_->toggleSelection(bv_->text, bv_, b);
+ }
}
}
break;
- case LFUN_OPENSTUFF:
+ case LFUN_INSET_TOGGLE:
{
LyXText * lt = bv_->getLyXText();
hideCursor();
beforeChange(lt);
update(lt, BufferView::SELECT|BufferView::FITCUR);
- lt->openStuff(bv_);
+ lt->toggleInset(bv_);
update(lt, BufferView::SELECT|BufferView::FITCUR);
setState();
}
// if we are in a locking inset we should try to insert the
// inset there otherwise this is a illegal function now
if (bv_->theLockingInset()) {
- if (bv_->theLockingInset()->insertInsetAllowed(inset))
+ if (bv_->theLockingInset()->insetAllowed(inset))
return bv_->theLockingInset()->insertInset(bv_, inset);
return false;
}