#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().setLayout(bp.getTextClass().emptyLayout());
+}
InsetBox::InsetBox(InsetBox const & in)
}
-bool InsetBox::forceDefaultParagraphs(idx_type) const
+bool InsetBox::forceEmptyLayout() const
{
return !params_.inner_box;
}