-void InsetERT::setButtonLabel()
-{
- if (decoration() == InsetLayout::Classic)
- setLabel(isOpen() ? _("ERT") : getNewLabel(_("ERT")));
- else
- setLabel(getNewLabel(_("ERT")));
-}
-
-
-bool InsetERT::insetAllowed(InsetCode /* code */) const
-{
- return false;
-}
-
-
-void InsetERT::draw(PainterInfo & pi, int x, int y) const
-{
- const_cast<InsetERT &>(*this).setButtonLabel();
- InsetCollapsable::draw(pi, x, y);
-}
-
-
-bool InsetERT::showInsetDialog(BufferView * bv) const
-{
- InsetERTMailer(const_cast<InsetERT &>(*this)).showDialog(bv);
- return true;
-}
-
-
-string const InsetERTMailer::name_("ert");
-
-InsetERTMailer::InsetERTMailer(InsetERT & inset)
- : inset_(inset)
-{}
-