#include "InsetBox.h"
#include "Buffer.h"
+#include "BufferParams.h"
#include "BufferView.h"
#include "Cursor.h"
#include "DispatchResult.h"
-#include "support/debug.h"
#include "FuncStatus.h"
#include "FuncRequest.h"
#include "support/gettext.h"
#include "LaTeXFeatures.h"
#include "Lexer.h"
#include "MetricsInfo.h"
+#include "TextClass.h"
+#include "support/debug.h"
#include "support/Translator.h"
#include <sstream>
InsetBox::InsetBox(BufferParams const & bp, string const & label)
: InsetCollapsable(bp), params_(label)
-{}
+{
+ if (forceEmptyLayout())
+ paragraphs().back().layout(bp.getTextClass().emptyLayout());
+}
InsetBox::InsetBox(InsetBox const & in)
}
-bool InsetBox::forceDefaultParagraphs(idx_type) const
+bool InsetBox::forceEmptyLayout() const
{
return !params_.inner_box;
}
}
-bool InsetBox::isMacroScope(Buffer const & buf) const
+bool InsetBox::isMacroScope(Buffer const &) const
{
BoxType btype = boxtranslator().find(params_.type);
return btype != Frameless || params_.inner_box;
width_string += " - 2\\fboxsep - 2\\fboxrule"/* "-\\shadowsize"*/;
break;
case Doublebox:
- width_string += " - 2\\fboxsep - 7.5\\fboxrule - 1.0pt";
+ width_string += " - 2\\fboxsep - 7.5\\fboxrule - 1pt";
break;
}
}
// already done
break;
}
- os << "%\n";
- i += 3;
+ i += 2;
return i;
}