#include "DispatchResult.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/gettext.h"
#include "support/Translator.h"
#include "frontends/Application.h"
InsetBox::InsetBox(Buffer const & buffer, string const & label)
: InsetCollapsable(buffer), params_(label)
{
- if (forceEmptyLayout())
+ if (forcePlainLayout())
paragraphs().back().setLayout(buffer.params().documentClass().emptyLayout());
}
}
-bool InsetBox::forceEmptyLayout(idx_type) const
+bool InsetBox::forcePlainLayout(idx_type) const
{
return !params_.inner_box && params_.type != "Framed";
}
case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "changetype")
flag.setOnOff(cmd.getArg(1) == params_.type);
- flag.enabled(true);
+ flag.setEnabled(true);
return true;
case LFUN_INSET_DIALOG_UPDATE:
- flag.enabled(true);
+ flag.setEnabled(true);
return true;
case LFUN_BREAK_PARAGRAPH:
if (params_.inner_box || params_.type == "Framed")
return InsetCollapsable::getStatus(cur, cmd, flag);
- flag.enabled(false);
+ flag.setEnabled(false);
return true;
default: