bpeng wrote: > + case LFUN_EXTERNAL_EDIT: { > + FuncRequest fr(cmd); > + InsetExternal * inset = > getInsetByCode<InsetExternal>(d->cursor_, > + EXTERNAL_CODE); > + if (inset) > + inset->dispatch(d->cursor_, fr); > + break; > + } > + > + > + case LFUN_GRAPHICS_EDIT: { > + FuncRequest fr(cmd); > + InsetGraphics * inset = > getInsetByCode<InsetGraphics>(d->cursor_, > + GRAPHICS_CODE); > + if (inset) > + inset->dispatch(d->cursor_, fr); > break; > }
BTW I think this should be merged into a single LFUN_OBJECT_EDIT, which should also be implemented into other insets that can be externally edited (such as InsetBibTeX or InsetInclude). Jürgen