using std::ostream;
-/* Error, used for the LaTeX-Error Messages */
InsetError::InsetError(string const & str, bool)
: contents(str)
dispatch_result result = UNDISPATCHED;
switch (cmd.action) {
- case LFUN_MOUSE_RELEASE:
- edit(cmd.view(), cmd.x, cmd.y, cmd.button());
- break;
+ case LFUN_MOUSE_RELEASE:
+ case LFUN_INSET_EDIT:
+ cmd.view()->owner()->getDialogs().show("error", getContents(), this);
+ return DISPATCHED;
default:
- break;
+ return Inset::localDispatch(cmd);
}
-
- return result;
}
void InsetError::draw(BufferView * bv, LyXFont const & font,
- int baseline, float & x, bool) const
+ int baseline, float & x) const
{
lyx::Assert(bv);
cache(bv);
{
return _("Opened error");
}
-
-
-void InsetError::edit(BufferView * bv, int, int, mouse_button::state)
-{
- bv->owner()->getDialogs().show("error", getContents(), this);
-}
-
-
-void InsetError::edit(BufferView * bv, bool)
-{
- edit(bv, 0, 0, mouse_button::none);
-}