X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2FInset.cpp;h=a0bbf32f4a2435af33456a26ef48a6b4de6e0618;hb=6f88e11da323c7159f80cf79d9f4486d3615e355;hp=cce0f327feb49aa1b9fbe56790e24ba918f31689;hpb=8b00b355ca7012ca703c78a8be89193ac6435fcb;p=lyx.git diff --git a/src/insets/Inset.cpp b/src/insets/Inset.cpp index cce0f327fe..a0bbf32f4a 100644 --- a/src/insets/Inset.cpp +++ b/src/insets/Inset.cpp @@ -194,7 +194,7 @@ Buffer & Inset::buffer() string const iname = insetName(lyxCode()); LYXERR0("Inset: " << this << " LyX Code: " << lyxCode() << " name: " << iname); - s << "LyX Code: " << lyxCode() << " name: " << iname; + s << "LyX Code: " << lyxCode() << " name: " << from_ascii(iname); LATTEST(false); throw ExceptionMessage(BufferException, from_ascii("Inset::buffer_ member not initialized!"), s.str()); @@ -258,7 +258,7 @@ docstring Inset::toolTip(BufferView const &, int, int) const } -void Inset::forOutliner(docstring &, size_t) const +void Inset::forOutliner(docstring &, size_t const, bool const) const { } @@ -350,7 +350,7 @@ void Inset::doDispatch(Cursor & cur, FuncRequest &cmd) // if the derived inset did not explicitly handle mouse_release, // we assume we request the settings dialog if (!cur.selection() && cmd.button() == mouse_button::button1 - && clickable(cmd.x(), cmd.y()) && hasSettings()) { + && clickable(cur.bv(), cmd.x(), cmd.y()) && hasSettings()) { FuncRequest tmpcmd(LFUN_INSET_SETTINGS); dispatch(cur, tmpcmd); } @@ -388,11 +388,6 @@ bool Inset::getStatus(Cursor &, FuncRequest const & cmd, // Allow modification of our data. // This needs to be handled in the doDispatch method of our // instantiatable children. - // FIXME: Why don't we let the insets determine whether this - // should be enabled or not ? Now we need this check for - // the tabular features. (vfr) - if (cmd.getArg(0) == "tabular") - return false; flag.setEnabled(true); return true;