End
Menu "edit_textstyles"
+ Item "Dissolve CharStyle" "inset-dissolve charstyle"
CharStyles
Elements
Separator
break;
case LFUN_INSET_DISSOLVE:
- enable = !isMainText(cur.bv().buffer()) && cur.inset().nargs() == 1;
+ if (!cmd.argument().empty()) {
+ InsetLayout il = cur.inset().getLayout(cur.buffer().params());
+ enable = (cur.inset().lyxCode() == FLEX_CODE)
+ && (il.lyxtype == to_utf8(cmd.argument()));
+ } else
+ enable = !isMainText(cur.bv().buffer())
+ && cur.inset().nargs() == 1;
break;
case LFUN_CHANGE_ACCEPT:
InsetFlex(BufferParams const &, InsetLayout);
///
docstring name() const { return from_ascii("Flex"); }
+ ///
+ InsetLayout const & getLayout(BufferParams const &) const { return layout_; }
/// Is this character style defined in the document's textclass?
/// May be wrong after textclass change or paste from another document
bool undefined() const;