Layout const layout = bp.documentClass().plainLayout();
//lyxerr << "\nInsetERT::doDispatch (begin): cmd: " << cmd << endl;
switch (cmd.action) {
- case LFUN_QUOTE_INSERT: {
- // We need to bypass the fancy quotes in Text
- FuncRequest f(LFUN_SELF_INSERT, "\"");
- dispatch(cur, f);
- break;
- }
case LFUN_INSET_MODIFY: {
setStatus(cur, string2params(to_utf8(cmd.argument())));
break;
}
-void InsetERT::setButtonLabel(BufferView const & bv)
+docstring const InsetERT::buttonLabel(BufferView const & bv) const
{
if (decoration() == InsetLayout::CLASSIC)
- setLabel(isOpen(bv) ? _("ERT") : getNewLabel(_("ERT")));
+ return isOpen(bv) ? _("ERT") : getNewLabel(_("ERT"));
else
- setLabel(getNewLabel(_("ERT")));
+ return getNewLabel(_("ERT"));
}
}
+docstring InsetERT::xhtml(odocstream &, OutputParams const &) const
+{
+ return docstring();
+}
+
} // namespace lyx