]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBox.cpp
* make macros global. This is conceptionally much easier for the user,
[lyx.git] / src / insets / InsetBox.cpp
index 44638964f8c276fb264afd50d1bee7198f7be618..ec99e94b59ab7c24f94bd60513a549c72482d568 100644 (file)
@@ -93,23 +93,12 @@ InsetBox::InsetBox(Buffer const & buffer, string const & label)
 }
 
 
-InsetBox::InsetBox(InsetBox const & in)
-       : InsetCollapsable(in), params_(in.params_)
-{}
-
-
 InsetBox::~InsetBox()
 {
        InsetBoxMailer(*this).hideDialog();
 }
 
 
-Inset * InsetBox::clone() const
-{
-       return new InsetBox(*this);
-}
-
-
 docstring InsetBox::editMessage() const
 {
        return _("Opened Box Inset");
@@ -119,7 +108,7 @@ docstring InsetBox::editMessage() const
 docstring InsetBox::name() const 
 {
        // FIXME: UNICODE
-       string name = string("Box");
+       string name = "Box";
        if (boxtranslator().find(params_.type) == Shaded)
                name += string(":Shaded");
        return from_ascii(name);
@@ -162,7 +151,7 @@ void InsetBox::setButtonLabel()
 
 bool InsetBox::hasFixedWidth() const
 {
-      return params_.inner_box || params_.special != "width";
+       return params_.inner_box || params_.special != "width";
 }
 
 
@@ -244,13 +233,6 @@ bool InsetBox::getStatus(Cursor & cur, FuncRequest const & cmd,
 }
 
 
-bool InsetBox::isMacroScope() const
-{
-       BoxType btype = boxtranslator().find(params_.type);
-       return btype != Frameless || params_.inner_box;
-}
-
-
 int InsetBox::latex(odocstream & os, OutputParams const & runparams) const
 {
        BoxType btype = boxtranslator().find(params_.type);