]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetBox.cpp
index 8939f0eacdeb1859362bb1a5fe764736eb3c3479..c88866d3d3c849a925ee19e7bb9df9ccc6015ac1 100644 (file)
@@ -23,7 +23,6 @@
 #include "FuncRequest.h"
 #include "gettext.h"
 #include "LaTeXFeatures.h"
-#include "Color.h"
 #include "Lexer.h"
 #include "MetricsInfo.h"
 
@@ -95,7 +94,6 @@ void InsetBox::init()
 InsetBox::InsetBox(BufferParams const & bp, string const & label)
        : InsetCollapsable(bp), params_(label)
 {
-       setLayout(bp);
        init();
 }
 
@@ -136,17 +134,12 @@ void InsetBox::read(Buffer const & buf, Lexer & lex)
 {
        params_.read(lex);
        InsetCollapsable::read(buf, lex);
-       setLayout(buf.params());
        setButtonLabel();
 }
 
 
 void InsetBox::setButtonLabel()
 {
-       Font font(Font::ALL_SANE);
-       font.decSize();
-       font.decSize();
-
        BoxType btype = boxtranslator().find(params_.type);
 
        docstring label;
@@ -162,9 +155,6 @@ void InsetBox::setButtonLabel()
        label += ")";
 
        setLabel(label);
-
-       font.setColor(Color::foreground);
-       setLabelFont(font);
 }
 
 
@@ -207,7 +197,6 @@ void InsetBox::doDispatch(Cursor & cur, FuncRequest & cmd)
                //lyxerr << "InsetBox::dispatch MODIFY" << endl;
                InsetBoxMailer::string2params(to_utf8(cmd.argument()), params_);
                setLayout(cur.buffer().params());
-               setButtonLabel();
                break;
        }