InsetBox::InsetBox(BufferParams const & bp, string const & label)
: InsetCollapsable(bp), params_(label)
{
- setLayout(bp);
init();
}
{
params_.read(lex);
InsetCollapsable::read(buf, lex);
- setLayout(buf.params());
setButtonLabel();
}
void InsetBox::setButtonLabel()
{
- FontInfo font = sane_font;
- font.decSize();
- font.decSize();
-
BoxType btype = boxtranslator().find(params_.type);
docstring label;
label += ")";
setLabel(label);
-
- font.setColor(Color_foreground);
- setLabelFont(font);
}
//lyxerr << "InsetBox::dispatch MODIFY" << endl;
InsetBoxMailer::string2params(to_utf8(cmd.argument()), params_);
setLayout(cur.buffer().params());
- setButtonLabel();
break;
}